我正在尝试使用以下调用使用API键来获得原始访问型矩阵的距离:
https://matrix.route.api.here.com/routing/7.2/calculatematrix.json?apiKey=[API Key Here]&start0=35.04672,-85.30947&start1=39.766998.49461&destination0=39.10344,-94.58311&destination1=39.76691,-86.14996&destination2=29.42458,-98.49461&mode=fastest;car;traffic:disabled
但是它在响应详细信息中返回此错误:“请求丢失了app_id和app_code参数。查询参数。 //developer.here.com/myapps。”
但是这里的文档说我可以使用apikey或app_code和app_id。
为什么它不适用于apikey?
I'm trying to get distances for an origin-destination matrix using the following call using an API Key:
https://matrix.route.api.here.com/routing/7.2/calculatematrix.json?apiKey=[API Key Here]&start0=35.04672,-85.30947&start1=39.766998.49461&destination0=39.10344,-94.58311&destination1=39.76691,-86.14996&destination2=29.42458,-98.49461&mode=fastest;car;traffic:disabled
But it is returning this error in the response details: "The request is missing the app_id and app_code parameters. They must both be passed as query parameters. If you do not have app_id and app_code, please obtain them through your customer representative or at http://developer.here.com/myapps."
But the documentation here says I can use either ApiKey or App_code and App_id. https://developer.here.com/documentation/routing/dev_guide/topics/resource-calculate-matrix.html
Why doesn't it work with the apiKey?
发布评论
评论(1)
您使用的基本URL不正确,请替换为 https:// /matrix.route.ls.hereapi.com/Routing/7.2/calculatematrix.json 将其与API密钥一起使用。
将与Appid和AppCode一起使用。
有关更多帮助,请参阅 https://developer.here.com/documentation/exampleastion/Rest/Routing/one-to-many-matrix-routing
The base url you are using is incorrect, please replace it with https://matrix.route.ls.hereapi.com/routing/7.2/calculatematrix.json to use it with API key.
https://matrix.route.api.here.com/routing/7.2/calculatematrix.json will work with APPid and APPcode.
For more help on the same, please refer to the example at https://developer.here.com/documentation/examples/rest/routing/one-to-many-matrix-routing