1

I'm trying to make a query to Here Maps API with JavaScript to calculate a route with waypoints, where the waypoints are of type "passThrough", the actual produced URL is (I just removed the API key):

https://router.hereapi.com/v8/routes?xnlp=CL_JSMv3.1.21.3&apikey={API_KEY_HERE}&routingMode=fast&transportMode=truck&origin=25.900672%2C-80.253709&destination=40.213615%2C-97.188347&unit=imperial&truck=%5Bobject%20Object%5D&return=polyline%2CtravelSummary&via=40.052839%2C-87.410475!passThrough%3Dtrue

This query returns an error response, even when I'm following the documentation. Here is the problem I found, If I paste this URL in the browser and remove "%3D" after "passThrough" from the URL, and explicitly change it to "=", the API then returns the expected response. Have to clarify that the URL from above works with curl -X GET. So I really think that the Here Maps API is not decoding the URL, even when they say that special characters have to be encoded.

Any clue on this? Am I wrong?

BSMP
  • 4,596
  • 8
  • 33
  • 44
ManKino
  • 47
  • 4
  • I am having the same issue with "!stopOver=" and just sent an email to my support contact. have you found a solution? – Rob Apr 11 '21 at 18:17
  • No answer from HereMaps. My manager told me to stop the project until June, so no solution yet – ManKino Apr 12 '21 at 23:09

0 Answers0