批处理Geocoder API仅返回失败状态 [英] The Batch Geocoder API returns only failed status
本文介绍了批处理Geocoder API仅返回失败状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了Here Batch Geocoder Api问题.
I experience an issue with the Here Batch Geocoder Api.
到目前为止,我尝试使用不同的输入数据和输入参数都没有成功.
I have tried with different input data and input parameters with not success so far.
我发送了一个带有运行请求的请求,例如:
I send a request with action run, like:
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
请求标头: 内容类型:文本/纯文本
The Request Headers: Content-Type:text/plain
响应的状态为已接受",这很好,但在我通过以下方式检查状态后
The response is with status "accepted" which is fine but after I check the status with
https://batch.geocoder.api.here.com/6.2/jobs/{id}/?action=status&app_id={app_id_value}&app_code={app_code_Value}
返回的状态始终失败.
推荐答案
您将管道符号用url编码为'indelim'和'outdelim',例如"indelim =%7C"?
id you url-encode the pipe symbol in 'indelim' and 'outdelim', e.g. "indelim=%7C" ?
另请参见 https://developer.here.com /documentation/batch-geocoder/topics/request-encoding.html
这篇关于批处理Geocoder API仅返回失败状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文