Skip to content

Instantly share code, notes, and snippets.

@amalgjose
Last active February 5, 2023 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save amalgjose/4c8d1cfe01c76df6b2de6ab5aa9c5b38 to your computer and use it in GitHub Desktop.
Save amalgjose/4c8d1cfe01c76df6b2de6ab5aa9c5b38 to your computer and use it in GitHub Desktop.
Python program to find the Timezone information from latitude and longitude (geo coordinate). For more details visit https://amalgjose.com/2020/05/17/python-program-to-find-the-timezone-from-latitude-and-longitude/
from timezonefinder import TimezoneFinder
t_find = TimezoneFinder()
# Provide the latitude
latitude = 54.743
# Provide the longitude
longitude = 15.492
timezone_info = t_find.timezone_at(lng=longitude, lat=latitude)
print(timezone_info)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment