Hi, below is the request we are sending to retrieve toll charges. However, we get different errors depending on what accuracy we send.
Accuracy 10 to 40 = Could not match the trace with the given waypoints
Accuracy 50 = Query string malformed close to position 18
Accuracy 60 = Number of coordinates needs to be at least two
The polyline definitely has more than 2 waypoints.
Could you please help point what is wrong with the request?
We’re not sure whether this was fixed because of the other change we made earlier today. Are you able to double check for us?
The polyline provided appears to be on private or service roads and unmarked paths, which may be why it failed to match previously. It may also be that the polyline wasn’t escaped correctly in JSON format before sending it to the API.
The following payload, with the correct escape characters, is currently working:
Thank you Jxeeno.
The polyline now works. Seems like the fixes you guys deployed are working.
Yes, we do indeed escape the polylines in JSON before sending to API.