Skip to content

milovanderlinden/Routing-On-OSM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

postgresql + postgis + pgrouting + nodejs + OSM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.1%
  • CSS 35.2%
  • Other 0.7%