0

我遇到了 Here Batch 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

请求标头:Content-Type:text/plain

响应状态为“已接受”,这很好,但在我检查状态后

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

返回的状态总是失败。

4

1 回答 1

0

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

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

于 2018-12-22T22:46:36.417 回答