Yogyakarta is about 38 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Borobudur.
How far is Albuquerque from the ocean
How far is Branson from the ocean
How far is Del Mar from the ocean
How far is Rochester, NY from the ocean
How far is St. Louis from the ocean
How far is Santa Monica from the ocean
How far is Norfolk from the ocean
How far is Nashville from the ocean
How far is Kissimmee from the ocean
How far is Quebec City from the ocean