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 Temecula from the ocean
How far is Columbus from the ocean
How far is Lancaster, PA from the ocean
How far is Durango from the ocean
How far is Grand Junction, CO from the ocean
How far is Anaheim from the ocean
How far is Vancouver, WA from the ocean
How far is Redondo Beach from the ocean
How far is Stone Mountain from the ocean
How far is Madrid from the ocean