批处理Geocoder API仅返回失败状态

时间:2018-12-21 09:43:38

标签: c# here-api geocoder

我在此处遇到批量地理编码器Api的问题。

到目前为止,我尝试使用不同的输入数据和输入参数都没有成功。

我发送了一个运行运行的请求,例如:

http://batch.geocoder.cit.api.here.com/6.2/jobs?action=run&app_code={app_code_value}&app_id={app_id_valeu}&outdelim=|&outcols=displayLatitude,displayLongitude,locationLabel&outputcombined=false&indelim=|

请求数据为:

recId|searchText|country
0001|Invalidenstraße 116 10115 Berlin|DEU
0002|Am Kronberger Hang 8 65824 Schwalbach|DEU
0003|425 W Randolph St Chicago IL 60606|USA
0004|One Main Street Cambridge MA 02142|USA
0005|200 S Mathilda Ave Sunnyvale CA 94086|USA

请求标头: 内容类型:文本/纯文本

响应的状态为“已接受”,这很好,但在我通过以下方式检查状态后

https://batch.geocoder.api.here.com/6.2/jobs/{id}/?action=status&app_id={app_id_value}&app_code={app_code_Value}

返回的状态始终失败。

1 个答案:

答案 0 :(得分:0)

  

您将“ indelim”和“ outdelim”中的管道符号进行url编码,例如“ indelim =%7C”?

另请参阅https://developer.here.com/documentation/batch-geocoder/topics/request-encoding.html