Skip to main content

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

Uploaded Source

Built Distribution

osmx-0.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file osmx-0.0.1.tar.gz.

File metadata

  • Download URL: osmx-0.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for osmx-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b28b439c61ffd16c3f9f2b55184f7809e2be100e0efd5b7ece95b53b69065c1e
MD5 1362f52b5e58639b0c2eba4fb36cfe6c
BLAKE2b-256 b1068eb0d6922650fb706871c59414793dbb0b7f73d45afa2838c4ee3739d237

See more details on using hashes here.

File details

Details for the file osmx-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: osmx-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for osmx-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 241531523029949e6f146fa4d567bba123051c17b685efc12d8f29b8240cc7db
MD5 967d5dc723c4766c7bb9b5d9e448f236
BLAKE2b-256 dc1b5b5d16449c6d9f6f161f2a9ecb13e2ae79203cf0dd01b003679b24ab3f87

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page