<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
4. write stored procedures like:<br>
point = osrm_locate(point)<br>
point = osrm_nearest(point)<br>
<br>
jsontext = osrm_viaroute(point[], alt, instruction, zoom)<br>
status = osrm_getRouteStatus(jsontext);<br>
polyline = osrm_getRouteGeometry(<u></u>jsontext, alt)<br>
instructions[] = osrm_getRouteInstructions(<u></u>jsontext, alt)<br>
<br>
distancematrix[][] = osrm_dmatrix(points[])<br>
distancerow[] = osrm_one2many(point, points[]<br>
<br>
To support this, it would be great if Dennis had time to add two methods to osrm-routed like:<br>
<br>
<a href="http://server:5000/dmatrix?lat=" target="_blank">http://server:5000/dmatrix?<u></u>lat=</a><lat>&lon=<lon>&...<br>
<a href="http://server:5000/one2many?slat=" target="_blank">http://server:5000/one2many?<u></u>slat=</a><start_lat>&slon=<start_<u></u>lon>&lat=<lat>&lon=<lon>&...<br>
<br></blockquote><div><br></div><div>Hi Steve, Dennis and Emil,</div><div><br></div><div>To be able to use the route for further processing, it would be also nice, if OSRM would return a list of original network link ID's instead of a more or less simplified route geometry and a few via points.</div>
<div><br></div><div>This is not an issue for distance matrices, where you only need to total distance or cost, but too much generalized routes was the reason, why I couldn't make use of OSRM once. And especially if the OSRM routing result could be later used again in PostgreSQL/PostGIS, having the original road network ID's would be very helpful.</div>
<div><br></div><div>So far I couldn't find anything else than this JSON output format: <a href="https://github.com/DennisOSRM/Project-OSRM/wiki/Output-json">https://github.com/DennisOSRM/Project-OSRM/wiki/Output-json</a></div>
<div><br></div><div>Daniel</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div></div>-- <br><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>
eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66,99,171)" target="_blank">daniel.kastl@georepublic.de</a><br>Web: <a href="http://georepublic.de/" style="color:rgb(66,99,171)" target="_blank">http://georepublic.de</a></span>
</div></div>