【问题标题】:Getting InvalidCredential and Permission error while using geocoder and here api使用地理编码器和此处 api 时出现 InvalidCredential 和 Permission 错误
【发布时间】:2020-04-16 10:50:42
【问题描述】:

我正在传递州名,并希望获得州的经纬度。但我在击球时无法得到回应。使用从这里开发者控制台获取的 app_id 和 app_code。我遇到的错误

H.service.jsonp.handleResponse(2)(rPR8jXBgboz6xZYrrg53 的凭据无效)

【问题讨论】:

  • H.service.jsonp.handleResponse(2)(navteq.com/lbsp/Errors/1" type="PermissionError" subtype="InvalidCredentials">
    应用程序凭据无效-code
    )

标签: angular here-api geocoder


【解决方案1】:

不确定您使用的是哪个 API,但您可以检查新的 HERE 域,因为出于安全目的,新建议是使用 apikey 而不是 app_id/app_code。

更改域名的链接- https://developer.here.com/documentation/authentication/dev_guide/topics/hosts-mapping.html

还有供您检查的示例请求

https://geocoder.ls.hereapi.com/6.2/geocode.json?searchtext=Rajasthan&apiKey={}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-16
    • 1970-01-01
    相关资源
    最近更新 更多