请求附近的站点时未经授权的响应

时间:2017-07-31 13:18:19

标签: here-api

我试图向/v3/stations/by_geocoord.json发出请求,但我一直收到回复消息"这些凭据不授权访问。"完整的回复是:

{
  "Res": {
    "serviceUrl": "https://cit.transit.api.here.com/transit/v3/stations/by_geocoord.json",
    "Message": {
      "code": "I4",
      "level": "E",
      "text": "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."
    }
  }
}

我错过了什么?该端点是否需要接受任何进一步的T& Cs?或者它不包括在公共基本计划中?

谢谢!

1 个答案:

答案 0 :(得分:0)

您需要提供您的应用ID和应用代码才能使用API​​。它包含在基本计划中,访问它应该没有任何问题。

https://transit.api.here.com/v3/stations/by_geocoord.json?center=55.7541%2C37.6200&radius=350&app_id={YOUR-APP-ID}&app_code={YOUR-APP-CODE}&max=3
相关问题