Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning two types (address and establishment) simultaneously #405

Open
Blockspaced opened this issue May 20, 2023 · 0 comments
Open

Returning two types (address and establishment) simultaneously #405

Blockspaced opened this issue May 20, 2023 · 0 comments

Comments

@Blockspaced
Copy link

Blockspaced commented May 20, 2023

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'],
  };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant