Hi,
I have some trouble with the radiuses setting. i use the post driving car profile ( /v2/directions/{profile}/gpx). If i provide the coordinates (lon/lat) eg Norway of 17 waypoints:
curl -X POST \
'https://api.openrouteservice.org/v2/directions/driving-car/gpx' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' \
-H 'Authorization: xxx' \
-d '{"coordinates":[[7.98323055555556,58.1428388888889],[7.68801388888889,58.0488583333333],[7.52954722222222,57.982175],[6.58010277777778,58.2209694444444],[6.05318611111111,58.5626888888889],[5.98569444444444,58.9751972222222],[5.36428611111111,59.817875],[5.36897777777778,59.9081916666667],[5.36749722222222,60.4947083333333],[5.13532222222222,60.9029194444444],[6.48439166666667,61.7619861111111],[5.94444166666667,62.2145722222222],[7.55061388888889,62.5786083333333],[8.22959444444444,61.8840777777778],[9.21143611111111,61.8624666666667],[9.81465833333333,61.5003222222222],[10.5272138888889,57.4709527777778]]}'
it gives an error of 2 waypoints it cannot find:
[[7.5295472,57.9821750],[6.5801028 58.2209694]]
but when i use in addition the radiuses parameter either [350,-1] (found in other topic), [350,-1,30] (default), [350,-1,17] (total waypoints) or [350,-1,2] (error wayoints) they all give an error that the radius doesnt match the waypoints (Parameter ‘radiuses’ has incorrect value of ‘[350.0, -1.0]’. The number of specified radiuses must be one or equal to the number of specified waypoints." } , .
What should it be?
If i use the snapping service ( /v2/snap/{profile}:
curl -X POST \
'https://api.openrouteservice.org/v2/snap/driving-car' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' \
-H 'Authorization: xxx' \
-d '{"locations":[[7.5295472,57.982175],[6.5801028,58.2209694]],"radius":350}'
the server can find the waypoints within 350m
hope you can help