react-places-autocomplete icon indicating copy to clipboard operation
react-places-autocomplete copied to clipboard

Returning two types (address and establishment) simultaneously

Open Blockspaced opened this issue 2 years ago • 0 comments
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'],
  };

Blockspaced avatar May 20 '23 13:05 Blockspaced