问题
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