datagouv / api-geo

Interroger les référentiels géographiques plus facilement
https://api.gouv.fr/api/api-geo.html
MIT License
47 stars 17 forks source link

Fuzzy search for communes #116

Closed rhanka closed 3 years ago

rhanka commented 4 years ago

When doing quality rectification, fuzzy match based on city label (fuzzy) + dep code (strict) leads up to 98% of reidentification (with correct insee code) on birth places (base on real use case: french driving licence).

Same endpoint could still be used, with an option (like fuzzy=true or search=fuzzy) - using for example js-levenshtein library.

2 use cases :

jdesboeufs commented 3 years ago

Sorry for the delay… Fuzzy search is already available in the API Communes since 2016. Juste read the doc :) https://geo.api.gouv.fr/communes?nom=tou&boost=population