Error in country and city autocomplete google maps for USA cities

2 weeks ago 15
ARTICLE AD BOX

In my Android app, I'm using a field where users first choose a country and then a city, using a pair of Place Autocomplete (Legacy) elements. When the user selects a country, parameters are used to display only city names within that country.

https://developers.google.com/maps/documentation/places/android-sdk/legacy/autocomplete?hl=es-419

When I select most countries, the app correctly returns the list of cities.

In the example I'm using, I first select the United Kingdom, France, Spain, and Russia, but the problem is that when I try to select the USA, Mexican cities appear incorrectly.

I've attached a video as evidence.

https://drive.google.com/file/d/14QkfwMkfMowwmbAQ13RFJNqylHTCMSHU/view?usp=sharing

Could you tell me why this error occurs and how to fix it?

Read Entire Article