https://developer.here.com/documentation/maps/dev_guide/topics/routing.html
{"error":"Unauthorized","error_description":"ApiKey invalid. ApiKey not found."}
我在这里使用maps-api进行路由,它显示当我以json格式传递密钥参数时找不到api密钥错误密钥
// Instantiate a map and platform object:
var platform = new H.service.Platform({
'apikey': '{YOUR_APIKEY}'
});
地图正在工作,当我以简单字符串的形式传递密钥时,我不知道文档或api中是否有任何错误,请在您的网站上更新并检查一次
工作代码如下:
//实例化地图和平台对象:
var platform = new H.service.Platform({
'apikey': 'YOUR_APIKEY'
});
只需删除"{}",它就可以找到
您应该接受您的请求并将其粘贴到谷歌搜索(网页搜索顶部栏(上。最后去掉任何问号,你就会看到它会起作用,并重新格式化请求。从谷歌复制请求,现在就在Postman上试试;希望它能起作用。。。它对我有效。