#timezone #data #distribution #binary #probuf #tzf #tzf-rs

tzf-rel

Probuf based binary timezone data distribution for tzf-rs

6 releases

0.0.2024-a Mar 16, 2024
0.0.2023-d Dec 29, 2023
0.0.2023-b Mar 26, 2023
0.0.2022-g1 Jan 28, 2023
0.0.2022-f5 Nov 20, 2022

#99 in Science

Download history 201/week @ 2023-12-23 581/week @ 2023-12-30 412/week @ 2024-01-06 318/week @ 2024-01-13 550/week @ 2024-01-20 489/week @ 2024-01-27 558/week @ 2024-02-03 511/week @ 2024-02-10 594/week @ 2024-02-17 1392/week @ 2024-02-24 1461/week @ 2024-03-02 1467/week @ 2024-03-09 1429/week @ 2024-03-16 1120/week @ 2024-03-23 1167/week @ 2024-03-30 873/week @ 2024-04-06

4,856 downloads per month
Used in 4 crates (via tzf-rs)

ODbL-1.0

9.5MB

tzf's preprocessed timezone data

Update Data Steps

CI

Data build in GitHub Actions.

Local build

  1. Install CLI tool
# install tools
go install github.com/ringsaturn/tzf/cmd/geojson2tzpb@latest
go install github.com/ringsaturn/tzf/cmd/reducetzpb@latest
go install github.com/ringsaturn/tzf/cmd/compresstzpb@latest
go install github.com/ringsaturn/tzf/cmd/preindextzpb@latest
  1. Set data version to build(Below steps need this environment var)
export TIMEZONE_BOUNDARY_VERSION=2023b
  1. Download data
# download data
wget https://github.com/evansiroky/timezone-boundary-builder/releases/download/${TIMEZONE_BOUNDARY_VERSION}/timezones-with-oceans.geojson.zip
unzip timezones-with-oceans.geojson.zip
  1. Make data
geojson2tzpb combined-with-oceans.json | xargs reducetzpb | xargs compresstzpb
preindextzpb combined-with-oceans.reduce.pb

References

No runtime deps