HERE Routing API-获取403

时间:2019-02-21 07:41:04

标签: here-api

我正在尝试从快速入门https://developer.here.com/cn/documentation/routing/topics/request-a-simple-route.html开始运行简单的示例。输入我的应用程序ID和应用程序代码,但我不断得到:

curl 'https://route.hereapi.cn/routing/7.2/calculateroute.json?app_id=APP_ID&app_code=APP_CODE&waypoint0=geo!52.5,13.4&waypoint1=geo!52.5,13.45&mode=fastest;car;traffic:disabled'
{"error":"Forbidden","error_description":"These credentials do not authorize access. Please contact your customer representative or submit a request here https://developer.here.com/contact-us to upgrade your account. You can also get valid credentials by registering for a free trial license on https://developer.here.com."}

我的项目是PROD-edc776ee-a821-4156-8c1c-ebceb30a27e5。请帮忙。

1 个答案:

答案 0 :(得分:1)

您引用的文档和使用的api链接是特定于中国的。仅当您从中国访问时,此方法才有效。如果没有,那么您必须使用常规的路由API文档-https://developer.here.com/documentation/routing/topics/request-a-simple-route.html