Crates.io | tzf-rel |
lib.rs | tzf-rel |
version | |
source | src |
created_at | 2022-11-20 14:50:52.196206+00 |
updated_at | 2025-02-01 12:47:54.45087+00 |
description | Probuf based binary timezone data distribution for tzf-rs |
homepage | https://github.com/ringsaturn/tzf-rel |
repository | https://github.com/ringsaturn/tzf-rel |
max_upload_size | |
id | 719157 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Data build in GitHub Actions.
# 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
export TIMEZONE_BOUNDARY_VERSION=2023b
# 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
geojson2tzpb combined-with-oceans.json | xargs reducetzpb | xargs compresstzpb
preindextzpb combined-with-oceans.reduce.pb
Protocol Buffers define: https://github.com/ringsaturn/tzf/blob/main/pb/tzinfo.proto
Maintain tools
To view data in GeoJSON format(which is more convenient to show on map), see https://github.com/ringsaturn/tzf-server
Data Usage examples