<div dir="ltr"><div><div><div>It's reserved for future use, see<br><br><a href="https://github.com/Project-OSRM/osrm-backend/issues/2512">https://github.com/Project-OSRM/osrm-backend/issues/2512</a><br><br></div><div>Yes, at the moment you have to start one server per profile and dispatch with a HTTP server in front of it.<br></div><div>If you use e.g. the node-osrm bindings [1] you can build a single express/koa HTTP server doing this dispatching internally.<br><br>Feel free to edit the Wiki if you stumble over such issues :)<br></div><br></div>Cheers,<br></div>Daniel J H<br><br>1  <a href="https://github.com/Project-OSRM/node-osrm">https://github.com/Project-OSRM/node-osrm</a><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 8, 2017 at 3:35 PM, Jäger, Frank (KRZ) <span dir="ltr"><<a href="mailto:F.Jaeger@krz.de" target="_blank">F.Jaeger@krz.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hallo,<br>
while my first routing-service with osrm-backend now is running on my server, I'm thinking to serve another profile.<br>
<br>
The documentation<br>
<a href="https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md#general-options" rel="noreferrer" target="_blank">https://github.com/Project-<wbr>OSRM/osrm-backend/blob/master/<wbr>docs/http.md#general-options</a><br>
... seems to have the profile-name in the URL.<br>
<br>
/{service}/{version}/{profile}<wbr>/{coordinates}<br>
<br>
I wonder if  {profile}  points to the foldername, or to the filename?<br>
No, nothing. It's just a trap!<br>
<br>
<a href="https://router.project-osrm.org/route/v1/foot/8.602208,52.248399;8.630159,52.241298?steps=false&alternatives=false&geometries=geojson&overview=full" rel="noreferrer" target="_blank">https://router.project-osrm.<wbr>org/route/v1/foot/8.602208,52.<wbr>248399;8.630159,52.241298?<wbr>steps=false&alternatives=<wbr>false&geometries=geojson&<wbr>overview=full</a><br>
is just the same as<br>
<a href="https://router.project-osrm.org/route/v1/banane/8.602208,52.248399;8.630159,52.241298?steps=false&alternatives=false&geometries=geojson&overview=full" rel="noreferrer" target="_blank">https://router.project-osrm.<wbr>org/route/v1/banane/8.602208,<wbr>52.248399;8.630159,52.241298?<wbr>steps=false&alternatives=<wbr>false&geometries=geojson&<wbr>overview=full</a><br>
<br>
The value of "profile" after "/v1/" has no function.  Only the service-port of the service maps to the computed profile, I think.<br>
<br>
So, for a second routing-profile I have to start a second service on a another port?  Is this true?<br>
<br>
It would save a lot of time for beginners like me to write this information into the documentation.<br>
It costs a lot of testing to get out of this "trap".<br>
<br>
<br>
Greetings<br>
<span class="HOEnZb"><font color="#888888">Frank<br>
<br>
</font></span><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>