Edinburgh is very close to the ocean. It's basically about 3734 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 Carnoustie.
How far is Fayetteville, NC from the ocean
How far is Muir Beach from the ocean
How far is Cincinnati from the ocean
How far is Burbank, CA from the ocean
How far is Isle of Palms from the ocean
How far is Siesta Key from the ocean
How far is Indianapolis from the ocean
How far is Eureka, CA from the ocean
How far is Cayucos from the ocean
How far is Pisa from the ocean