<div dir="ltr"><div>Hi Daniel,<br><br></div>Despite it's a pretty old thread regarding feeding OSRM with postgis geometries, I have new lights to bring up<br><br><div><div><div class="gmail_extra"><div class="gmail_quote">2017-11-30 18:09 GMT+01:00 Daniel Hofmann <span dir="ltr"><<a href="mailto:hofmann@mapbox.com" target="_blank">hofmann@mapbox.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>OSRM is a routing engine for OpenStreetMap and the OpenStreetMap extracts usually come in xml or pbf formats.<br></div></div></div></div></blockquote><div><br></div><div>I find this a bit restrictive and I wonder why it's valuable to stuck osrm on osm data only.<br></div><div>I work for a company which is interested to use osrm as a router for public works (not cycling nor car or whatever).<br></div><div>We have lot of private data we process into a postgresql db in which osm data is also imported.<br><br></div><div>OSM XML file production at the end of our process generate a lot of overhead as to feed osrm.<br></div><div>This doesn't bring advantage at all.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div></div>We're using <a href="https://github.com/osmcode/libosmium" target="_blank">https://github.com/osmcode/<wbr>libosmium</a> in the osrm-extract binary; you theoretically _could_ switch it out with calls to your database but that will be a bigger lift I guess, and we don't want to add arbitrary data source drivers to OSRM.<br></div></div></div></blockquote><div><br>
<div>We think about creating another connector which would enable osrm-extract to get its data directly for pgsql.<br></div><div>Currently we're not aware of how deep the xml/libosmium is linked to osrm-extract binary.<br><br></div><div>Our use cases enlarge the potential and relevance of osrm in industrial/profesionnal use.</div>
We look to be as constructive as possible and it will be a pleasure to share since osrm is great tool.<br></div><div> <br><br></div><div>All the best<br><br></div><div>François<br></div></div><br></div></div></div></div>