The Batch Geocoder API returns only failed status

岁酱吖の 提交于 2019-12-11 16:47:49

问题


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=|

The request data is:

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}

The returned status is always failed.


回答1:


id you url-encode the pipe symbol in 'indelim' and 'outdelim', e.g. "indelim=%7C" ?

See also https://developer.here.com/documentation/batch-geocoder/topics/request-encoding.html



来源:https://stackoverflow.com/questions/53882420/the-batch-geocoder-api-returns-only-failed-status

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!