【发布时间】:2022-06-13 18:07:59
【问题描述】:
我正在尝试使用 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 参数。它们必须作为查询参数传递。如果您没有 app_id 和 app_code,请通过您的客户代表获取或http://developer.here.com/myapps."
但是这里的文档说我可以使用 ApiKey 或 App_code 和 App_id。 https://developer.here.com/documentation/routing/dev_guide/topics/resource-calculate-matrix.html
为什么它不能与 apiKey 一起使用?
【问题讨论】: