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

[FEATURE] Allow prioritising results or filtering of results by a geographical region/continent #14

Open
tomaytotomato opened this issue Aug 9, 2024 · 0 comments

Comments

@tomaytotomato
Copy link
Owner

Is the feature related to location lookups
Yes, it would allow more relevant results to be returned for a user if specified.

e.g. there are 16 San Franciscos in the world, but I am only interested in the ones for North America

Several options to implement:

  1. As a search argument
locationSearchService.search("San Francisco", Region.NORTH_AMERICA);
  1. As a custom filter
locationSearchService.setResultsRegionFilter(Region.NORTH_AMERICA);
  1. Sorter logic

Some function that sorts results based on what regions.

e.g.

if result is in region then prioritise,
else deprioritise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant