Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Here api 此处API事件API prox应用程序错误/无效输入数据_Here Api - Fatal编程技术网

Here api 此处API事件API prox应用程序错误/无效输入数据

Here api 此处API事件API prox应用程序错误/无效输入数据,here-api,Here Api,我正在尝试使用此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 para

我正在尝试使用此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"
}

请参考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

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