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

Incorrect City output list on 75015 postal code #97

Open mahmalsami opened 5 years ago

mahmalsami commented 5 years ago

As of today, a GET https://geo.api.gouv.fr/communes?codePostal=75015 is returning: [{"nom":"Paris","code":"75056","codeDepartement":"75","codeRegion":"11","codesPostaux":["75001","75002","75003","75004","75005","75006","75007","75008","75009","75010","75011","75012","75013","75014","75015","75016","75017","75018","75019","75020"],"population":2190327},{"nom":"Issy-les-Moulineaux","code":"92040","codeDepartement":"92","codeRegion":"11","codesPostaux":["92130","75015"],"population":68395}]

The city "Issy-les-Moulineaux" is part of the ouput. my understanding is that the API is meant to return only the corresponding town names that matches the pattern, but 92040 si a little far from the original input. thanks in advance for your feedback.

jdesboeufs commented 5 years ago

In our new reference database, 3 parts of streets in Issy-les-Moulineaux have 75015 PARIS in their delivery label:

In the future we may exclude non significant postal codes.