Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Summary

Process OSM data with python 3. This project is mainly motivated by openstreetmap.

Dependencies

Install

You can install osmRoad via pip.

pip install osmRoad

Usage

from osm import parser
from osm import road

parser

  • load_parse_osm: return bounds, nodes, ways
  • load_parse_osmxy: different from above, return nodes with coodinates

road

  • extract_connectivity: return the adjecent matrix lil_matrix (without weights)
  • extract_adj: return the adjecent list (without weights)
  • extract_edges: return the edges (without weights)
  • build_graph: return a graph in networkx (with weights)

Example

parsed_osm = parser.load_parse_osmxy(r"osm/Beijing.osm")
r = road.build_graph(parsed_osm)
print(nx.dijkstra_path(r, 296314321, 296314277))
parsed_osm = parser.load_parse_osm(r"osm/Beijing.osm")
m = road.extract_adj(parsed_osm)

Metadata

Release files for osmRoad-nadfity 0.2.1a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for osmRoad-nadfity 0.2.1a0
File Size Uploaded Provenance Actions
osmRoad-nadfity-0.2.1a0.tar.gz 4.3 kB Without provenance Details for osmRoad-nadfity-0.2.1a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for osmRoad-nadfity 0.2.1a0
File Interpreter ABI Platform Actions
osmRoad_nadfity-0.2.1a0-py3-none-any.whl Python 3 none any Details for osmRoad_nadfity-0.2.1a0-py3-none-any.whl

Total release size: 10.7 kB

Release files / osmRoad-nadfity-0.2.1a0.tar.gz

Download URL osmRoad-nadfity-0.2.1a0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c28c5bf7c91345a1557c9990809189aec55abe9b70eea3aaa45376c321cb14b3
BLAKE2b-256 checksum
How to use checksums
c8b97491f305acf821268e60db149e7ec43d88aae40529d2b1e28a9921142413
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.11.4 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

Release files / osmRoad_nadfity-0.2.1a0-py3-none-any.whl

Download URL osmRoad_nadfity-0.2.1a0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e297e5f9b3268afa6452ca5b6d48d65a6bc94f0dc6e15109050b9f19f31a0f06
BLAKE2b-256 checksum
How to use checksums
d4bbdf3e38de7dfa509c2dd26464a3b488566cafb6f055a0b2468dc8b87a5317
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.11.4 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

Security for osmRoad-nadfity 0.2.1a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page