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

Get old city in commune endpoint #105

Closed VincentLanglet closed 3 years ago

VincentLanglet commented 4 years ago

In the search query (cf https://geo.api.gouv.fr/adresse), there is oldcity value.

But when we're making a request on /communes endpoint (cf https://geo.api.gouv.fr/decoupage-administratif/communes), only actual city are reported. When we're making a field for the city of the birth, we need old city too.

A flag in the query would be great.

rhanka commented 4 years ago

:+1: Old cities are really useful for birth places and should be searchable too.

Integration of @etalab/decoupage-administratif/data/historique-communes.json could be useful for that