Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ringsaturn/tzf-rel-lite
https://github.com/ringsaturn/tzf-rel-lite
tzf
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ringsaturn/tzf-rel-lite
- Owner: ringsaturn
- License: odbl-1.0
- Created: 2024-02-13T12:58:23.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-10T07:46:08.000Z (4 months ago)
- Last Synced: 2024-11-30T23:43:03.114Z (about 1 month ago)
- Topics: tzf
- Language: PureBasic
- Homepage:
- Size: 18.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [tzf](https://github.com/ringsaturn/tzf)'s preprocessed timezone data
![](https://img.shields.io/github/v/release/ringsaturn/tzf-rel-lite?style=plastic)
## Update Data Steps
### CI
Data build in [GitHub Actions](.github/workflows/ci.yml).
### Local build
1. Install CLI tool
```bash
# 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
```2. Set data version to build(Below steps need this environment var)
```bash
export TIMEZONE_BOUNDARY_VERSION=2023b
```3. Download data
```bash
# 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
```4. Make data
```bash
geojson2tzpb combined-with-oceans.json | xargs reducetzpb | xargs compresstzpb
preindextzpb combined-with-oceans.reduce.pb
```## References
- Protocol Buffers define:
- Maintain tools
- [`checkboundaryrelease`](https://github.com/ringsaturn/tzf/tree/main/cmd/checkboundaryrelease)
- [`geojson2tzpb`](https://github.com/ringsaturn/tzf/tree/main/cmd/geojson2tzpb)
- [`reducetzpb`](https://github.com/ringsaturn/tzf/tree/main/cmd/reducetzpb)
- [`compresstzpb`](https://github.com/ringsaturn/tzf/tree/main/cmd/compresstzpb)
- [`preindextzpb`](https://github.com/ringsaturn/tzf/tree/main/cmd/preindextzpb)
- To view data in GeoJSON format(which is more convenient to show on map), see
- Data Usage examples
- Go:
- Rust: