|
if parsed.find("/n/") > -1: |
|
print("type indicator: n/ = OSM Node ID with Basis 64") |
|
|
|
if parsed.find("/w/") > -1: |
|
print("type indicator: w/ = OSM Way ID with Basis 64") |
|
|
|
if parsed.find("/a/") > -1: |
|
print("type indicator: a/ = OSM Area ID with Basis 64") |
|
|
|
if parsed.find("/r/") > -1: |
|
print("type indicator: r/ = OSM Relation ID with Basis 64") |
adding the conversion from Base64 with ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_~ to integer 64bit to convert to OSM id.
More here https://github.com/aerospaceresearch/gcp-osm/blob/master/README.md
gcp-osm/main.py
Lines 65 to 75 in 00cec7f
adding the conversion from Base64 with ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_~ to integer 64bit to convert to OSM id.
More here https://github.com/aerospaceresearch/gcp-osm/blob/master/README.md