I am using Place Autocomplete in Google Places API web service, following API calls work fine:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=palo&types=(regions)&components=country:us&key=API_KEY
But I need to have autocomplete for both (regions) and address, I use this: https://maps.googleapis.com/maps/api/place/autocomplete/json?input=palo&types=(regions)|address&components=country:us&key=API_KEY
It returns:
{
"predictions" : [],
"status" : "INVALID_REQUEST"
}
What is the correct way to set multiple types?
https://developers.google.com/places/supported_types
If nothing is specified, all types are returned. In general only a single type is allowed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With