<div dir="ltr"><div><div>If you check the v5 spec you linked, you will see only Route, Trip and Match providing a "geometries" option.<br><br></div>What you can do is this:<br>- do a Table request from your position against all Bus / Tram stops in the area / in a buffer of a few kilometers<br></div><div>- pick n shortest routes from the Table response and temporarily store their destination coordinates<br></div><div>- do n Route request from your position against the n destination coordinates and extract the geometry<br><br></div><div>Cheers,<br></div><div>Daniel J H<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 15, 2016 at 3:49 PM, Michal Palenik <span dir="ltr"><<a href="mailto:michal.palenik@freemap.sk" target="_blank">michal.palenik@freemap.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<br>
within the new api, I am trying to find how to get geometry (together<br>
with perfect duration). is it possible?<br>
<br>
or do I have to make N*M queries for all the possible combinations?<br>
<br>
<a href="https://github.com/Project-OSRM/osrm-backend/wiki/New-Server-api#service-table" rel="noreferrer" target="_blank">https://github.com/Project-OSRM/osrm-backend/wiki/New-Server-api#service-table</a><br>
<br>
I am trying to make a service like "show me the routes to the closest<br>
bus/tram stops" : <a href="http://epsilon.sk/mhd/" rel="noreferrer" target="_blank">http://epsilon.sk/mhd/</a><br>
<br>
thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
michal<br>
<br>
--<br>
michal palenik<br>
<a href="http://www.freemap.sk" rel="noreferrer" target="_blank">www.freemap.sk</a><br>
<a href="http://www.oma.sk" rel="noreferrer" target="_blank">www.oma.sk</a><br>
<br>
<br>
_______________________________________________<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.org/listinfo/osrm-talk</a><br>
</font></span></blockquote></div><br></div>