Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajouter l'information sur les zones non interconnectées #902 #128

Closed
theodury opened this issue Oct 27, 2021 · 1 comment
Closed

Ajouter l'information sur les zones non interconnectées #902 #128

theodury opened this issue Oct 27, 2021 · 1 comment

Comments

@theodury
Copy link

Avoir la possibilité de récupérer le ZNI (zone non interconnecté) sur une commune.

Les zones non interconnectées (ZNI) sont les territoires français non reliés au réseau électrique métropolitain continental.
Il s’agit des territoires insulaires que sont la Corse, les départements d’outre-mer (Guadeloupe, Martinique, La Réunion, Mayotte, Guyane), les collectivités d’outre-mer (Saint-Pierre-et-Miquelon, Saint-Martin, Saint-Barthélemy, la Polynésie française, Wallis-et-Futuna), la Nouvelle-Calédonie et les îles du Ponant et Chausey.
Via votre API :

IN :

curl --location --request GET "https://geo.api.gouv.fr/communes?codePostal=50400”

OUT :

[
{
"nom": "Anctoville-sur-Boscq",
"code": "50008",
"codeDepartement": "50",
"codeRegion": "28",
"zni": true,
"codesPostaux": [
"50400"
],
"population": 457
},
{
"nom": "Granville",
"code": "50218",
"codeDepartement": "50",
"codeRegion": "28",
"zni": false,
"codesPostaux": [
"50400"
],
"population": 12900
},
{
"nom": "Saint-Planchers",
"code": "50541",
"codeDepartement": "50",
"codeRegion": "28",
"zni": false,
"codesPostaux": [
"50400"
],
"population": 1353
},
{
"nom": "Yquelon",
"code": "50647",
"codeDepartement": "50",
"codeRegion": "28",
"zni": false,
"codesPostaux": [
"50400"
],
"population": 1069
}
]

Cordialement,

@ThomasG77
Copy link
Contributor

Fermé car doublon de #130 (erreur de manipulation quelque part)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants