Here Batch Geocoder API表示可以使用 responseattributes
请求参数 . 我有兴趣从批处理地理编码文件中获取地理编码质量结果 .
在Response Attribute switches documentation中,它表示默认选项为 On by default: matchQuality, matchType
. 但是我不清楚批处理地理编码API实际上是如何返回的 . 听起来这些属性将在响应中返回,并且在API Explorer for the standard geocoder API中看起来确实会在JSON响应中返回这些属性 .
但批处理地理编码器API返回XML响应,然后最终返回包含最终数据文件的文件集合 . 在Batch Geocoder API explorer中,示例XML响应不包含这些默认字段 .
有一点,Here文档中列出的批处理地理编码器演示凭证有效,我能够撤回一个小的样本结果文件 . 我也没有在任何下载的文件上看到这些默认的 responseattributes
列 .
对于Batch Geocoder API,有没有办法获取有关地理编码地址质量的信息, matchQuality
, matchType
等?
2 回答
responseattributes
参数使其他响应属性可以包含结果,例如将其设置为:responseattributes=all
outcols
参数属性然后定义您获得哪些以及在哪里 . 我大量使用以下请求来包含结果分析的分数:http://batch.geocoder.cit.api.here.com/6.2/jobs?action=run&app_code=[your-app-code]&app_id=[your-app-id]&gen=8&header=true&indelim=|&outdelim=|&outcols=displayLatitude,displayLongitude,navigationLatitude,navigationLongitude,mapViewTopLeftLatitude,mapViewTopLeftLongitude,mapViewBottomRightLatitude,mapViewBottomRightLongitude,locationLabel,houseNumber,street,district,city,county,state,postalCode,country,relevance,matchLevel,matchType,matchCode,mapReferenceId,responseAdditionalData,addressAdditionalData&addressattributes=all&locationattributes=all&responseattributes=all&maxresults=5&outputcombined=true&mailto=[yourname@domain.com]
事实证明,当您为批处理地理编码请求定义输出列时,您还可以列出"Address Match Information"字段,这些字段提供我正在查找的信息:https://developer.here.com/rest-apis/documentation/batch-geocoder/topics/data-output.html
这些字段在requset查询参数中输入,然后显示在下载的结果输出数据文件中 .
我仍然不确定批处理地址编码器上的
responseattributes
参数是什么,或者它是否相关 .