此处-API事件API代理ApplicationError / InvalidInputData

时间:2018-10-18 10:55:22

标签: here-api

我正在尝试使用此网址简单地请求在指定坐标的50英里范围内发生交通事故

https://traffic.api.here.com/traffic/6.3/incidents/json/8/134/86?app_id={{app_id}}&app_code={{app_code}}&prox=51.5074,0.1278,80467&maxresults=10

但是我收到此错误消息:

{
    "Details": "Too many selection parameters specified. Please use only one parameter (quadkey or bbox or prox etc.)",
    "AdditionalData": [],
    "type": "ApplicationError",
    "subtype": "InvalidInputData"
}

1 个答案:

答案 0 :(得分:1)

请参阅developer.here.com/documentation/traffic/topics/request-constructing.html构造您的请求。您在请求中提供了[Z] / [X] / [Y]以及邻近度,这是不可接受的。您可以提供四键,[Z] / [X] / [Y],边界框,走廊或邻近度之一。  您的查询可以是

https://traffic.api.here.com/traffic/6.3/incidents.json?app_id={YOUR-APP-ID}&app_code={YOUR-APP-CODE}&prox=51.5074,0.1278,80467&maxresults=10

OR

https://traffic.api.here.com/traffic/6.3/incidents/json/8/134/86?app_id={YOUR-APP-ID}&app_code={YOUR-APP-CODE}&maxresults=10