Tarifa is very close to the ocean. It's basically about 2881 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 Valdevaqueros.
How far is Saint Augustine from the ocean
How far is Calistoga from the ocean
How far is Durango from the ocean
How far is Fort Bragg from the ocean
How far is Amarillo from the ocean
How far is Palm Springs from the ocean
How far is Billings from the ocean
How far is Atlantic City from the ocean
How far is Medford from the ocean
How far is Vientiane from the ocean