Capri is very close to the ocean. It's basically about 9771 meters from the ocean depending on where you measure to the exact coastline.
If you're driving to a town near the beach or coastline, you could try Termini.
How far is Moab from the ocean
How far is Coos Bay from the ocean
How far is Taos from the ocean
How far is Eureka, CA from the ocean
How far is Pigeon Forge from the ocean
How far is Wisconsin Dells from the ocean
How far is Seattle from the ocean
How far is Arlington, VA from the ocean
How far is South Lake Tahoe from the ocean
How far is Nice from the ocean