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

Solution for unfindable locations #407

Open
kr1stjans opened this issue Jul 10, 2023 · 0 comments
Open

Solution for unfindable locations #407

kr1stjans opened this issue Jul 10, 2023 · 0 comments

Comments

@kr1stjans
Copy link

kr1stjans commented Jul 10, 2023

Request a feature:
Some islands are not findable with searchOptions locality and country, for example Fuertaventura, Spain (weird that Lanzarote works).

<PlacesAutocomplete value={location} onChange={setLocation} onSelect={handleSelect} highlightFirstSuggestion={true} searchOptions={{types: ['locality', 'country']}}>

Ideally there would be a type or a way to select Fuertaventura, however the issue is probably due to Google types, so I propose an option to always add input value to suggestions that user can select (if no autocomplete is found), because geocoder will then find correct location for fuertaventura.

Is there another way to achieve this?

Also a question, is there a way to send whole suggestion object to onSelect? Currently only description is sent and then I need to make additional request to Google. If whole object was sent, we could just use that object for everything.

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