Lausanne is about 313 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Menton.
How far is Madison, WI from the ocean
How far is Manitou Springs from the ocean
How far is Vail from the ocean
How far is Bozeman from the ocean
How far is Sarasota from the ocean
How far is Nashville from the ocean
How far is Idaho Falls from the ocean
How far is Napa from the ocean
How far is Ventura from the ocean
How far is Sibiu from the ocean