-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeographies.json
163 lines (163 loc) · 5.29 KB
/
geographies.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
{
"$id": "https://raw.githubusercontent.com/openmobilityfoundation/mobility-data-specification/main/geography/geographies.json",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "The MDS Geographies Schema",
"type": "object",
"definitions": {
"geography": {
"$id": "#/definitions/geography",
"type": "object",
"title": "The geography object schema",
"additionalProperties": false,
"required": [
"name",
"geography_id",
"geography_json",
"published_date"
],
"properties": {
"name": {
"$id": "#/definitions/geography/properties/name",
"$ref": "#/definitions/string",
"description": "Name of geography"
},
"description": {
"$id": "#/definitions/geography/properties/description",
"$ref": "#/definitions/string",
"description": "Description of geography"
},
"geography_type": {
"$id": "#/definitions/geography/properties/geography_type",
"type": "string",
"description": "The type of geography"
},
"geography_id": {
"$id": "#/definitions/geography/properties/geography_id",
"$ref": "#/definitions/uuid",
"description": "Unique ID of geography"
},
"geography_json": {
"$id": "#/definitions/geography/properties/geography_json",
"$ref": "https://geojson.org/schema/FeatureCollection.json",
"description": "The GeoJSON FeatureCollection that defines the geographical coordinates"
},
"effective_date": {
"$id": "#/definitions/geography/properties/effective_date",
"$ref": "#/definitions/null_timestamp",
"description": "The date at which a Geography is considered 'live'. Must be at or after published_date."
},
"published_date": {
"$id": "#/definitions/geography/properties/published_date",
"$ref": "#/definitions/timestamp",
"description": "Timestamp at which the geography was published i.e. made immutable"
},
"retire_date": {
"$id": "#/definitions/geography/properties/end_date",
"$ref": "#/definitions/null_timestamp",
"description": "Time that the geography is slated to retire. Once the retire date is passed, new policies can no longer reference it and old policies referencing it should be updated. Retired geographies should continue to be returned in the geographies list. Must be after effective_date."
},
"prev_geographies": {
"$id": "#/definitions/geography/properties/prev_geographies",
"$ref": "#/definitions/null_uuid_array",
"description": "Unique IDs of prior geographies replaced by this one",
"uniqueItems": true
}
}
},
"string": {
"$id": "#/definitions/string",
"type": "string",
"description": "A length-limited string type",
"maxLength": 255,
"default": "",
"examples": [
"ABC123"
],
"pattern": "^(.*)$"
},
"timestamp": {
"$id": "#/definitions/timestamp",
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
"type": "string",
"description": "A UUID used to uniquely identifty an object",
"default": "",
"examples": [
"3c9604d6-b5ee-11e8-96f8-529269fb1459"
],
"pattern": "^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"
},
"version": {
"$id": "#/definitions/version",
"type": "string",
"description": "The version of MDS this data represents",
"examples": [
"1.2.0"
],
"pattern": "^1\\.2\\.[0-9]+$"
},
"uuid_array": {
"$id": "#/definitions/uuid_array",
"type": "array",
"description": "Array of UUID",
"items": {
"$id": "#/definitions/uuid_array/items",
"$ref": "#/definitions/uuid"
}
},
"null_timestamp": {
"$id": "#/definitions/null_timestamp",
"type": [
"number",
"null"
],
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 1514764800000
},
"null_uuid_array": {
"$id": "#/definitions/null_uuid_array",
"type": [
"array",
"null"
],
"description": "Array of UUID",
"items": {
"$id": "#/definitions/uuid_array/items",
"$ref": "#/definitions/uuid"
}
}
},
"required": [
"geographies",
"updated",
"version"
],
"properties": {
"geographies": {
"$id": "#/properties/geographies",
"type": "array",
"title": "The array of policy objects in this payload",
"items": {
"$id": "#/properties/geographies/items",
"$ref": "#/definitions/geography"
}
},
"updated": {
"$id": "#/properties/updated",
"$ref": "#/definitions/timestamp",
"description": "The timestamp when geographies was last updated"
},
"version": {
"$id": "#/properties/version",
"$ref": "#/definitions/version",
"description": "The version of MDS that the geographies represents"
}
},
"additionalProperties": false
}