Bing Map Batch geocode for large data set

Balasaheb Molawade 116 Reputation points
2023-01-10T05:29:37.213+00:00

Hi All,

We are using Bing map Batch geocode explained in the below link to geocode a large number of data.

https://learn.microsoft.com/en-us/bingmaps/spatial-data-services/geocode-dataflow-api/geocode-dataflow-walkthrough

We can geocode the records but when we pass a large set say suppose 10k, 50K then it took hours to finish geocode and sometimes gives an error. For example, for 10K records, it took around 2 hours to finish geocode.

Do you have any idea to increase geocode time and is there any matrix to show geocode the number of records with time.

Waiting for your reply.

Thanks!

Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
245 questions
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 15,211 Reputation points Microsoft Employee
    2023-01-17T16:49:49.9833333+00:00

    The batch geocoding service is a backend batch process that has a 24-hour SLA. Requests to this service is lower priority that the main geocoding services and done in a way to minimize impact to the on-demand type services. All batch geocoding jobs should complete in less than 24 hours but note that the processing time is directly impacted by the load on the platform, so running two jobs of the same size at different times may take totally different amounts of time.

    The only real option to get around this is to use the on-demand geocoding service and make a request for each location. Note that there are QPS limits on the platform. If you are using a free key, I believe the limit is around 5 queries per second, and for enterprise keys I think the default is around 50 queries per second. Making a request per location can be a lot faster and consistent in terms of processing times, but requires more upfront code development, makes for a lot more network traffic, and is more error prone (mainly because of the network traffic and QPS limits). Generally, this approach is only recommended in critical situations where a large number of locations must be geocoded within a small-time window. Generally, batch geocoding is a much better option.

    1 person found this answer helpful.