Skip to content
forked from krithin/gullies

Visualizations of shortest path routes in road networks.

License

Notifications You must be signed in to change notification settings

xsoroton/gullies

 
 

Repository files navigation

All Roads To

to Brisbane, Australia -27.468617, 153.026739 to Moscow, Russia, 55.7549391, 37.6115628 to Shanghai, 31.2231338, 120.9162975

project forked from https://github.com/krithin/gullies to generate map to specific needs (to make nice images)

Need to run local OSM server

to run it in docker https://github.com/Project-OSRM/osrm-backend#using-docker get data here: http://download.geofabrik.de/

docker run -t -i -p 5000:5000 -v $(pwd):/data osrm/osrm-backend osrm-routed --algorithm mld /data/australia-latest.osm.pbf

check original project readme if have a problems https://github.com/krithin/gullies/blob/master/README.md

working on my machine :D

python3 getlocations.py australia-latest.osm.pbf 20000 > data/locations.csv
cat data/locations.csv | python3 getroutes.py http://localhost:5000 > data/routes.txt
cat data/routes.txt | python3 collatesegments.py australia-latest.osm.pbf > data/routescollated.txt
cat data/routescollated.txt | python3 simplifysegments.py 2 > data/routessimplified.txt
cat data/routessimplified.txt | python3 plotmatplotlib.py img/RoadsToBrisbane_20000_segment2_nice2.png

Gallery

Brisbane, Australia -27.468617, 153.026739 Brisbane 30000 locations

Sydney, Australia -33.8469759, 150.3715249 Brisbane 30000 locations

Routes from 30000 locations to Brisbane, Australia -27.468617, 153.026739 Brisbane 30000 locations

Shanghai, China 31.2231338, 120.9162975 Shanghai 20000 locations

Shanghai, China 31.2231338, 120.9162975 Shanghai 20000 locations

Moscow, Russia 55.7549391, 37.6115628 Moscow 15000 locations

About

Visualizations of shortest path routes in road networks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%