react-places-autocomplete
react-places-autocomplete copied to clipboard
Returning two types (address and establishment) simultaneously
trafficstars
I have been trying to configure my searchOptions so that PlacesAutocomplete will return both addresses and establishments in the same field, but looks like if the types array has more than 1 element it will stop working, even though it returns correct suggestions if I use just one at a time. Below is how I tried to configure the search options, is there a way to do this, and if not can it please be implemented?
const searchOptions = {
types: ['address', 'establishment'],
};
const searchOptions = {
types: ['address|establishment'],
};