[OSRM-talk] Map matching for live data-streams, one point at a time
Alex R
ralienpp at gmail.com
Fri Dec 6 23:14:58 UTC 2019
Hi,
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.
My scenario is different, I am trying to understand whether it is feasible
with in circumstances:
- a fleet of 500 public transport vehicles
- each vehicle sends telemetry every 10s
- all of this is happening within a 120 km^2 city
- the vehicles move on fixed routes that I know in advance
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):
curl 'http://127.0.0.1:5000/match/v1/driving/28.8260977,47.0231816'
OSRM replied with "Number of coordinates needs to be at least two."
So I did: curl '
http://127.0.0.1:5000/match/v1/driving/28.8260977,47.0231816;28.8260977,47.0231816
'
and got {"message":"Could not find a matching segment for any
coordinate.","code":"NoSegment"}
What worked out in the end was:
curl '
http://127.0.0.1:5000/match/v1/driving/28.8260977,47.0231816;28.8260977,47.0231816?radiuses=15;15
'
My questions are:
1. Is OSRM's matching suitable for such scenarios?
2. Did I correctly understand and apply the matching API?
3. What is the recommended number of points for a match query?
4. In what circumstances would it be able to handle a rate of 50
requests/s?
5. What techniques can I apply to increase throughput?
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?
I look forward to your to your feedback,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20191207/cbb1a55e/attachment.html>
More information about the OSRM-talk
mailing list