Google Place AutoComplete API does not return last city name

I use the google Place autocomplete API to get a list of cities, https://developers.google.com/places/web-service/autocomplete .

The problem is that I am looking for "Bombay", he must return the new name of the city "Mumbai". The same goes for Calcutta instead of Calcutta and Madras in Chennai.

The Google Place Search api returns all the correct names of the renamed cities, but unfortunately this is not for using autocomplete.

+5
source share
1 answer

In the text search API you will get new names: https://maps.googleapis.com/maps/api/place/autocomplete/json?key=YOUR_KEY&types=city&query=Bombay

So, if you can use the above API, you can use.

In autocomplete add types = (cities), but it only returns old names, I think Google data is not updated.

https://maps.googleapis.com/maps/api/place/autocomplete/json?key=YOUR_KEY&types=(cities)&input=Bombay

+2
source

All Articles