Does the HERE batch geocoding job request response take longer when there are more locations?

痞子三分冷 提交于 2019-12-25 01:48:39

问题


After starting a new batch geocoding job (step one here), does the amount of time it takes to get a response (step two here) depend on the amount of individual geocode requests? (ie. does it take longer to get a response for 10,000 locations VS 10 locations?)

On a similar note, what are the different possible statuses that can be returned in the response? (for instance, "accepted" in step two here)

I tried looking for these answers in the HERE batch geocoding documentation, but couldn't find anything.

The HERE API FAQ page directed me here for any technical support.


回答1:


Although there is a bigger infrastructure in the backend of the BGC and job items are processed in parallel to some degree, not all items of a batch job can be processed in parallel at the same time. So yes, it takes longer for bigger jobs.

A batch job can be in one of the following states:

submitted

A batch job was submitted to the batch system and is ready to be started. The batch job can be started by the user by sending the HTTP PUT "action=run" request.

accepted

Batch job has been verified for correctness and validity and has been added to the queue, waiting to be scheduled for execution.

running

Job is being processed now.

complete

Job processing completed.

cancelled

Job has been cancelled by user with HTTP PUT command action=cancel.

deleted

Job was deleted by user with HTTP DELETE command

failed

Job failed while running. This is unusual and caused by an internal error. You can try to restart the job with a PUT request and action=run or delete the job.

State transition graph



来源:https://stackoverflow.com/questions/47724555/does-the-here-batch-geocoding-job-request-response-take-longer-when-there-are-mo

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