Crates.io | tzf-rel |
lib.rs | tzf-rel |
version | 0.0.2024-b |
source | src |
created_at | 2022-11-20 14:50:52.196206 |
updated_at | 2024-09-10 07:46:31.224069 |
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 |
size | 17,879,216 |
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