Chiang Mai is about 266 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Thaton.
How far is Idaho Falls from the ocean
How far is San Jose from the ocean
How far is Solana Beach from the ocean
How far is Lancaster, PA from the ocean
How far is Glenwood Springs from the ocean
How far is Morgantown from the ocean
How far is Springfield, MO from the ocean
How far is Jackson Hole from the ocean
How far is Kihei from the ocean
How far is Manaus from the ocean