这里反向地理编码api错误请求的资源未找到

问题描述 投票:0回答:1

revgeocode.search.hereapi.com 始终返回错误的凭据或找不到资源

https://revgeocode.search.hereapi.com/v1/%20revgeocode%20?at=48.2181679%2C16.3899064%20&lang=en-US%20&apiKey=使用api密钥返回找不到资源

https://reverse.geocoder.ls.hereapi.com/6.2/reversegeocode.json?prox=41.8842%2C-87.6388%2C250&mode=retrieveAddresses&maxresults=1&apiKey= 具有相同的 api 密钥返回

{ "details": "凭证无效", “附加数据”:[], "type": "权限错误", "subtype": "无效凭证" }

我使用与 HERE Search - Reverse Geocoder v7 链接的服务创建了新项目,将应用程序添加到项目中并生成了新的 api 密钥来访问位置的反向地理代码。

解决方案和文档不匹配,简单的任务非常复杂,服务链接的文档指向 v1,它总是抛出资源未找到错误。

甚至尝试使用应用程序代码和应用程序 id 的 6.2,它返回相同的错误。

here-api
1个回答
0
投票

请删除网址中的多余空格,API 调用即可正常工作。 https://revgeocode.search.hereapi.com/v1/revgeocode?at=48.2181679,16.3899064&lang=en-US&apiKey=

另请注意,Geocoder 6.2 服务不适用于 HERE 平台上生成的 API 密钥,并且 Appid/Appcode 身份验证方法已弃用。

© www.soinside.com 2019 - 2024. All rights reserved.