Cape Town is very close to the ocean. It's basically about 2342 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 De Waterkant.
How far is Hermosa Beach from the ocean
How far is Charleston, WV from the ocean
How far is Atlanta from the ocean
How far is Providence from the ocean
How far is Santa Cruz from the ocean
How far is Kailua Kona from the ocean
How far is Amarillo from the ocean
How far is Park City from the ocean
How far is Palo Alto from the ocean
How far is Kos from the ocean