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 Hermosa Beach from the ocean
How far is Bakersfield from the ocean
How far is Marina Del Rey from the ocean
How far is Franklin, TN from the ocean
How far is Saint Petersburg, FL from the ocean
How far is Portsmouth, NH from the ocean
How far is Moab from the ocean
How far is Oklahoma City from the ocean
How far is Columbia from the ocean
How far is Bergen from the ocean