诺基亚HERE路线匹配扩展Api

时间:2017-02-01 14:29:30

标签: routes match here-api

我正在尝试使用Nokias GPS Match API,但我总是遇到同样的错误。

错误:参数中的字符无效:''

附件中的

gpx文件。My Route

这是构造的URL:

  

http://rme.cit.api.here.com/2/matchroute.json?app_id= {}&安培;的app_code = {}&安培; routemode =汽车&安培; FILE = UEsDBBQAAAAIAOd6QUpfY6VcVQEAAB4EAAAOAAAAR1BTX1JlYWxfMi5ncHiNk0tvwjAMx89D4jtU   va95OE9UypELk5C4cK1YV6rRh5po7cdfCJtEDqg52Un8i / O3nXw3t7fkpxpN03fblGQ43RXrVV4P   c7i7XrnAzmxm02zTq7XDBqFpmrIJsn6sEcWYoPPH4XS5Vm353nTGlt2l + scCxPZDX4 / lVzNnl75F   ++ MZEeQzmGZj / AWH / lJan3uRS / 4i1qvXMcjJyWbzmd6l2fHbmSTJu7Ktiv3xlCPv + T13aKra + 4 / V   YJNbabcpU5nWTBLKmEqT2 / 1pKgPJMAAWOi1y5INfkwyAByBmjMeAEpR4AkFLpjRfBhVmoAKQcQAS   AYICqgOSMEVYBCmpEEFOpQiPyamxDB + rmKAsQqUTRVhIYo05jSClDgsrJVFcLYIcE4VJAAIXZLmV   HHMuRVBYiTEFGUFq14NApRAQ0RFO4F7FZ44KNxjP4Fvi / cfYe9db92WKX1BLAQIUABQAAAAIAOd6   QUpfY6VcVQEAAB4EAAAOAAAAAAAAAAEAIAAAAAAAAABHUFNfUmVhbF8yLmdweFBLBQYAAAAAAQAB   ADwAAACBAQAAAAA =

如果有人帮助我,我会很高兴的 感谢

2 个答案:

答案 0 :(得分:0)

我试过这个,它对我有用。你能分享完整的请求,包括编码的(!)gpx文件吗? (显然,如上所述,省略了应用ID和应用代码。)

答案 1 :(得分:0)

您可以使用新的HERE Fleet Telematics API通过GPX文件和apiKey发出此请求:

curl
--request POST
-H "Content-Type: application/binary"
--data-binary "@C:\temp\trace001.gpx"
"https://m.fleet.ls.hereapi.com/2/matchroute.json?routemode=car&apiKey{YOUR_API_KEY}"

https://developer.here.com/documentation/route-match/dev_guide/topics/example-gpx-trace.html