Barcelona is very close to the ocean. It's basically about 2864 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 El Born.
How far is Charleston from the ocean
How far is Louisville from the ocean
How far is Huntsville from the ocean
How far is Charlottesville from the ocean
How far is Kailua from the ocean
How far is West Yellowstone from the ocean
How far is Pagosa Springs, CO from the ocean
How far is Washington, DC from the ocean
How far is Flagstaff from the ocean
How far is Penang from the ocean