When you have hundreds of locations to plot on a map, speed counts. You likely want to be able to convert addresses to map markers faster than one per second. Even if you only have a single record at a time, your user experience is negatively impacted by delays of even milliseconds.
Since customers of our batch geocoding service rely on fast results, we set out to compare some of the top geocoders to see how quickly they could turn around several hundred addresses. The results below show what we learned testing the geocoders from Google, Bing, and MapQuest, as well as some other geocoders we considered.
Geocoding is the process of converting an address, city, state, zip code or postal code into mappable coordinates. In order to use most customized online mapping tools, such as Google Maps, you’ll need a pair of latitude and longitude coordinates for each of your locations, so each will need to be geocoded.
That’s how our page on geocoding addresses describes it.
For out geocoder tests, we used full addresses, including city, state, and zip code. There are many methods that cartographers can use to turn an address into a plot-able point. You can approximate with existing segments of a street, or use parcel-level centroids, to mention two. Regardless of the method, the result is what matters. Ideally, you’d find an accurate point in the shortest amount of time.
Before getting to the results, it’s important to understand how we approached our geocoding test. Our goal was to provide a setting to get the most accurate comparison possible, so we used the same approach with all geocoders.
Our dataset comprises 670 complete addresses. We opted to only include US addresses, namely a subset of those included in this dataset. Each address was URL-encoded and pre-compiled into the URL format used by each geocoder:
- Google Free
- Google Premium:
We stored the test URLs in four separate files, one address per line in each file. Using Python’s grequests library, we split the tests into equal-sized groups, running each group’s geocoder requests concurrently until all completed. We tested each geocoding provider with groups of 10, 30, 67, and 100. We tested each group multiple times, using the median result.
If you’re interested, you can see the benchmarking code on GitHub.
|Group size||Bing||Google Free||Google Pro||MapQuest|
The first thing we can notice in the response times is how big of a difference concurrent requests make. With the smallest group size (10 requests at a time), all geocoders took about 30 seconds to process all 670 addresses. The biggest difference came in the largest group sizes (67 and 100 requests at a time), where Bing shined. Microsoft’s geocoder returned results for 670 addresses in under five seconds at its fastest.
Except in the smallest group size, MapQuest kept close to the others. The original web map company remains competitive.
Despite sometimes sending as many as 100 requests in a single second, every geocoder stood up well to the load. During our tests, only the free version of the Google geocoder ever returned an error, and that was only four times out of over 2,500 tests, or 0.1% of the time.
The low error rate is surprising, given that many APIs have rate limits, published or unpublished. But as mentioned above, these tests from the server did not appear to trigger rate limiting. Even the tests with 100 concurrent connections did not activate rate limits. While 670 addresses is enough to be a significant sample, it’s likely not seen as an abusive level of requests.
As mentioned earlier, fast geocoder results are only useful if the data returned is accurate. However, since our focus here was on producing a speed benchmark, the accuracy of what is returned was not included. Further, determining whether a geocoded result is “correct” is up to many different interpretation methods. What determines the right answer? How close to the true result is “close enough?” Does the accepted range change based on the size of the property at the address?
Each of these questions is worthy of its own individual investigation, well beyond the scope of our speed benchmark.
Lastly, we did consider other geocoders that were not included in this research. Among them were Mapbox and LocationIQ. In both cases, our tests were rate limited, often even in the smallest groups of requests. Each likely has paid versions, which we’d be open to comparing in a future tests.
Fast Batch Geocoding with Built-In Maps
If you’re looking for the fastest way to convert a list of addresses into a map, batch geocoding is your answer. Specifically, our quick and easy mapping tool that makes geocoding as simple as copy-paste from Excel or any other spreadsheet.