[GIS] Using OpenStreetMap for routing in GeoServer

geoserveropenstreetmappgroutingpostgispostgresql

I am new in OSM but now I need create application which will use GIS (Geoserver) and will be provide service to get road from point A to point B.

I found some informations about this but I still have any questions. My is download open street maps and extract to database (PostgreSQL), and for routing use plugin pgRouting. Next connect db to map server and provide api for clients.

Is that correct way?

How osm format could I use for postgre? (osm.pbf? shp.zip?, or something else?)

Best Answer

Using osm2pgrouting, you can load your OSM data into PostGIS http://pgrouting.org/docs/tools/osm2pgrouting.html

Then follow the pgRouting tutorial http://pgrouting.org/documentation.html to get a handle on what pgRouting is doine.

From there, once you can get your pgRouting setup to work strictly within PostGIS, then Geoserver will merely serve as a conduit between your PostGIS database and the web through paramaterized SQL queries exposed by GUI's on your website.

Check this presentation for some information:

http://www.slideshare.net/kastl/pg-routing-presentation-foss4g-europe

I wish Daniel Kastl's video from FOSS4G in Portland was still online, but I think that presentation above is close...

Related Question