stanislas-poisson / french-zip-code Goto Github PK
View Code? Open in Web Editor NEWList of france's regions, departments, cities and villages zip-codes
License: MIT License
List of france's regions, departments, cities and villages zip-codes
License: MIT License
What's the meaning of the departments_id
column? It seems that it's not equal to the department number.
Hi is it possible to add Lion-sur-Mer city ? here is my code for my postgresql DB (my 2 cents)
INSERT INTO cities (department_code, insee_code, zip_code, name, slug, gps_coordinates) VALUES ('14', '14365', 14780, 'Lion-sur-Mer', 'lion sur mer', POINT(-0.332261764705882368,49.301512941176469));
Best regards.
Bonjour, il serait bien d'ajouter un autre fournisseur de carte, tel que OSM (ou autre) avec leaflet.js ou autre afin de palier aux restrictions de google map.
Après, je ne me rappel plus les autres fournisseurs de cartes ...
At the following line:
24235;62;"Le Theil";"le-theil";"le theil";"61P19";48.2639;0.688
Postal code is "61P19" instead of "61260".
Bonjour! Merci pour ce repo. Pouvez vouz ajouter un champ "CHEFLIEU" dans les fichiers d'export?
Il y a ce champ sur le site https://www.insee.fr/fr/information/3363419#titre-bloc-7 mais je n'ai pas le trouve dans les fichiers d'export. Pardonez mon francais, il n'est pas bon.
Hello. Thanks for this repo. There is no field "CHEFLIEU" in the export files but this field exists on the site insee.fr. Could your add this field in the export too?
Saw this while generating unique slugs by concatenating zip_codes and city names.
There are 2 french cities named Thièvres
.
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
The cities files, won't take the corse departments So a big fix is needed.
Work on it from now ;)
A la ligne suivante :
(32000,81,'Amiens','amiens','amiens','80000,',49.8943,2.2957),
le code postal est suivi d'une virgule
There are 2 "Thièvres" in the cities:
24861,62,62814,62760,Thièvres,thievres,50.132551851852,2.4468190740741
and
32410,80,80756,62760,Thièvres,thievres,50.120079733333,2.4628542666667
The Zipcode for the second one is supposed to be 80560, not the same as the first one
import json
dep = json.loads(requests.get("https://raw.githubusercontent.com/Stanislas-Poisson/French-zip-code/master/JSON/departments.json").text)
DDPT = { e["code"] : e["name"] for e in dep }
#In [54]: DDPT["74"]
Je parie sur Haute-Savoie
Hello! First of all, thank you so much for this resource. I just point out a couple little 'bugs' in cities.csv that I came across:
Cheers!
The following entries are exact duplicates:
3900;11;"Port-la-Nouvelle";"port-la-nouvelle";"port la nouvelle";"11210";43.0206;3.0433
3931;11;"Port-la-Nouvelle";"port-la-nouvelle";"port la nouvelle";"11210";43.0206;3.0433
18090;50;"Montrevault-sur-Èvre";"montrevault-sur-evre";"montrevault sur evre";"49110";47.2611;-1.0458
18091;50;"Montrevault-sur-Èvre";"montrevault-sur-evre";"montrevault sur evre";"49600";47.2611;-1.0458
18092;50;"Montrevault-sur-Èvre";"montrevault-sur-evre";"montrevault sur evre";"49600";47.2611;-1.0458
18749;52;"Isles-sur-Suippe";"isles-sur-suippe";"isles sur suippe";"51110";49.3572;4.2014
18996;52;"Isles-sur-Suippe";"isles-sur-suippe";"isles sur suippe";"51110";49.3572;4.2014
24682;63;"Hénin-sur-Cojeul";"henin-sur-cojeul";"henin sur cojeul";"62128";50.2256;2.8352
24683;63;"Hénin-sur-Cojeul";"henin-sur-cojeul";"henin sur cojeul";"62128";50.2256;2.8352
14775;39;"Saint-Pierre-d'Entremont";"saint-pierre-d-entremont";"saint pierre d entremont";"73670";45.4161;5.8547
24198;62;"Saint-Pierre-d'Entremont";"saint-pierre-d-entremont";"saint pierre d entremont";"61800";48.8097;-0.6491
29806;74;"Saint-Pierre-d'Entremont";"saint-pierre-d-entremont";"saint pierre d entremont";"73670";45.4161;5.8547
32000;81;"Amiens";"amiens";"amiens";"80000";49.8943;2.2957
32001;81;"Amiens";"amiens";"amiens";"80080";49.8943;2.2957
32002;81;"Amiens";"amiens";"amiens";"80000";49.8943;2.2957
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.