Skip to content

Commit

Permalink
v6.1.9: Data 2022g (#174)
Browse files Browse the repository at this point in the history
* Update pyproject.toml

* Update CHANGELOG.rst

* Update file_converter.py

* Update current_data_statistics.txt

* binaries 2022g
  • Loading branch information
jannikmi authored Dec 6, 2022
1 parent c4d9bfa commit 8c7bf9f
Show file tree
Hide file tree
Showing 16 changed files with 165 additions and 163 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Future TODOs:
* locations, expected results for all different methods,
* parameterised tests


6.1.9 (2022-12-06)
------------------

* updated the data to `2022g <https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2022g>`__.


6.1.8 (2022-11-25)
------------------

Expand Down
88 changes: 41 additions & 47 deletions current_data_statistics.txt
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@

... parsing done. found:
1,358 polygons from
450 timezones with
1,287 polygons from
445 timezones with
729 holes
152,458 maximal amount of coordinates in one polygon
21,494 maximal amount of coordinates in a hole polygon
13,361,022 floats in all the polygons (2 per point)
updating the zone names in /Users/jcm/github/timezonefinder/scripts/timezone_names.json now.
writing json to /Users/jcm/github/timezonefinder/scripts/timezone_names.json
152,210 maximal amount of coordinates in one polygon
21,495 maximal amount of coordinates in a hole polygon
13,557,486 floats in all the polygons (2 per point)
updating the zone names in /Users/jcm/github/timezonefinder/timezonefinder/timezone_names.json now.
writing json to /Users/jcm/github/timezonefinder/timezonefinder/timezone_names.json
...Done.

Computing where zones start and end...
...Done.

writing /Users/jcm/github/timezonefinder/scripts/poly_nr2zone_id.bin
writing /Users/jcm/github/timezonefinder/scripts/poly_zone_ids.bin
writing /Users/jcm/github/timezonefinder/scripts/poly_bounds.bin
writing /Users/jcm/github/timezonefinder/scripts/poly_data.bin
writing /Users/jcm/github/timezonefinder/scripts/poly_coord_amount.bin
writing /Users/jcm/github/timezonefinder/scripts/poly_adr2data.bin
writing /Users/jcm/github/timezonefinder/scripts/hole_coord_amount.bin
writing /Users/jcm/github/timezonefinder/scripts/poly_adr2data.bin
writing /Users/jcm/github/timezonefinder/scripts/hole_adr2data.bin
writing /Users/jcm/github/timezonefinder/scripts/hole_data.bin
writing /Users/jcm/github/timezonefinder/timezonefinder/poly_nr2zone_id.bin
writing /Users/jcm/github/timezonefinder/timezonefinder/poly_zone_ids.bin
writing /Users/jcm/github/timezonefinder/timezonefinder/poly_bounds.bin
writing /Users/jcm/github/timezonefinder/timezonefinder/poly_data.bin
writing /Users/jcm/github/timezonefinder/timezonefinder/poly_coord_amount.bin
writing /Users/jcm/github/timezonefinder/timezonefinder/poly_adr2data.bin
writing /Users/jcm/github/timezonefinder/timezonefinder/hole_coord_amount.bin
writing /Users/jcm/github/timezonefinder/timezonefinder/poly_adr2data.bin
writing /Users/jcm/github/timezonefinder/timezonefinder/hole_adr2data.bin
writing /Users/jcm/github/timezonefinder/timezonefinder/hole_data.bin

function compile_polygon_binaries(...) executed in 21.0s
function compile_polygon_binaries(...) executed in 21.3s
compiling hex candidates for resolution 3.
compiling hex candidates for resolution 2.
compiling hex candidates for resolution 1.
compiling hex candidates for resolution 0.
reached desired resolution 3.
storing mapping to timezone polygons for every hexagon candidate at this resolution (-> 'full coverage')
41,162 processed 0 remaining
41,162 processed31,163 r0 remainingggngg

shortcut statistics:

Expand All @@ -40,13 +39,13 @@ highest amount in one shortcut is 59
0.0 % of all shortcuts are empty
frequencies of entry amounts:
0: 0
1: 30674
2: 8773
3: 1402
4: 229
5: 39
1: 30677
2: 8776
3: 1405
4: 227
5: 37
6: 15
7: 12
7: 9
8: 5
9: 5
10: 1
Expand All @@ -62,14 +61,14 @@ frequencies of entry amounts:
20: 0
21: 0
22: 0
23: 1
23: 0
24: 0
25: 1
26: 0
27: 0
28: 0
29: 0
30: 1
30: 0
31: 0
32: 1
33: 0
Expand Down Expand Up @@ -100,20 +99,20 @@ frequencies of entry amounts:
58: 0
59: 1
relative accumulated frequencies [%]:
[0.0, 74.52, 95.83, 99.24, 99.8, 99.89, 99.93, 99.96, 99.97, 99.98, 99.98, 99.98, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
[0.0, 74.53, 95.85, 99.26, 99.81, 99.9, 99.94, 99.96, 99.97, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 99.99, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
missing relative accumulated frequencies [%]:
[100.0, 25.48, 4.17, 0.76, 0.2, 0.11, 0.07, 0.04, 0.03, 0.02, 0.02, 0.02, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
[100.0, 25.47, 4.15, 0.74, 0.19, 0.1, 0.06, 0.04, 0.03, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
--------------------------------

amount of different timezones per shortcut
highest amount in one shortcut is 25
0.0 % of all shortcuts are empty
frequencies of entry amounts:
0: 0
1: 30680
2: 9004
3: 1296
4: 160
1: 30683
2: 9015
3: 1291
4: 151
5: 17
6: 3
7: 1
Expand All @@ -136,22 +135,17 @@ frequencies of entry amounts:
24: 0
25: 1
relative accumulated frequencies [%]:
[0.0, 74.53, 96.41, 99.56, 99.95, 99.99, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
[0.0, 74.54, 96.44, 99.58, 99.95, 99.99, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
missing relative accumulated frequencies [%]:
[100.0, 25.47, 3.59, 0.44, 0.05, 0.01, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
[100.0, 25.46, 3.56, 0.42, 0.05, 0.01, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
--------------------------------

validating shortcut mapping
validating shortcut completeness...
validating polygon 1357
function validate_shortcut_mapping(...) executed in 11.0s

function compile_shortcut_mapping(...) executed in 1193.6s
the polygon data makes up 95.65% of the data
the shortcuts make up 1.05% of the data
holes make up 3.30% of the data


finished parsing timezonefinder data to /Users/jcm/github/timezonefinder/scripts
validating polygon 1286
function validate_shortcut_mapping(...) executed in 175.3s

function parse_data(...) executed in 1220.8s
function compile_shortcut_mapping(...) executed in 1940.9s
the polygon data makes up 95.68% of the data
the shortcuts make up 1.03% of the data
holes make up 3.28% of the data
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "timezonefinder"
version = "6.1.8"
version = "6.1.9"
description = "fast python package for finding the timezone of any point on earth (coordinates) offline"
authors = ["jannikmi <[email protected]>"]
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions scripts/file_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ def compile_shortcut_mapping(output_path: Path) -> int:
cf. https://eng.uber.com/h3/
"""
print("\n\ncomputing timezone polygon index ('shortcuts')...")
candidates = all_res_candidates(SHORTCUT_H3_RES)
print(
f"reached desired resolution {SHORTCUT_H3_RES}.\n"
Expand Down
Binary file modified timezonefinder/hole_adr2data.bin
Binary file not shown.
Binary file modified timezonefinder/hole_coord_amount.bin
Binary file not shown.
Binary file modified timezonefinder/hole_data.bin
Binary file not shown.
Loading

0 comments on commit 8c7bf9f

Please sign in to comment.