pelias / pelias

Pelias is a modular open-source geocoder using Elasticsearch.
https://pelias.io
MIT License
3.2k stars 221 forks source link

[WOF] Cannot find region (administrative area "département") using its 2-digits code (adminCode) #949

Open stouch opened 1 year ago

stouch commented 1 year ago

When I /search or /autocomplete using a 2-digits code of a France 2nd-level region (Département), which is a very common use case : For exemple I /search for "Saone et loire" using "71" admin code (we often make that kind of 2-digits search while typing in location search inputs in France), this does not return anything.

Actually, whosonfirst:region:85683543 matches well with "unlc:id": "FR-71" (this could be improved btw), so I expect to get this result when I search for "71".

Is there any way to search for a 2nd-level administrative area using a 2-digits adminCode ?

Thanks a lot