具有Here映射的Reverse.geocoder API

时间:2019-06-18 06:46:03

标签: api dictionary

在调用heremap api时,请在下面的响应中找到:

请求

  

https://reverse.geocoder.api.here.com/6.2/reversegeocode.json?prox=13.0275901,80.27571739999999&mode=retrieveAddresses&maxresults=1&gen=9&app_id=8l6WmC8BEn70OFkKeqYH&app_code=lQFhE2h-pX1QTdg-O1Cv3A

响应

<ns2:Error xmlns:ns2="http://www.navteq.com/lbsp/Errors/1" type="PermissionError" subtype="InvalidCredentials"><Details>invalid credentials for 8l6WmC8BEn70OFkKeqYH</Details></ns2:Error>

对于上述响应,这是控制台错误:

  

CORS策略已阻止从来源“ https://matrix.route.api.here.com/routing/7.2/calculatematrix.json?app_id=8l6WmC8BEn70OFkKeqYH&app_code=lQFhE2h-pX1QTdg-O1Cv3A&start0=13.0827,80.2707&destination0=19.7835588,85.7816571&destination1=27.3741176,76.3307899&destination2=19.7775265,74.4703156&destination3=34.0881909,74.8350646&destination4=9.6032624,77.1739492&destination5=11.7067682,76.301539&destination6=11.7716576,78.1983216&destination7=12.5869723,78.6414047&mode=balanced;car;traffic:disabled&summaryAttributes=distance,traveltime,routeId”访问“ https://www.sterlingholidays.com”处的XMLHttpRequest:请求的资源上没有“ Access-Control-Allow-Origin”标头。

我使用的是免费地图版本的Here Map API。我尚未尝试解决此问题。

0 个答案:

没有答案