photon icon indicating copy to clipboard operation
photon copied to clipboard

feature request: country bias

Open alexandervlpl opened this issue 6 years ago • 4 comments

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. :cry:

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.

alexandervlpl avatar Jun 13 '19 14:06 alexandervlpl

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

lonvia avatar Jun 15 '19 10:06 lonvia

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.

alexandervlpl avatar Jun 17 '19 06:06 alexandervlpl

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

lonvia avatar Jun 17 '19 21:06 lonvia

Having a country filter would be great!

wottpal avatar Jul 09 '21 11:07 wottpal