hibiken / react-places-autocomplete

React component for Google Maps Places Autocomplete
https://hibiken.github.io/react-places-autocomplete/
MIT License
1.38k stars 388 forks source link

Returning two types (address and establishment) simultaneously #405

Open Blockspaced opened 1 year ago

Blockspaced commented 1 year ago

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'],
  };