Reputation: 7844
I having current latitude and longitude and I want the Time Zone from that latitude and longitude. (I want that this latitude and longitude from which Time Zone)
I want output like.
Latitude:22.5726460
Longitude:88.3638950
This is latitude longitude of Kolkata,india and when I have this lat long I want Asia/Kolkata(as Output)
Please suggest any api or any idea which can solve out my problem
Upvotes: 6
Views: 5667
Reputation: 79
I just came around with similar project recently. I now using the web service provided by GeoNames and TimeZoneDB.
Both service need to register a API key.
GeoNames: api.geonames.org/findNearbyPlaceName?lat=47.3&lng=9&username=demo&style=full
TimeZoneDB: api.timezonedb.com/?lat=53.7833&lng=-1.75&key=KEY
Upvotes: 2
Reputation: 24967
Your question may same like
Web service - current time zone for a city?
You can use webservice, http://www.earthtools.org/webservices.htm#timezone ,
example :
http://www.earthtools.org/timezone-1.1/40.71417/-74.00639
Upvotes: 1
Reputation: 12405
you can calculate the time zone yourself for more help refer this answer may be this can help you....
EDIT: you can use the weatherbug api to get the exact time using your lat/long
Upvotes: 3