Shimla is about 1074 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Dudhwada.
How far is Cheyenne from the ocean
How far is Portland, ME from the ocean
How far is Juneau from the ocean
How far is Daytona Beach from the ocean
How far is Shreveport, LA from the ocean
How far is Moab from the ocean
How far is Pigeon Forge from the ocean
How far is Lubbock from the ocean
How far is Branson from the ocean
How far is Kandy from the ocean