Here Batch Geocode API - 批次停留在已提交状态
Here Batch Geocode API - Batch stuck on Submitted status
我已将工作提交给 Here.com 以对 5 个地址进行地理编码。我使用 POST 请求使用 Postman 提交。我是周三提交的,现在周五了,查看状态还是"Submitted".
这是我使用的 api 请求:
https://batch.geocoder.api.here.com/6.2/jobs?app_id=ID&app_code=CODE&mailto=billtepe@gmail.com&outdelim=|&outcols=displayLatitude,displayLongitude,locationLabel,houseNumber,street,district,city,postalCode,county,state,country&indelim=|
数据:
recId|searchText|country
1|1 BRAID WAY TAYLOR MILL KY 41011|USA
2|1 GEORGETOWN FORT MITCHELL KY 41017|USA
3|1 SPERTI DR KY|USA
4|10 E. 29TH ST. TAYLOR MILL KY 41015|USA
5|1000 W 33RD ST LATONIA KY 41015|USA
我得到的回复:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:SearchBatch xmlns:ns2="http://www.navteq.com/lbsp/Search-Batch/1">
<Response>
<MetaInfo>
<RequestId>bEmNvFu9M7AVaISeEYvrT4cYMlj29Y8K</RequestId>
</MetaInfo>
<Status>submitted</Status>
<TotalCount>0</TotalCount>
<ValidCount>0</ValidCount>
<InvalidCount>0</InvalidCount>
<ProcessedCount>0</ProcessedCount>
<PendingCount>0</PendingCount>
<SuccessCount>0</SuccessCount>
<ErrorCount>0</ErrorCount>
</Response>
</ns2:SearchBatch>
这是我通过 POSTMAN 提交的 GET 请求以检查状态:
https://batch.geocoder.api.here.com/6.2/jobs/bEmNvFu9M7AVaISeEYvrT4cYMlj29Y8K?app_id=ID&app_code=CODE&action=status
这是我 2.5 天以来一直收到的回复。这需要多长时间?我是 Here 的新手,只是不知道我的期望是什么。
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:SearchBatch xmlns:ns2="http://www.navteq.com/lbsp/Search-Batch/1">
<Response>
<MetaInfo>
<RequestId>bEmNvFu9M7AVaISeEYvrT4cYMlj29Y8K</RequestId>
</MetaInfo>
<Status>submitted</Status>
<TotalCount>0</TotalCount>
<ValidCount>0</ValidCount>
<InvalidCount>0</InvalidCount>
<ProcessedCount>0</ProcessedCount>
<PendingCount>0</PendingCount>
<SuccessCount>0</SuccessCount>
<ErrorCount>0</ErrorCount>
</Response>
</ns2:SearchBatch>
如有任何帮助或指导,我们将不胜感激。
很遗憾,您没有通过向 POST 请求添加“&action=运行”来启动作业。请查看 https://developer.here.com/documentation/batch-geocoder/topics/submit-batch-request.html
中的文档
您可以通过发送带有该操作的 PUT 请求来单独启动作业。
然后作业将变为状态 "ACCEPTED"。只有这样它才会被排队等待执行:
https://batch.geocoder.api.here.com/6.2/jobs/bEmNvFu9M7AVaISeEYvrT4cYMlj29Y8K?app_id=ID&app_code=CODE&action=run
我已将工作提交给 Here.com 以对 5 个地址进行地理编码。我使用 POST 请求使用 Postman 提交。我是周三提交的,现在周五了,查看状态还是"Submitted".
这是我使用的 api 请求:
https://batch.geocoder.api.here.com/6.2/jobs?app_id=ID&app_code=CODE&mailto=billtepe@gmail.com&outdelim=|&outcols=displayLatitude,displayLongitude,locationLabel,houseNumber,street,district,city,postalCode,county,state,country&indelim=|
数据:
recId|searchText|country
1|1 BRAID WAY TAYLOR MILL KY 41011|USA
2|1 GEORGETOWN FORT MITCHELL KY 41017|USA
3|1 SPERTI DR KY|USA
4|10 E. 29TH ST. TAYLOR MILL KY 41015|USA
5|1000 W 33RD ST LATONIA KY 41015|USA
我得到的回复:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:SearchBatch xmlns:ns2="http://www.navteq.com/lbsp/Search-Batch/1">
<Response>
<MetaInfo>
<RequestId>bEmNvFu9M7AVaISeEYvrT4cYMlj29Y8K</RequestId>
</MetaInfo>
<Status>submitted</Status>
<TotalCount>0</TotalCount>
<ValidCount>0</ValidCount>
<InvalidCount>0</InvalidCount>
<ProcessedCount>0</ProcessedCount>
<PendingCount>0</PendingCount>
<SuccessCount>0</SuccessCount>
<ErrorCount>0</ErrorCount>
</Response>
</ns2:SearchBatch>
这是我通过 POSTMAN 提交的 GET 请求以检查状态:
https://batch.geocoder.api.here.com/6.2/jobs/bEmNvFu9M7AVaISeEYvrT4cYMlj29Y8K?app_id=ID&app_code=CODE&action=status
这是我 2.5 天以来一直收到的回复。这需要多长时间?我是 Here 的新手,只是不知道我的期望是什么。
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:SearchBatch xmlns:ns2="http://www.navteq.com/lbsp/Search-Batch/1">
<Response>
<MetaInfo>
<RequestId>bEmNvFu9M7AVaISeEYvrT4cYMlj29Y8K</RequestId>
</MetaInfo>
<Status>submitted</Status>
<TotalCount>0</TotalCount>
<ValidCount>0</ValidCount>
<InvalidCount>0</InvalidCount>
<ProcessedCount>0</ProcessedCount>
<PendingCount>0</PendingCount>
<SuccessCount>0</SuccessCount>
<ErrorCount>0</ErrorCount>
</Response>
</ns2:SearchBatch>
如有任何帮助或指导,我们将不胜感激。
很遗憾,您没有通过向 POST 请求添加“&action=运行”来启动作业。请查看 https://developer.here.com/documentation/batch-geocoder/topics/submit-batch-request.html
中的文档您可以通过发送带有该操作的 PUT 请求来单独启动作业。 然后作业将变为状态 "ACCEPTED"。只有这样它才会被排队等待执行:
https://batch.geocoder.api.here.com/6.2/jobs/bEmNvFu9M7AVaISeEYvrT4cYMlj29Y8K?app_id=ID&app_code=CODE&action=run