#timezone #geo

bin+lib tzf-rs

Fast convert longitude,latitude to timezone name

10 unstable releases (3 breaking)

new 0.4.0 Mar 26, 2023
0.3.1 Mar 21, 2023
0.3.0 Jan 28, 2023
0.2.1 Jan 25, 2023
0.1.3 Nov 28, 2022

#29 in Geospatial

Download history 14/week @ 2022-12-05 7/week @ 2022-12-12 31/week @ 2022-12-19 34/week @ 2022-12-26 9/week @ 2023-01-02 6/week @ 2023-01-09 71/week @ 2023-01-16 387/week @ 2023-01-23 87/week @ 2023-01-30 52/week @ 2023-02-06 32/week @ 2023-02-13 139/week @ 2023-02-20 193/week @ 2023-02-27 317/week @ 2023-03-06 346/week @ 2023-03-13 768/week @ 2023-03-20

1,628 downloads per month

Custom license

20KB
335 lines

WIP: tzf's Rust port. Rust Documentation codecov

Bindings


lib.rs:

Fast timezone finder for Rust.

It's designed for high performance geo queries related services like weather forecast API. And most queries could return in very limited time, averagely like 2000 nanoseconds.

Please note that this package use a simplified shape data so not so accurate around border.

There are there finders implements:

  • [Finder]: works anywhere.
  • [FuzzyFinder]: blazing fast for most places on earth, use a preindex data. Not work for places around borders.
  • [DefaultFinder]: combine both, if [FuzzyFinder] got no data, then use [Finder].

Preprocessed timezone data is distributed via tzf-rel.

It's Rust port of tzf and also the foundation of tzfpy since v0.11.0....

Dependencies

~15–23MB
~211K SLoC