Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geocoding Error: local variable 'url' referenced before assignment when using Google API #32

Open
samisnunu opened this issue Dec 4, 2018 · 6 comments

Comments

@samisnunu
Copy link

Hi,
I got the following error message if I use my Google API option to geocode addresses:

"There was an error with the geocoding service:
local variable 'url' referenced before assignment."

Please help,
Sami

@CbassettEGR
Copy link

Hi,

Having the same problem here.

@Flo45
Copy link

Flo45 commented Aug 1, 2019

The issue comes from the OsmGeoCoder class (inside geocoders.py file). It's easy to fix but I never did that on a GitHub project, can I make the change and commit it ?

@elpaso
Copy link
Owner

elpaso commented Aug 1, 2019

Sure: hit fork on the top right corner of the repo window (this window) and make a PR

Flo45 pushed a commit to Flo45/qgis-geocoding that referenced this issue Aug 2, 2019
@Flo45
Copy link

Flo45 commented Aug 2, 2019

Sure: hit fork on the top right corner of the repo window (this window) and make a PR

Do I have to increment the version on metadata.txt file or you manage it ?

@elpaso
Copy link
Owner

elpaso commented Aug 2, 2019

Please update metadata as well (and add a changelog line with your name in it if you want).

@bzjoe
Copy link

bzjoe commented Dec 23, 2019

Just found this same error in the GeoCoding Plugin and have been looking for the solution. The Google engine is the only one accurate enough for me to use. The Reverse GeoCoding works fine but the Address GeoCoder does not. Tested my Google API Key at https://www.gpsvisualizer.com/geocode and it DID NOT work. Set the key with no website restrictions but had to add another API to the key - it now has: Geocoding API and Maps JavaScript API and works well on GPSvisualizer but still not working on the GeoCoding plugin. HELP!!! Joe:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants