Madrid is about 333 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Santurtzi.
How far is Redondo Beach from the ocean
How far is Raleigh from the ocean
How far is Saint Pete Beach from the ocean
How far is Dayton from the ocean
How far is Winter Park, FL from the ocean
How far is Hana from the ocean
How far is New Orleans from the ocean
How far is Boise from the ocean
How far is Idaho Falls from the ocean
How far is Kanchanaburi from the ocean