iDhaval
iDhaval

Reputation: 7844

get Time Zone using latitude and longitude?

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

Answers (3)

Sei Kan
Sei Kan

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

Ankit Srivastava
Ankit Srivastava

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

Related Questions