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 Lake Tahoe from the ocean
How far is Stinson Beach from the ocean
How far is Virginia Beach from the ocean
How far is New Orleans from the ocean
How far is Princeville from the ocean
How far is Clearwater from the ocean
How far is Mystic from the ocean
How far is St Maarten from the ocean
How far is Monterey from the ocean
How far is Mostar from the ocean