1

Is there a way to use OSRM with PostGIS (Windows)?

Related: Why mobile routing is so fast?

Magno C
  • 2,140
  • 3
  • 24
  • 63
  • Seem you can with http://luarocks.org/en/Download looking how MapBox implements this https://www.mapbox.com/blog/osrm-using-external-data/ – Mapperz Jan 23 '14 at 16:50
  • Sorry, I'm not clear. I need to use OSRM from inside Postgre SQL queries, like I do by using pgRouting. – Magno C Jan 23 '14 at 16:56
  • OSRM is a stack of tools that sits on top a database, but only the development branch support external data (postgis) https://github.com/DennisOSRM/Project-OSRM/tree/develop – Mapperz Jan 23 '14 at 17:00

1 Answers1

3

OSRM does not use a database, but tuned data structure that are sometimes (falsely) called index. The process to go from raw OSM data to actual query processing is a multi-step process, i.e. extract, prepare, route. As Mapperz said, it is possible to query a SQL data base for additional data during the extraction process.

To query OSRM for routes from your SQL queries, you would need to connect via http to a running OSRM instance and parse the data.

DennisL
  • 191
  • 1