Demo : http://routingonosm-brandboat.rhcloud.com/
- os: Ubuntu 12.04
- nodejs: 0.10
- postgresql: 9.1
- pgrouting: 9.1 (based on postgresql)
- postGIS: 2.0
- install nodejs 0.10 , postgresql9.1, postGIS2.0, pgrouting
- psql -U username -d dbname
- CREATE EXTENSION postgis;
- CREATE EXTENSION pgrouting;
- download map data from openstreetmap
- osm2pgrouting -file "sampledata.osm"
-conf "/usr/share/osm2pgrouting/mapconfig.xml"
-dbname DBNAME
-user USERNAMWE
-clean - node server.js
for further information, please go to : http://brandboat.github.io/blog/2014/08/16/Routing_on_OSM/ (Chinese)