Get time zone using latitude and longitude?

I have the current latitude and longitude, and I want the time zone from this latitude and longitude. (I want this latitude and longitude, of which time zone)

I need a conclusion like.

Latitude:22.5726460 Longitude:88.3638950 

This is the latitude of longitude of Calcutta, India, and when I have this lat, I want Asia / Calcutta (as an Exit)

Please suggest any api or any idea that might solve my problem.

+6
source share
3 answers

you can calculate the time zone yourself for more help, refer to answer , maybe this will help you ....

EDIT: you can use weatherbug api to get the exact time using your lat / long

+3
source

I recently came up with a similar project. Now I am using the web service provided by GeoNames and TimeZoneDB .

Both services must register an 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

+2
source

Source: https://habr.com/ru/post/913517/


All Articles