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
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
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
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 :)