Beijing is about 146 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Tianjin.
How far is Colorado Springs from the ocean
How far is Carmel By the Sea from the ocean
How far is South Lake Tahoe from the ocean
How far is Vail from the ocean
How far is Charlotte from the ocean
How far is Scottsdale from the ocean
How far is Mendocino from the ocean
How far is Hanalei from the ocean
How far is Deadwood from the ocean
How far is Pai from the ocean