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 Knoxville from the ocean
How far is Provincetown from the ocean
How far is Arlington, VA from the ocean
How far is Sullivan's Island from the ocean
How far is Fort Lauderdale from the ocean
How far is Memphis from the ocean
How far is Winter Park from the ocean
How far is Gatlinburg from the ocean
How far is West Yellowstone from the ocean
How far is Jaipur from the ocean