首页 > 解决方案 > 验证 findsequence 服务请求 HERE Maps API

问题描述

我正在尝试从 HERE Maps API 服务发出 GET 请求FindSequence。我注意到在docs中,它包括三个身份验证参数:app_id, app_code, apiKey. 文档暗示可以选择使用app_idapp_code组合或apiKey单独使用。这是有道理的,因为在 HERE Maps 文档的其他地方,注意到旧模式是要使用的app_idapp_code但最近已被弃用,现在应该apiKey单独使用。事实上,您甚至无法app_code在 HERE 开发人员项目仪表板中生成一个。

因此,我尝试使用 the 发出请求,apiKey但我遇到了要求app_idand的身份验证错误app_code

`curl --location --request GET "https://wse.api.here.com/2/findsequence.json?apiKey=[apiKey]`

{"faultCode":"s74149e0f-5b37-41b1-bf25-0d5f93e06938","responseCode":"400","message":"The request is missing the app_id and app_code parameters. They must both be passed as query parameters. If you do not have app_id and app_code, please obtain them through your customer representative or at http://developer.here.com/myapps."}

据我了解,免费增值帐户没有客户代表。我已经寻求技术帮助,他们将我送到 Stack Overflow。我关注了 url http://developer.here.com/myapps,但它重定向到https://developer.here.com/projects. app_code据我所知,无法从此网址获取。

我的问题是:1)我需要提供一个app_code吗?如果没有,我如何在没有请求的情况下提出请求?如果我确实需要一个app_code,我如何获得一个?2) 如果app_code无法再获得 s,是否应该使用其他服务或该服务的其他版本来计算给定航路点位置的最佳路线序列?

标签: here-apihere-maps-rest

解决方案


使用 API 密钥,您需要确保在*.hereapi.com.

因此,以下请求应该更好地工作:

curl --location --request GET "https://wse.ls.hereapi.com/2/findsequence.json?apiKey=[apiKey]&param1=value1&...

推荐阅读