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
1,628 downloads per month
20KB
335 lines
WIP: tzf's Rust port.

- Documents: https://docs.rs/tzf-rs
- Original Go repo: https://github.com/ringsaturn/tzf
- Binary timezone data: https://github.com/ringsaturn/tzf-rel
- Geometry: use https://github.com/ringsaturn/geometry-rs which is https://github.com/tidwall/geometry's Rust port.
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