As stated in the header: how can I use the match call?
I tried
http://router.project-osrm.org/match/v1/driving/8.610048,46.99917;8.530232,47.051?overview=full&radiuses=49;49
I am not sure, whether the list of radiuses
is given correctly.
I can't get it work. I also tried [49;49]
or {49;49}
The command works with route
:
http://router.project-osrm.org/route/v1/driving/8.610048,46.99917;8.530232,47.051?overview=full
For backround see here
Edit: If you look at the example here, itr seems, the timestamps
are not needed /match/v1/{profile}/{coordinates}?steps={true|false}&geometries={polyline|polyline6|geojson}&overview={simplified|full|false}&annotations={true|false}
From the docs:
I think that's the problem with your request. The two given points are more than 60s appart and OSRM cannot match them successfully. The
radiuses
are specified correctly.The following query works for me:
This returns:
So the two given input points
8.610048,46.99917
and8.620048,46.99917
are matched to8.610971,46.998963
and8.620295,46.999681
.So as far as I can see, if you want to implement something like that, you need to give OSRM more input points on its way which are less than 60s apart.
See also here for an explanation about the differences between
route
andmatch
service.