Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 813 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 813 Bytes

Routing with pgRouting and Openstreetmap data

Demo : http://routingonosm-brandboat.rhcloud.com/ (offline)

Requirements

  • node and npm
  • postgresql, postgis and pgrouting

Test database

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

Run

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)