RepositoryPythonDEGermany
jannikmi

jannikmi/timezonefinder

Offline timezone lookup for WGS84 coordinates, with no polygon simplification - so the answer stays correct at timezone borders.

541stars
82forks
6issues
5views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: location

#1 Repository of the week

1
TINIX TRENDING·Topic: timezones

#1 Repository of the week

1
TINIX TRENDING·Topic: timezone

#1 Repository of the week

============== timezonefinder

.. Note: can't include the badges file from the docs here, as it won't render on PyPI -> sync manually

.. image:: https://github.com/jannikmi/timezonefinder/actions/workflows/build.yml/badge.svg?branch=master :target: https://github.com/jannikmi/timezonefinder/actions?query=branch%3Amaster

.. image:: https://readthedocs.org/projects/timezonefinder/badge/?version=latest :alt: documentation status :target: https://timezonefinder.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/pypi/wheel/timezonefinder.svg :target: https://pypi.python.org/pypi/timezonefinder

.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white :target: https://github.com/pre-commit/pre-commit :alt: pre-commit

.. image:: https://pepy.tech/badge/timezonefinder :alt: total PyPI downloads :target: https://pepy.tech/project/timezonefinder

.. image:: https://img.shields.io/pypi/v/timezonefinder.svg :alt: latest version on PyPI :target: https://pypi.python.org/pypi/timezonefinder

.. image:: https://img.shields.io/conda/vn/conda-forge/timezonefinder.svg :target: https://anaconda.org/conda-forge/timezonefinder :alt: latest version on conda-forge

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black

This is a python package providing offline timezone lookups for WGS84 coordinates. In comparison to other alternatives this package aims at maximum accuracy around timezone borders (no geometry simplifications) while offering fast lookup performance and compatibility with many (Python) runtime environments. It combines preprocessed polygon data, H3-based spatial shortcuts, and optional acceleration via Numba or a clang-backed point-in-polygon routine.

Notice: Looking for maintainers. Reach out if you want to contribute!

Quick Guide

It is recommended to install it together with the optional Numba <https://numba.pydata.org/>__ package for increased performance:

.. code-block:: console

pip install timezonefinder[numba]

.. code-block:: python

# use the global function for convenience:
from timezonefinder import timezone_at

tz = timezone_at(lng=13.358, lat=52.5061)  # 'Europe/Paris'


# For improved performance and control, create and reuse an instance:
from timezonefinder import TimezoneFinder

tf = TimezoneFinder(in_memory=True)  # reuse

query_points = [(13.358, 52.5061), ...]
for lng, lat in query_points:
    tz = tf.timezone_at(lng=lng, lat=lat)  # 'Europe/Paris'

Note: This library uses the full original timezone dataset with all >440 timezone names, providing full localization capabilities and historical timezone accuracy. For applications that prefer a smaller memory footprint, the reduced "timezones-now" dataset is available via the update_data.sh script (cf. Documentation <https://timezonefinder.readthedocs.io/en/latest/data_format.html#alternative-dataset-options>__).

Alternative: Need maximum speed at the cost of accuracy? Check out tzfpy <https://github.com/ringsaturn/tzfpy>__ - a fast and lightweight alternative based on Rust.

References

  • Documentation <https://timezonefinder.readthedocs.io/en/latest/>__
  • PyPI <https://pypi.python.org/pypi/timezonefinder/>__
  • conda-forge feedstock <https://github.com/conda-forge/timezonefinder-feedstock>__
  • download stats <https://pepy.tech/project/timezonefinder>__
  • online GUI and API <https://timezonefinder.michelfe.it>__
  • GUI repository <https://github.com/jannikmi/timezonefinder_gui>__
  • ruby port <https://github.com/gunyarakun/timezone_finder>__

LICENSE

timezonefinder is licensed under the MIT license <https://github.com/jannikmi/timezonefinder/blob/master/LICENSE>__.

The data is licensed under the ODbL license <https://github.com/jannikmi/timezonefinder/blob/master/DATA_LICENSE>, following the base dataset from evansiroky/timezone-boundary-builder <https://github.com/evansiroky/timezone-boundary-builder>.

Similar Projects

Discover other similar projects and AI models.

RepositoryGo
ringsaturn/tzf

Get timezone via longitude and latitude in Go in a fast way

199
Dec 1, 2026
RepositoryPython
ringsaturn/tzfpy

Probably the fastest Python package to convert longitude/latitude to timezone name.

143
Nov 2, 2026
RepositoryRust
ringsaturn/tzf-rs

Get timezone via longitude&latitude in Rust in a fast way

112
Nov 2, 2026
RepositoryTypeScript
vvo/tzdb

Always up to date IANA time zones for time zone pickers: grouped list with major cities, current offsets, DST abbreviations, and the country of any time zone. Updated daily.

917
Nov 26, 2026
RepositoryKotlin
Hamza417/Positional

An elegant and colorful location information app for Android with Compass, Clock, Level, Sun, Moon, Trail Marker and many other features.

297
May 12, 2026
RepositorySwift
gligorkot/TimeZonePicker

A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your most suitable time zone.

122
Aug 5, 2020
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.4k
Dec 2, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.6k
Nov 27, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026