Skip to content

Returning two types (address and establishment) simultaneously #405

@Blockspaced

Description

@Blockspaced

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions