-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Évolutions v0.3.0 : suppression id_lieu, id_local devient obligatoire (…
…#29) * - Correction de l'exemple CSV correct - Mise à jour des liens des exemples dans le `schema.json` - Mise à jour du readme * Première passe vers la v0.3.0 * Mise à jour des fichiers d'exemple * Ajout de restrictions pour les champs de type boolean * Correction du schéma (trueValues, falseValues) * Précisions mineures V0.3.0 * Update CHANGELOG.md Mise à jour date changelog V0.3.0 * Apply suggestions from code review Co-authored-by: Antoine Augusti <[email protected]> --------- Co-authored-by: Antoine Augusti <[email protected]>
- Loading branch information
1 parent
7fb8eca
commit 3c9c1df
Showing
5 changed files
with
31 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
id_lieu;id_local;nom_lieu;ad_lieu;com_lieu;insee;type;date_maj;ouvert;source;Xlong;Ylat;nbre_pl;nbre_pmr;duree;horaires;proprio;lumiere;comm | ||
76217-C-001;23X01;Gare SNCF de Dieppe;2 Boulevard Georges Clemenceau;Dieppe;76217;Parking;2019-06-25;true;217602176;1.081183;49.921823;20;2;;true;Ville de Dieppe;true;Correspondance avec la ligne TER Dieppe-Rouen | ||
76217-C-002;23X02;Gare Routière de Dieppe;2 Avenue Victor Louis;Dieppe;76000;Parking;24-06-2019;true;576578587;49.921921;1.065656;2;3;;false;Ville de Dieppe;true;Proximité de la gare SNCF | ||
id_local,nom_lieu,ad_lieu,com_lieu,insee,type,date_maj,ouvert,source,Xlong,Ylat,nbre_pl,nbre_pmr,duree,horaires,proprio,lumiere,comm | ||
23X01,Gare SNCF de Dieppe,2 Boulevard Georges Clemenceau,Dieppe,76217,Parking,2019-06-25,true,217602176,1.081183,49.921823,20,2,,true,Ville de Dieppe,true,Correspondance avec la ligne TER Dieppe-Rouen | ||
23X02,Gare Routière de Dieppe,2 Avenue Victor Louis,Dieppe,76000,Parking,24-06-2019,true,576578587,49.921921,1.065656,2,3,,false,Ville de Dieppe,true,Proximité de la gare SNCF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
id_lieu;id_local;nom_lieu;ad_lieu;com_lieu;insee;type;date_maj;ouvert;source;Xlong;Ylat;nbre_pl;nbre_pmr;duree;horaires;proprio;lumiere;comm | ||
"76217-C-001";;Gare SNCF de Dieppe;2 Boulevard Georges Clemenceau;Dieppe;76217;Parking;2019-06-25;true;217602176;1.081183;49.921823;20;2;;true;Ville de Dieppe;true;"Correspondance avec la ligne TER Dieppe-Rouen" | ||
id_local,nom_lieu,ad_lieu,com_lieu,insee,type,date_maj,ouvert,source,Xlong,Ylat,nbre_pl,nbre_pmr,duree,horaires,proprio,lumiere,comm | ||
23X01,Gare SNCF de Dieppe,2 Boulevard Georges Clemenceau,Dieppe,76217,Parking,2019-06-25,true,217602176,1.081183,49.921823,20,2,,true,Ville de Dieppe,true,Correspondance avec la ligne TER Dieppe-Rouen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,20 +19,20 @@ | |
{ | ||
"title": "Ressource valide", | ||
"name": "exemple-valide", | ||
"path": "https://github.com/etalab/schema-lieux-covoiturage/raw/v0.2.2/exemple-valide.csv" | ||
"path": "https://github.com/etalab/schema-lieux-covoiturage/raw/v0.3.0/exemple-valide.csv" | ||
}, | ||
{ | ||
"title": "Ressource invalide", | ||
"name": "exemple-invalide", | ||
"path": "https://github.com/etalab/schema-lieux-covoiturage/raw/v0.2.2/exemple-invalide.csv" | ||
"path": "https://github.com/etalab/schema-lieux-covoiturage/raw/v0.3.0/exemple-invalide.csv" | ||
} | ||
], | ||
"author":"Antoine Augusti pour Etalab", | ||
"contact":"[email protected]", | ||
"contributors": [ | ||
{ | ||
"title": "Miryad Ali et Francis Chabouis", | ||
"email": "contact@transport.beta.gouv.fr", | ||
"title": "Miryad Ali, Francis Chabouis, Aurélien Cadiou", | ||
"email": "contact@transport.data.gouv.fr", | ||
"organisation": "transport.data.gouv.fr", | ||
"role": "contributor" | ||
}, | ||
|
@@ -73,30 +73,20 @@ | |
"role": "contributor" | ||
} | ||
], | ||
"version":"0.2.8", | ||
"version":"0.3.0", | ||
"created":"2019-06-25", | ||
"lastModified":"2023-07-17", | ||
"lastModified":"2023-10-06", | ||
"homepage":"https://github.com/etalab/schema-lieux-covoiturage", | ||
"uri":"https://github.com/etalab/lieux-covoiturage/blob/master/schema.json", | ||
"example":"https://github.com/etalab/lieux-covoiturage/blob/master/exemple-valide.csv", | ||
"fields":[ | ||
{ | ||
"name":"id_lieu", | ||
"description":"Identifiant du lieu de covoiturage, délivré par le Point d'Accès National selon la règle INSEE-C-XXX où INSEE est le code INSEE de la commune et XXX est le numéro d’ordre d'arrivée dans la base sur 3 chiffres, commençant par 001. L'identifiant 35238-C-001 désigne ainsi la première aire référencée dans la commune de code INSEE 35238.", | ||
"example":"35238-C-001", | ||
"type":"string", | ||
"constraints":{ | ||
"required":true, | ||
"pattern":"^([013-9]\\d|2[AB1-9])\\d{3}-C-\\d{3}$" | ||
} | ||
}, | ||
{ | ||
"name":"id_local", | ||
"description":"Identifiant du lieu de covoiturage fixé par le producteur de la donnée pour son propre usage", | ||
"example":"23X01", | ||
"type":"string", | ||
"constraints":{ | ||
"required":false | ||
"required":true | ||
} | ||
}, | ||
{ | ||
|
@@ -169,6 +159,8 @@ | |
"description":"Le lieu est-il actuellement accessible (actif ou inactif)", | ||
"example":"true", | ||
"type":"boolean", | ||
"trueValues": ["true"], | ||
"falseValues": ["false"], | ||
"constraints":{ | ||
"required":true | ||
} | ||
|
@@ -258,6 +250,8 @@ | |
"description":"Un éclairage nocturne est-il présent", | ||
"example":false, | ||
"type":"boolean", | ||
"trueValues": ["true"], | ||
"falseValues": ["false"], | ||
"constraints":{ | ||
"required":false | ||
} | ||
|
@@ -288,6 +282,5 @@ | |
], | ||
"missingValues":[ | ||
"" | ||
], | ||
"primaryKey":"id_lieu" | ||
] | ||
} |