Skip to content

Instantly share code, notes, and snippets.

Avatar

Loïc Messal Tofull

View GitHub Profile
@Tofull
Tofull / OSMParser.py
Last active Nov 3, 2020 — forked from aflaxman/gist:287370
networkx-osm import open street map data as a networkx graph
View OSMParser.py
"""
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)