Johannesburg is about 455 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Maputo.
How far is Sausalito from the ocean
How far is Wichita from the ocean
How far is Cayucos from the ocean
How far is Hood River from the ocean
How far is Cleveland from the ocean
How far is Austin from the ocean
How far is La Jolla from the ocean
How far is Twin Falls from the ocean
How far is Carlsbad, CA from the ocean
How far is Bergamo from the ocean