2

I was trying to run a geocode process (~20,000 addresses) using MMQGIS and the OSM/Nominatim web service.

enter image description here

On the first run I input my CSV file and designated all parameters. However, I hit a max limit error for Google API.

enter image description here

Even though, I didn't choose Google API and my understanding of OSM/Nominatim there are no limit to geocoding addresses.

When I tried to rerun the geocode service thinking it was a false error I got this.

enter image description here

I've tried searching for responses that may provide some insight, however I have been unsuccessful in finding anything useful. As far as I can tell, there should be no limit on the OSM and for Google is 2,500 which is fine, I'm not trying to use Google Map API web service.

Why am I receiving this error now?

3

looking at my installed copy of the plugin (latest plugin version, 2017.5.14) there's an error message which reports that it couldn't connect to google API even if it's actually using Nominatim, so this might actually be an error from Nominatim.

There are limits and usage policies in place for Nominatim so it's possible that the plugin has been given a limited per-app quota.

That page suggest max 1 query/sec, this plugin currently rate-limits to 2 query/sec, so that might explain the 429?

  • Where do you see that the plugin rate -limits is 2 query/sec? – whyzar Oct 6 '17 at 17:54
  • there's a sleep(0.5) inside the loop which sends each feature to the API; that's a typical technique for slowing down a loop to (approximately) 2 times a second – Steven Kay Oct 6 '17 at 17:58
  • 1
    that might work, sleep(2.0) would slow it down. I don't have any test data to try it out on, though. Might be worth raising an issue with the plugin author (there are other services, like MapZen's, which need an API key like Google, which are maybe more suitable for bulk usage) – Steven Kay Oct 6 '17 at 18:17
  • 3
    Even more suitable for bulk usage is to set up your own Nominatim instance for a virtually unlimited number of requests. – mmd Oct 7 '17 at 16:37
  • 2
    The easiest way to get a Nominatim instance (of sorts) up and running is to use Photon with the pre-compiled search index: github.com/komoot/photon – Richard Fairhurst Oct 11 '17 at 11:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.