Skip to content

Boost responses by country code #944

@Joxit

Description

@Joxit

Hi all, I hope you are doing well 😄 I have a feature request from one of my customer that may be interesting for the pelias community.

Use-cases

The use case is simple, the customer wants a way to boost some documents over others through country codes on autocomplete API.
For example, you need autocomplete for a websites which is used by 90% of in one specific country but may be used by others...

The example he gave me was 13 allée in French (I know this is not enough to get an accurate response anyway...)

0) Alleestraße 13, Potsdam, BB, Allemagne
1) Alleestraße 13, Putbus, MV, Allemagne
2) Al Molo 13, Capriate San Gervasio, BG, Italie
3) Dor Al-Nazaha 13, An Nasiriyah, DQ, Irak
4) Osteria Al Molo 13, Milan, MI, Italie
5) Chak No.119 -13 A.L, PB, Pakistan
6) Kaiser-Wilhelm-Allee 13, Wuppertal, NW, Allemagne
7) Al Mutaqin RW 13, Depok, JR, Indonésie
8) Dar al Fath 13, La Mecque, Arabie saoudite
9) Al Khail Gate 1-13, Dubaï, Émirats arabes unis

No responses are in France, we need to continue the writing 13 allée de...

Attempted Solutions

The query parameter boundary.country does not fit the use case since you will get only responses from this specific country.

Proposal

I suggest a new query parameter, something like focus.country ?

As soon as I have your approval, I can submit a PR 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions