Batu Caves is about 40 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Kelang.
How far is Anchorage from the ocean
How far is Flagstaff from the ocean
How far is Mount Shasta, CA from the ocean
How far is Wilmington from the ocean
How far is Barstow from the ocean
How far is Vancouver, WA from the ocean
How far is Morgantown from the ocean
How far is West Yellowstone from the ocean
How far is Cody from the ocean
How far is Segovia from the ocean