Skip to main content

osm-graph is a package for NetworkX and OpenStreetMap.

%matplotlib inline
import networkx as nx
from osm_graph import OsmGraph
og = OsmGraph(35.7158, 139.8741)
nd1 = og.find_node(35.7165, 139.8738)
nd2 = og.find_node(35.7153, 139.8752)
path = nx.dijkstra_path(og.graph, nd1, nd2)
g = nx.subgraph(og.graph, path)
ax = og.draw_graph()
og.draw_graph(graph=g, ax=ax, edge_color='r', width=2);

Requirements

  • Python 3, networkx, matplotlib, overpy

Features

  • This is a sample. So it may not be efficient.

Setup

$ pip install osm-graph

History

0.0.1 (2018-6-9)

  • first release

Metadata

Release files for osm-graph 0.0.3

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

Source distribution (sdist)

Source distribution for osm-graph 0.0.3
File Size Uploaded Provenance Actions
osm-graph-0.0.3.tar.gz 2.8 kB Without provenance Details for osm-graph-0.0.3.tar.gz

Release files / osm-graph-0.0.3.tar.gz

Download URL osm-graph-0.0.3.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
81576ea3de18542595511c365bf28f11dcafb45ded6cbdce4f2681ff53e2d702
BLAKE2b-256 checksum
How to use checksums
a1f4388d3d503a142cbcb7df21547abbd973df077519a4125cbe7925a47c5cf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for osm-graph 0.0.3

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.

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