-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathonstreet-parking.schema.json
245 lines (245 loc) · 10.2 KB
/
onstreet-parking.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{
"$id": "https://raw.githubusercontent.com/macaron-ai/onstreet-parking-schema/raw/1.0.0/onstreet-parking.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Onstreet parking",
"description": "Onstreet parking reprensentation",
"type": "object",
"required": ["type", "features"],
"properties": {
"type": {
"enum": ["FeatureCollection"]
},
"features": {
"type": "array",
"items": {
"$ref": "#/definitions/feature"
}
}
},
"countryCode": "FR",
"homepage": "https://github.com/macaron-ai/onstreet-parking-schema",
"licenses": [
{
"title": "Etalab Licence Ouverte 2.0",
"name": "etalab-2.0",
"path": "https://spdx.org/licenses/etalab-2.0.html"
}
],
"resources": [
{
"title": "Valid file (Geojson)",
"name": "valid-sample.geojson",
"path": "https://raw.githubusercontent.com/macaron-ai/onstreet-parking-schema/raw/1.0.0/valid-sample.geojson"
}
],
"created": "2021-10-11",
"lastModified": "2021-10-11",
"version": "1.0.0",
"definitions": {
"feature": {
"type": "object",
"properties": {
"type": {
"enum": ["Feature"]
},
"properties": {
"$ref": "#/definitions/properties"
},
"geometry": {
"anyOf": [
{
"$ref": "https://geojson.org/schema/LineString.json"
},
{
"$ref": "https://geojson.org/schema/MultiLineString.json"
},
{
"$ref": "https://geojson.org/schema/Polygon.json"
},
{
"$ref": "https://geojson.org/schema/MultiPolygon.json"
}
]
}
},
"required": ["type", "properties", "geometry"]
},
"properties": {
"type": "object",
"properties": {
"city": {
"type": "string",
"title": "Nom de la ville",
"pattern": "^(.*)$",
"maxLength": 128,
"examples": ["Paris", "Marseille"]
},
"city_code": {
"type": "string",
"title": "France: Code INSEE",
"pattern": "^(.*)$",
"examples": ["75056", "13055"]
},
"lenght": {
"type": "number",
"title": "Longeur",
"description": "Longueur de l'emprise de stationnemment en mètre",
"examples": [35.83, 18.32]
},
"width": {
"type": "number",
"title": "Largeur",
"description": "Largeur de l'emprise de stationnemment en mètre",
"examples": [2, 1.8]
},
"places": {
"type": "integer",
"title": "Places",
"description": "Nombre de places réeles de l'emprise en cas de présence de marquage au sol",
"examples": [13, 8]
},
"calculated_places": {
"type": "integer",
"title": "Places calculées",
"description": "Nombre de places calculée pour l'emprise. Exemple: 5m par place",
"examples": [11, 5]
},
"calculated_area": {
"type": "number",
"title": "Surface calculée",
"description": "Surface calculée en m2 de l'emprise de stationnement",
"examples": [71.66, 36.2]
},
"street_name": {
"type": "string",
"title": "Nom de la rue",
"description": "Nom de la voie où est situé l'emprise de stationnment",
"examples": ["Rue Berger"]
},
"street_number_start": {
"type": "string",
"title": "Début numéro de voie",
"description": "Début du numéro de voie où est situé l'emprise de stationnment",
"examples": ["14Bis"]
},
"street_number_end": {
"type": "string",
"title": "Fin numéro de voie",
"description": "Fin du numéro de voie où est situé l'emprise de stationnment",
"examples": ["32Ter"]
},
"postal_code": {
"type": "string",
"title": "Code postal",
"description": "Code postal de la voie de la commune sur 5 caractères (incluant 'A' ou 'B' pour la Corse)",
"examples": ["75012"]
},
"created_at": {
"type": "string",
"pattern": "(((19|20)([2468][048]|[13579][26]|0[48])|2000)[/-]02[/-]29|((19|20)[0-9]{2}[/-](0[469]|11)[/-](0[1-9]|[12][0-9]|30)|(19|20)[0-9]{2}[/-](0[13578]|1[02])[/-](0[1-9]|[12][0-9]|3[01])|(19|20)[0-9]{2}[/-]02[/-](0[1-9]|1[0-9]|2[0-8])))",
"title": "Date de relevée de l'emprise",
"description": "Date de relevée de l'emprise au format AAAA-MM-JJ, suivant la norme internationale [ISO 8601](https://fr.wikipedia.org/wiki/ISO_8601).",
"examples": ["2021-08-02"]
},
"updated_at": {
"type": "string",
"pattern": "(((19|20)([2468][048]|[13579][26]|0[48])|2000)[/-]02[/-]29|((19|20)[0-9]{2}[/-](0[469]|11)[/-](0[1-9]|[12][0-9]|30)|(19|20)[0-9]{2}[/-](0[13578]|1[02])[/-](0[1-9]|[12][0-9]|3[01])|(19|20)[0-9]{2}[/-]02[/-](0[1-9]|1[0-9]|2[0-8])))",
"title": "Date de mise à jour de l'emprise",
"description": "Date de mise à jour au format AAAA-MM-JJ, suivant la norme internationale [ISO 8601](https://fr.wikipedia.org/wiki/ISO_8601).",
"examples": ["2021-08-27"]
},
"geo_point_2d": {
"type": "array",
"minItems": 2,
"items": {
"type": "number"
},
"title": "Centre de l'emprise",
"description": "Latitude et longitude du géocentre de l'emprise de stationnemment",
"examples": [[2.277977652847767, 48.90399743580084]]
},
"producer": {
"type": "string",
"title": "Nom du producteur",
"description": "Nom ou raison sociale de l'entité ayant produit la donnée",
"examples": ["Macaron"]
},
"regulations": {
"type": "array",
"title": "Régulations",
"description": "Liste des régulations qui régissent l'emprise",
"items": {
"$ref": "#/definitions/regulation"
}
}
},
"required": [
"city",
"city_code",
"lenght",
"width",
"calculated_places",
"calculated_area",
"street_name",
"postal_code",
"created_at",
"geoPoint2d"
]
},
"regulation": {
"type": "object",
"title": "Régulation",
"description": "Régulation qui régit une emprise de stationnement",
"properties": {
"rule": {
"type": "object",
"title": "Régle",
"description": "Règle qui régie une emprise de stationnement",
"properties": {
"type": {
"title": "Type de staionnement",
"type": "string",
"enum": [
"PAYANT",
"GIG/GIC",
"GRATUIT",
"AUTOCAR",
"TROTTINETTE",
"LIVRAISON PERMANENTE",
"LIVRAISON PERIODIQUE",
"VELO LIBRE SERVICE",
"ELECTRIQUE",
"TRANSPORT DE FOND",
"MOTOS",
"TAXI",
"VELO",
"POLICE",
"DEPOSE MINUTE",
"DEUX ROUES",
"AUTRES"
],
"examples": ["POLICE"]
},
"price": {
"type": "number",
"title": "Prix par heure",
"description": "Prix de l'heure en euro si c'est applicable",
"examples": [2.4]
}
},
"required": ["type"]
},
"opening_hours": {
"type": "string",
"title": "Plage horaire",
"description": "Liste des périodes pendant lesquelles la règle est appliquée",
"examples": [
"Mo-Fr 08:00-12:00,13:00-17:30; Sa 08:00-12:00; PH 09:00-12:00",
"Mo-Fr 08:00-12:00,13:00-17:30; Sa 08:00-12:00"
]
}
},
"required": ["rule", "opening_hours"]
}
}
}