<div dir="ltr"><div><div><div><div><div>Hi Daniel,<br><br></div>Thank you for your answer.<br><br></div>Wouldn't be a good idea to add ability for osrm-extract to directly get its data from a postgis DB ?<br></div>OSM XML is really specific, and users may be interest to make different processing to raw osm extract prior to route on their data.<br><br></div>For now I'll be writing a quick extractor from postgis to xml as recommended.<br><br><br></div>All the best<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b>François Lacombe</b><br><br>fl dot infosreseaux At gmail dot com<br><a href="http://www.infos-reseaux.com" target="_blank">www.infos-reseaux.com</a><br><a href="http://www.twitter.com/InfosReseaux" target="_blank">@InfosReseaux</a></div></div></div>
<br><div class="gmail_quote">2017-11-29 16:35 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>Yes, if all your data comes from a database the best way to get it into OSRM is to map your data to the OpenStreetMap tagging schema.<br><br></div>You can either create an .osm.xml or even an .osm.pbf if you need the compression and compactness; you can use e.g. libosmium to write both formats.<br></div><div><br></div>Good luck,<br></div>Daniel J H<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Nov 29, 2017 at 4:28 PM, François Lacombe <span dir="ltr"><<a href="mailto:fl.infosreseaux@gmail.com" target="_blank">fl.infosreseaux@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I was recently asked to feed OSRM with other data than OSM files which are stored in a PgSQL db.<br></div>Is this even possible ?<br><br></div>The data we want to process doesn't come from OSM db, should we produce an osm xml file with those data prior to use osrm-extract ?<br><br></div>I know OSRM can query a postgis DB to adapt its results but this doesn't seem to prevent it to load a base graph out of OSM data.<br><div><div><br><br></div><div>Many thanks for any answer<span class="m_7535627702352054883HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_7535627702352054883HOEnZb"><font color="#888888"><div>François</div></font></span></div></div>
<br></div></div>______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div>