HERE Maps Intermodal Routing API v8 例子不工作(API Key Auth)。

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

这里的地图新手在这里。

我已经建立了一个账户,并尝试运行联运路由的例子(链接)

我基本上是将GET请求复制粘贴到浏览器中,并将{YOUR_API_KEY}替换为我事先生成的密钥({MY_API_KEY})。

https://intermodal.router.hereapi.com/v8/routes?apyKey={MY_API_KEY}&alternatives=2&destination=52.40358749909618,13.058351363288239&origin=52.53105637575095,13.384944833815183

这就是我得到的响应。

{"error":"Unauthorized","error_description":"Bearer token invalid. Bearer missing or bearer value missing."}

其他的API请求在使用相同的API密钥时也能正常工作--比如下面的普通路由请求就能正常工作。

https://router.hereapi.com/v8/routes?apiKey={MY_API_KEY}&transportMode=car&origin=52.5308,13.3847&destination=52.5264,13.3686

我也试着把最上面的请求中的 "apyKey="替换成 "apiKey=",但响应还是一样......。

是我遗漏了什么(其他),还是这个API的apiKey Auth有什么问题?

最好的!

here-api
1个回答
0
投票

它的工作原理是 apikey,所以。

https://intermodal.router.hereapi.com/v8/routes?apikey={MY_API_KEY}&alternatives=2&destination=52.40358749909618,13.058351363288239&origin=52.53105637575095,13.384944833815183


通常情况下 apiKeyapikey 应该可以,但似乎服务不接受大写的 "K"

apyKey 看起来像是文档问题。

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