-
Notifications
You must be signed in to change notification settings - Fork 1
/
osm_diff_test.py
36 lines (34 loc) · 938 Bytes
/
osm_diff_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from osm_diff import h3LineLatLng
def testH3LineLatLng():
assert h3LineLatLng((21, 52), (21.001, 52)) == {
"8c1f53591c649ff",
"8c1f53591d4a5ff",
"8c1f53591d4a7ff",
"8c1f53591d4b5ff",
"8c1f53591d4b7ff",
}
assert h3LineLatLng((21, 52), (21.005, 52.001)) == {
"8c1f535918803ff",
"8c1f535918805ff",
"8c1f535918807ff",
"8c1f535918811ff",
"8c1f53591881bff",
"8c1f53591881dff",
"8c1f535918829ff",
"8c1f535918867ff",
"8c1f535918943ff",
"8c1f535918945ff",
"8c1f535918947ff",
"8c1f535918951ff",
"8c1f53591895bff",
"8c1f53591895dff",
"8c1f535918969ff",
"8c1f53591896dff",
"8c1f535918aa7ff",
"8c1f53591d4a3ff",
"8c1f53591d4a5ff",
"8c1f53591d4a7ff",
"8c1f53591d4b1ff",
"8c1f53591d4bbff",
"8c1f53591d4bdff",
}