【问题标题】:Here-API Incidents API prox ApplicationError/InvalidInputDataHere-API Incidents API prox ApplicationError/InvalidInputData
【发布时间】:2018-10-18 19:11:43
【问题描述】:

我正在尝试使用此 url 对指定坐标 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"
}

【问题讨论】:

    标签: here-api


    【解决方案1】:

    请参阅 developer.here.com/documentation/traffic/topics/request-constructing.html 以构建您的请求。您在请求中提供了 [Z]/[X]/[Y] 以及接近度,这是不可接受的。您可以提供 Quadkey、[Z]/[X]/[Y]、Bounding Box、Corridor 或 Proximity 之一。 您的查询可以是

    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
    

    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
    

    【讨论】:

      猜你喜欢
      • 2020-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-22
      • 2019-12-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多