tzf-rel

Crates.iotzf-rel
lib.rstzf-rel
version0.0.2024-b
sourcesrc
created_at2022-11-20 14:50:52.196206
updated_at2024-09-10 07:46:31.224069
descriptionProbuf based binary timezone data distribution for tzf-rs
homepagehttps://github.com/ringsaturn/tzf-rel
repositoryhttps://github.com/ringsaturn/tzf-rel
max_upload_size
id719157
size17,879,216
ringsaturn (ringsaturn)

documentation

https://github.com/ringsaturn/tzf-rel

README

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

Commit count: 35

cargo fmt