<div dir="ltr"><div dir="auto"><div dir="ltr"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr"> I ask for advice in using OSRM with a live stream of data. The examples I've seen relate to tracks that can be passed into OSRM and it will apply "map matching" to snap all points to the roads, in one move.<br></div><div dir="ltr"> </div><div dir="ltr"> My scenario is different, I am trying to understand whether it is feasible with in circumstances:</div><div dir="ltr"> - a fleet of 500 public transport vehicles</div><div dir="ltr"> - each vehicle sends telemetry every 10s</div><div dir="ltr"> - all of this is happening within a 120 km^2 city</div><div dir="ltr"> - the vehicles move on fixed routes that I know in advance</div><div dir="ltr"> </div><div dir="ltr">I followed the Docker guide instructions and downloaded the map data for my country, then I sent a HTTP request to the matching API, with one data-point (note, in the examples below, the order is lon/lat, as mentioned in the FAQ):<br></div><div dir="ltr">curl '<a href="http://127.0.0.1:5000/match/v1/driving/28.8260977,47.0231816">http://127.0.0.1:5000/match/v1/driving/28.8260977,47.0231816</a>'</div><div>OSRM replied with "Number of coordinates needs to be at least two."</div><div dir="ltr"><br></div><div dir="ltr">So I did: curl '<a href="http://127.0.0.1:5000/match/v1/driving/28.8260977,47.0231816;28.8260977,47.0231816">http://127.0.0.1:5000/match/v1/driving/28.8260977,47.0231816;28.8260977,47.0231816</a>'<br>and got {"message":"Could not find a matching segment for any coordinate.","code":"NoSegment"}</div><div dir="ltr"><br></div><div>What worked out in the end was:</div>curl '<a href="http://127.0.0.1:5000/match/v1/driving/28.8260977,47.0231816;28.8260977,47.0231816?radiuses=15;15">http://127.0.0.1:5000/match/v1/driving/28.8260977,47.0231816;28.8260977,47.0231816?radiuses=15;15</a>'</div><div dir="ltr"><br><div dir="ltr"> </div><div dir="ltr"> My questions are:</div><div dir="ltr"> 1. Is OSRM's matching suitable for such scenarios?</div><div> 2. Did I correctly understand and apply the matching API?<br></div><div dir="ltr"> 3. What is the recommended number of points for a match query?</div><div dir="ltr"> 4. In what circumstances would it be able to handle a rate of 50 requests/s?</div><div dir="ltr"> 5. What techniques can I apply to increase throughput? </div><div dir="ltr"> 6. Instead of using the map of an entire country, or even a city - can I tell OSRM to match to a specific route that I know for sure the vehicle is on?</div><div dir="ltr"> </div><div dir="ltr"> </div><div dir="ltr"> I look forward to your to your feedback,</div><div>Alex<br></div></div></div>
</div>