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 request: country bias #418

Open
alexandervlpl opened this issue Jun 13, 2019 · 4 comments
Open

feature request: country bias #418

alexandervlpl opened this issue Jun 13, 2019 · 4 comments

Comments

@alexandervlpl
Copy link

alexandervlpl commented Jun 13, 2019

It would be great to increase the priority of all results from a certain country.

I'm trying to achieve this using location bias. I get a noticable effect with a location_bias_scale of 4 or higher, but then even insignificant features very close to the location get priority and important results farther away but in the same country are left out. 😢

For example, using a point in Kansas as a "center" for the United States, I search "new". I get many small towns in Kansas but no "New York":

/api?q=new&limit=5&lat=39&lon=-98&location_bias_scale=4

I think it's a common use case, there should be a dedicated feature for this.

@lonvia
Copy link
Collaborator

lonvia commented Jun 15, 2019

We can have a simple country filter. That is fairly easy.

@alexandervlpl
Copy link
Author

Ideally, I think there should be two distinct country parameters like in the HERE geocode API:

  • country: restict results to one or more countries (I see a few issues about this already).
  • countryfocus: prioritize results from one or more countries, but still include global results. Similar to location bias. This is what I meant.

@lonvia
Copy link
Collaborator

lonvia commented Jun 17, 2019

Well, a filter is easy. Reranking is a bit more tricky.

@wottpal
Copy link

wottpal commented Jul 9, 2021

Having a country filter would be great!

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

3 participants