Skip to content

Commit 6c43ded

Browse files
Update readme
1 parent cdee628 commit 6c43ded

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

Diff for: README.md

+22-6
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,35 @@ location on Earth.
1313

1414
## Running the example
1515

16-
cargo run --example demo data/timezone21.bin 35.0715 -82.5216
16+
```
17+
$ cargo run --example demo data/timezone21.bin 35.0715 -82.5216
18+
zone 0: ZoneMatch {
19+
kind: InZone,
20+
zone: Zone {
21+
polygon_id: 1458,
22+
meta_id: 3199,
23+
fields: {
24+
"CountryAlpha2": "US",
25+
"CountryName": "United States",
26+
"TimezoneIdPrefix": "America/",
27+
"TimezoneId": "New_York",
28+
},
29+
},
30+
}
31+
```
1732

1833
## Data source
1934

2035
The database containing the location and timezone data is in
2136
`data/timezone21.bin`. It can be updated as follows:
2237

23-
git clone https://github.com/BertoldVdb/ZoneDetect
24-
cd ZoneDetect/database/builder
25-
./makedb.sh
38+
```
39+
git clone https://github.com/BertoldVdb/ZoneDetect
40+
cd ZoneDetect/database/builder
41+
./makedb.sh
42+
cp out_v1/timezone21.bin zone-detect-rs/data/timezone21.bin
43+
```
2644

27-
This will produce, among other things, `out_v1/timezone21.bin`.
28-
2945
## Testing
3046

3147
There's a slow test that generates random values and compares the output

0 commit comments

Comments
 (0)