forked from ChelseaKR/gtfs-scorecard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalog.schema.json
More file actions
249 lines (249 loc) · 6.69 KB
/
Copy pathcatalog.schema.json
File metadata and controls
249 lines (249 loc) · 6.69 KB
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
246
247
248
249
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://gtfsscorecard.org/schemas/catalog.schema.json",
"title": "GTFS Scorecard catalog",
"description": "Flat list of every published feed scorecard. Additive within a major schema_version: tolerate unknown fields.",
"type": "object",
"required": [
"schema_version",
"agencies"
],
"properties": {
"source": {
"type": "string",
"format": "uri"
},
"schema_version": {
"type": "string"
},
"rubric_version": {
"type": "string",
"description": "The sole rubric version present in agencies, or mixed when rows span versions; unknown when no row records one."
},
"rubric_versions": {
"type": "array",
"items": {"type": "string"},
"uniqueItems": true,
"description": "Sorted rubric-version values present in row provenance; unknown represents a row without a version."
},
"license": {
"type": "string"
},
"attribution": {
"type": "string"
},
"agencies": {
"type": "array",
"items": {
"$ref": "#/$defs/agency"
}
}
},
"$defs": {
"agency": {
"type": "object",
"required": [
"id",
"name",
"grade",
"score"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"state": {
"type": "string"
},
"subdivision_code": {
"type": "string",
"pattern": "^[A-Z]{2}-[A-Z0-9]{1,3}$"
},
"subdivision_name": {
"type": "string"
},
"grade": {
"type": "string",
"enum": [
"A",
"B",
"C",
"D",
"F"
]
},
"score": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"comparison_eligible": {
"type": "boolean",
"description": "Whether this row belongs to the current producer-, category-, and identity-safe comparison cohort."
},
"correctness": {
"type": ["number", "null"],
"minimum": 0,
"maximum": 100
},
"freshness": {
"type": ["number", "null"],
"minimum": 0,
"maximum": 100
},
"completeness": {
"type": ["number", "null"],
"minimum": 0,
"maximum": 100
},
"realtime": {
"type": ["number", "null"],
"minimum": 0,
"maximum": 100
},
"size_tier": {
"type": "string",
"enum": [
"small",
"medium",
"large",
"unknown"
]
},
"national_percentile": {
"type": ["integer", "null"],
"minimum": 0,
"maximum": 100,
"deprecated": true,
"description": "Deprecated compatibility field. Current payloads publish null; integers remain valid only so historical 1.x documents still conform."
},
"peer_percentile": {
"type": ["integer", "null"],
"minimum": 0,
"maximum": 100,
"deprecated": true,
"description": "Deprecated compatibility field. Current payloads publish null; integers remain valid only so historical 1.x documents still conform."
},
"snapshot_date": {
"type": "string",
"format": "date"
},
"days_until_expiry": {
"type": [
"integer",
"null"
]
},
"service_horizon_status": {
"type": "string",
"enum": [
"within_review_threshold",
"unusually_distant",
"unknown"
],
"description": "Whether the effective service end date extends beyond the scorecard's conservative review threshold. Unusually distant is a display and trust advisory outside category findings, not a GTFS error or score deduction."
},
"expiry_status": {
"type": "string",
"enum": [
"current",
"expiring_soon",
"lapsed",
"stale",
"unknown"
]
},
"mdb_id": {
"type": "string"
},
"validator_version": {
"type": [
"string",
"null"
]
},
"rubric_version": {
"type": [
"string",
"null"
]
},
"scoring_profile_id": {
"type": ["string", "null"]
},
"scoring_profile_rubric_version": {
"type": ["string", "null"]
},
"retrieved_at": {
"type": [
"string",
"null"
]
},
"feed_sha256": {
"type": [
"string",
"null"
]
},
"reader_archive_profile": {
"type": "string",
"enum": ["raw-v1", "flat-single-root-v1"]
},
"feed_url": {
"type": [
"string",
"null"
]
},
"top_fix": {
"type": [
"string",
"null"
]
},
"scorecard_url": {
"type": "string",
"format": "uri"
},
"ntd_ready": {
"type": [
"string",
"null"
],
"enum": [
"ready",
"at_risk",
"not_ready",
null
],
"description": "Readiness for the FTA NTD GTFS requirement, rolled up from the published/valid/current/agency_id pillars. A data-quality heads-up, never an official determination: ready = all four pillars hold; at_risk = a recoverable or unchecked gap; not_ready = unreachable, lapsed, or missing agency_id. NTD is a US-federal concept, so this is null for non-US agencies (ADR 0026)."
},
"google_gate": {
"type": "string",
"enum": [
"pass",
"at_risk",
"fail"
],
"description": "Whether the feed clears the Google/Apple Maps four-week service-coverage bar: pass = four or more weeks ahead; at_risk = under four weeks; fail = expired."
},
"stops": {
"type": [
"integer",
"null"
],
"description": "Boardable stop count read from the feed's stops.txt."
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "ISO 3166-1 alpha-2 country code. Registry configuration determines which well-formed country codes this deployment activates."
}
}
}
}
}