0

I have latitude and longitude and want to find corresponding timezone. such as for India

Latitude and Longitude - 21.7679° N, 78.8718° E  
In response GMT +5:30
Ruchira Gayan Ranaweera
  • 34,993
  • 17
  • 75
  • 115
Krishna Kumar Chourasiya
  • 2,030
  • 3
  • 20
  • 23

3 Answers3

3

You can use the Google Time Zone API.

obourgain
  • 8,856
  • 6
  • 42
  • 57
0

There are many options to achieve that.

First of all, I would recommend you to use an online service and not reinventing the wheel.

Apart from more classic service like Google and Yahoo through their APIs, you can also use some of the options listed here: Timezone lookup from latitude longitude

Hope that helps

Community
  • 1
  • 1
Ramon Araujo
  • 1,743
  • 22
  • 31
0

You can first use GeoGoogle java library to get the longitude/latitude from the city-state-country.

Next, you can use EarthTools (and some java code of your own) mentioned by Lennart to get the timezone :)

Hybrid Developer
  • 2,320
  • 1
  • 34
  • 55