French-zip-code icon indicating copy to clipboard operation
French-zip-code copied to clipboard

Error for Thièvres zip_code

Open Remg opened this issue 5 years ago • 1 comments

Saw this while generating unique slugs by concatenating zip_codes and city names.

There are 2 french cities named Thièvres.

  • one in dpt 62
  • one in dpt 80

I am using your cities.csv :

24861,62,62814,62760,Thièvres,thievres,50.132551851852,2.4468190740741
[...]
32410,80,80756,62760,Thièvres,thievres,50.120079733333,2.4628542666667

second occurence for dpt 80 has a wrong zip_code. it should be :

32410,80,80756,80560,Thièvres,thievres,50.120079733333,2.4628542666667

source: https://fr.wikipedia.org/wiki/Thi%C3%A8vres_(Somme)

Remg avatar Jun 27 '19 03:06 Remg

I see the error is coming from geo.api.gouv.fr : https://geo.api.gouv.fr/communes/80756?fields=codesPostaux,centre&format=json&geometry=centre

Remg avatar Jun 27 '19 10:06 Remg