Read OSM Express (.osmx) database files.
Project description
import sys import osmx
env = osmx.Environment(sys.argv[1]) txn = osmx.Transaction(env) locations = osmx.Locations(txn) nodes = osmx.Nodes(txn) ways = osmx.Ways(txn)
way = ways.get(sys.argv[2])
for node_id in way.nodes: print(locations.get(node_id))
print(osmx.tag_dict(way.tags))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
osmx-0.0.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
osmx-0.0.1-py3-none-any.whl
(2.6 kB
view hashes)