If you go to this demo (https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform), and enter the following:
- Petronas Twin Towers -> state will be "Wilayah Persekutuan Kuala Lumpur"
- Kuala Lumpur -> state will become "Federal Territory of Kuala
Lumpur"
The 2nd one is controller by "regions" option (https://developers.google.com/places/web-service/autocomplete#place_types). I was expecting the state to be same but they are not.
I have also tried playing with &language=en
but it doesn't help.
My ultimate goal is that I have Petronas Twin Towers in my DB, but I want to match it with state. My search autocomplete uses regions, which will return Federal Territory of Kuala Lumpur, and it won't match Wilayah Persekutuan Kuala Lumpur
One solution I could think of is to get the latitude and longitude, then find nearest records, but this is very slow to query.
Is there any other solution?