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

geocode function: incorrect URL generation when the address contains non ASCII characters #89

Closed
mgacc0 opened this issue Mar 18, 2016 · 0 comments

Comments

@mgacc0
Copy link

mgacc0 commented Mar 18, 2016

If you try to geocode an address with non-ascii characters, the generated URL is not correct.

geocode("Rúa Pedra Seixa, 33, Pontevedra, Spain")
# Information from URL : http://maps.googleapis.com/maps/api/geocode/json?address=r%FAa%20pedra%20seixa,%2033,%20Pontevedra&sensor=false
# Warning message:
# geocode failed with status INVALID_REQUEST

The conversion of non-ASCII characters to percent encoded characters is not correct.

For this particular case, the correct URL should be:
http://maps.googleapis.com/maps/api/geocode/json?address=r%C3%BAa%20pedra%20seixa,%2033,%20Pontevedra&sensor=false

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

1 participant