-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Error when querying anything in Mexico #50
Comments
If you want to see the response from Google, look at this example: https://maps.googleapis.com/maps/api/geocode/json?address=San%20Luis%20Potosi It seems like Google is in the wrong on this one, but still doesn't work properly because of this. Maybe rising the max_length on the field will be a good temporary solution until Google gets its things together. Here is another example: https://maps.googleapis.com/maps/api/geocode/json?address=Chihuahua |
@cesarmanzo Thank you for the report. Related to #82. Hoping to address in 0.2.3. Here's a sample JSON response from Google of San Luis Potosi:
|
Questions: Q. Why is state code limited to two characters and country code to three? Q. Any tests related to this limitation? Q. Why is are these constraints in place? Google does not appear to offer a spec for the character length for short_name fields. Though the above example has a six-character example of "S.L.P." Q. Which field returned by G geocode is mapped to state code?
For example, the notable Building, "EME Edificio Internacional de Negocios," has the address: Av Venustiano Carranza 990, De Tequisquiapan, 78230 San Luis, S.L.P., Mexico While initially I thought US territories could be hanbdled simply by also increasing the max amount of state code characters, as discovered in #82, US territories have a different problem. It does not appear possible to get a "valid" address for a US territory back from the google maps API geocode: See Secret Harbour Beach Resort in St. Thomas, which should have address: 6280 Estate Nazareth, Nazareth Bay, Benner, VI 00802-1113 6280 Estate Nazareth, St Thomas 00802, U.S. Virgin Islands This begs the question, "valid to who?" and that depends on who is shipping it, and possibly the political leanings of the person addressing it. See #82 for more discussion on this.
Recommended changes:
Q. How many letters does google return at a maximum? Known change needs:
Notes and Follow-ons:
|
|
Fixed in 9cbe682 and subsequent typo-rectifying commit. |
When querying a location in Mexico, it always fails because the state code is larger than 3 digits.
E.g., when searching for "Alberto Carrera Torres, Guadalupe, Cerritos, México" it shows the error:
Invalid state code (too long): S.L.P.
I think that it is showing states abreviation instead of the 3-digit state codes. See here:
https://en.wikipedia.org/wiki/Template:Mexico_State-Abbreviation_Codes
Can't see anywhere in the response where I can get that 3-digit state code.
The text was updated successfully, but these errors were encountered: