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 Spokane from the ocean
How far is Ventura from the ocean
How far is Coeur d'Alene from the ocean
How far is Gainesville from the ocean
How far is Estes Park from the ocean
How far is Morgantown from the ocean
How far is Siesta Key from the ocean
How far is Coral Gables from the ocean
How far is St. Louis from the ocean
How far is Tamarindo from the ocean