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 Saint Petersburg, FL from the ocean
How far is Culver City from the ocean
How far is Bar Harbor from the ocean
How far is Franklin, TN from the ocean
How far is Denver from the ocean
How far is Jackson, WY from the ocean
How far is Siesta Key from the ocean
How far is Fort Collins from the ocean
How far is Eugene from the ocean
How far is Vilnius from the ocean