I also had to fix the openstreetmap url
from: url = 'https://nominatim.openstreetmap.org/search/' + urllib.parse.quote(address) +'?format=json'
to url = 'https://nominatim.openstreetmap.org/search.php?q=' + urllib.parse.quote(address) +'&format=jsonv2'
i fixed this incompatibilty => https://github.com/Royalphax/credit-agricole-importer/issues/3
instead of configuring for
bank-region
you now have to configure forbank-department
which is a number. Example:I included a mapping for department to the corresponding region:
I also had to fix the openstreetmap url from:
url = 'https://nominatim.openstreetmap.org/search/' + urllib.parse.quote(address) +'?format=json'
tourl = 'https://nominatim.openstreetmap.org/search.php?q=' + urllib.parse.quote(address) +'&format=jsonv2'