Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Tofull's full-sized avatar

Loïc Messal Tofull

View GitHub Profile
@Tofull
Tofull / OSMParser.py
Last active November 3, 2020 10:55 — forked from aflaxman/gist:287370
networkx-osm import open street map data as a networkx graph
"""
Read directional graph from Open Street Maps osm format
Based on the osm to networkx tool from aflaxman : https://gist.github.com/aflaxman/287370/
Use python3.6
Added :
- : Python3.6 compatibility
- : Cache for avoiding to download again the same osm tiles
- : distance computation to estimate length of each ways (useful to compute the shortest path)