Demo : http://routingonosm-brandboat.rhcloud.com/ (offline)
- node and npm
- postgresql, postgis and pgrouting
psql -U username -d dbname
CREATE EXTENSION postgis;
CREATE EXTENSION pgrouting;
You can install the sample data or download your own from OpenStreetMap
osm2pgrouting -file "map.osm" \
-conf "/usr/share/osm2pgrouting/mapconfig.xml" \
-dbname DBNAME \
-user USERNAMWE \
-clean
npm install
npm start
With the default settings, your server will be running at http://localhost:3000
for further information, please go to : http://brandboat.github.io/2014-08-16-Routing_on_OSM/ (offline, Chinese)