Metadata-Version: 2.1
Name: osmx
Version: 0.0.1
Summary: Read OSM Express (.osmx) database files.
Home-page: https://github.com/protomaps/OSMExpress
Author: Brandon Liu
Author-email: brandon@protomaps.com
License: BSD-2-Clause
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: lmdb (~=0.97)
Requires-Dist: pycapnp (~=0.6.4)

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))


