`osm-graph` is a package for NetworkX and OpenStreetMap.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
osm-graph-0.0.3.tar.gz
(2.8 kB
view details)
File details
Details for the file osm-graph-0.0.3.tar.gz
.
File metadata
- Download URL: osm-graph-0.0.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81576ea3de18542595511c365bf28f11dcafb45ded6cbdce4f2681ff53e2d702 |
|
MD5 | ac6180cfd6bea27cd527ab94899dbed6 |
|
BLAKE2b-256 | a1f4388d3d503a142cbcb7df21547abbd973df077519a4125cbe7925a47c5cf1 |