Skip to content

Commit 215d3ad

Browse files
committed
update provider schemas with new telemetry defs
1 parent 6d53528 commit 215d3ad

5 files changed

Lines changed: 325 additions & 205 deletions

File tree

provider/events.json

Lines changed: 65 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -41,47 +41,6 @@
4141
],
4242
"pattern": "^1\\.2\\.[0-9]+$"
4343
},
44-
"Point": {
45-
"$id": "#/definitions/Point",
46-
"title": "GeoJSON Point",
47-
"type": "object",
48-
"required": [
49-
"type",
50-
"coordinates"
51-
],
52-
"properties": {
53-
"type": {
54-
"type": "string",
55-
"enum": [
56-
"Point"
57-
]
58-
},
59-
"coordinates": {
60-
"type": "array",
61-
"minItems": 2,
62-
"items": [
63-
{
64-
"type": "number",
65-
"minimum": -180.0,
66-
"maximum": 180.0
67-
},
68-
{
69-
"type": "number",
70-
"minimum": -90.0,
71-
"maximum": 90.0
72-
}
73-
],
74-
"maxItems": 2
75-
},
76-
"bbox": {
77-
"type": "array",
78-
"minItems": 4,
79-
"items": {
80-
"type": "number"
81-
}
82-
}
83-
}
84-
},
8544
"MDS_Feature_Point": {
8645
"$id": "#/definitions/MDS_Feature_Point",
8746
"title": "MDS GeoJSON Feature Point",
@@ -119,6 +78,30 @@
11978
},
12079
"stop_id": {
12180
"$ref": "#/definitions/uuid"
81+
},
82+
"altitude": {
83+
"type": "number",
84+
"description": "Altitude above mean sea level in meters"
85+
},
86+
"heading": {
87+
"type": "number",
88+
"description": "Degrees - clockwise starting at 0 degrees at true North"
89+
},
90+
"speed": {
91+
"type": "number",
92+
"description": "Estimated speed in meters / sec as reported by the GPS chipset"
93+
},
94+
"accuracy": {
95+
"type": "number",
96+
"description": "Horizontal accuracy, in meters"
97+
},
98+
"hdop": {
99+
"type": "number",
100+
"description": "Horizontal GPS or GNSS accuracy value"
101+
},
102+
"satellites": {
103+
"type": "integer",
104+
"description": "Number of GPS or GNSS satellites"
122105
}
123106
}
124107
},
@@ -134,6 +117,47 @@
134117
}
135118
}
136119
},
120+
"Point": {
121+
"$id": "#/definitions/Point",
122+
"title": "GeoJSON Point",
123+
"type": "object",
124+
"required": [
125+
"type",
126+
"coordinates"
127+
],
128+
"properties": {
129+
"type": {
130+
"type": "string",
131+
"enum": [
132+
"Point"
133+
]
134+
},
135+
"coordinates": {
136+
"type": "array",
137+
"minItems": 2,
138+
"items": [
139+
{
140+
"type": "number",
141+
"minimum": -180.0,
142+
"maximum": 180.0
143+
},
144+
{
145+
"type": "number",
146+
"minimum": -90.0,
147+
"maximum": 90.0
148+
}
149+
],
150+
"maxItems": 2
151+
},
152+
"bbox": {
153+
"type": "array",
154+
"minItems": 4,
155+
"items": {
156+
"type": "number"
157+
}
158+
}
159+
}
160+
},
137161
"propulsion_type": {
138162
"$id": "#/definitions/propulsion_type",
139163
"type": "string",

provider/status_changes.json

Lines changed: 65 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -41,47 +41,6 @@
4141
],
4242
"pattern": "^1\\.2\\.[0-9]+$"
4343
},
44-
"Point": {
45-
"$id": "#/definitions/Point",
46-
"title": "GeoJSON Point",
47-
"type": "object",
48-
"required": [
49-
"type",
50-
"coordinates"
51-
],
52-
"properties": {
53-
"type": {
54-
"type": "string",
55-
"enum": [
56-
"Point"
57-
]
58-
},
59-
"coordinates": {
60-
"type": "array",
61-
"minItems": 2,
62-
"items": [
63-
{
64-
"type": "number",
65-
"minimum": -180.0,
66-
"maximum": 180.0
67-
},
68-
{
69-
"type": "number",
70-
"minimum": -90.0,
71-
"maximum": 90.0
72-
}
73-
],
74-
"maxItems": 2
75-
},
76-
"bbox": {
77-
"type": "array",
78-
"minItems": 4,
79-
"items": {
80-
"type": "number"
81-
}
82-
}
83-
}
84-
},
8544
"MDS_Feature_Point": {
8645
"$id": "#/definitions/MDS_Feature_Point",
8746
"title": "MDS GeoJSON Feature Point",
@@ -119,6 +78,30 @@
11978
},
12079
"stop_id": {
12180
"$ref": "#/definitions/uuid"
81+
},
82+
"altitude": {
83+
"type": "number",
84+
"description": "Altitude above mean sea level in meters"
85+
},
86+
"heading": {
87+
"type": "number",
88+
"description": "Degrees - clockwise starting at 0 degrees at true North"
89+
},
90+
"speed": {
91+
"type": "number",
92+
"description": "Estimated speed in meters / sec as reported by the GPS chipset"
93+
},
94+
"accuracy": {
95+
"type": "number",
96+
"description": "Horizontal accuracy, in meters"
97+
},
98+
"hdop": {
99+
"type": "number",
100+
"description": "Horizontal GPS or GNSS accuracy value"
101+
},
102+
"satellites": {
103+
"type": "integer",
104+
"description": "Number of GPS or GNSS satellites"
122105
}
123106
}
124107
},
@@ -134,6 +117,47 @@
134117
}
135118
}
136119
},
120+
"Point": {
121+
"$id": "#/definitions/Point",
122+
"title": "GeoJSON Point",
123+
"type": "object",
124+
"required": [
125+
"type",
126+
"coordinates"
127+
],
128+
"properties": {
129+
"type": {
130+
"type": "string",
131+
"enum": [
132+
"Point"
133+
]
134+
},
135+
"coordinates": {
136+
"type": "array",
137+
"minItems": 2,
138+
"items": [
139+
{
140+
"type": "number",
141+
"minimum": -180.0,
142+
"maximum": 180.0
143+
},
144+
{
145+
"type": "number",
146+
"minimum": -90.0,
147+
"maximum": 90.0
148+
}
149+
],
150+
"maxItems": 2
151+
},
152+
"bbox": {
153+
"type": "array",
154+
"minItems": 4,
155+
"items": {
156+
"type": "number"
157+
}
158+
}
159+
}
160+
},
137161
"propulsion_type": {
138162
"$id": "#/definitions/propulsion_type",
139163
"type": "string",

provider/stops.json

Lines changed: 65 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -41,47 +41,6 @@
4141
],
4242
"pattern": "^1\\.2\\.[0-9]+$"
4343
},
44-
"Point": {
45-
"$id": "#/definitions/Point",
46-
"title": "GeoJSON Point",
47-
"type": "object",
48-
"required": [
49-
"type",
50-
"coordinates"
51-
],
52-
"properties": {
53-
"type": {
54-
"type": "string",
55-
"enum": [
56-
"Point"
57-
]
58-
},
59-
"coordinates": {
60-
"type": "array",
61-
"minItems": 2,
62-
"items": [
63-
{
64-
"type": "number",
65-
"minimum": -180.0,
66-
"maximum": 180.0
67-
},
68-
{
69-
"type": "number",
70-
"minimum": -90.0,
71-
"maximum": 90.0
72-
}
73-
],
74-
"maxItems": 2
75-
},
76-
"bbox": {
77-
"type": "array",
78-
"minItems": 4,
79-
"items": {
80-
"type": "number"
81-
}
82-
}
83-
}
84-
},
8544
"MDS_Feature_Point": {
8645
"$id": "#/definitions/MDS_Feature_Point",
8746
"title": "MDS GeoJSON Feature Point",
@@ -119,6 +78,30 @@
11978
},
12079
"stop_id": {
12180
"$ref": "#/definitions/uuid"
81+
},
82+
"altitude": {
83+
"type": "number",
84+
"description": "Altitude above mean sea level in meters"
85+
},
86+
"heading": {
87+
"type": "number",
88+
"description": "Degrees - clockwise starting at 0 degrees at true North"
89+
},
90+
"speed": {
91+
"type": "number",
92+
"description": "Estimated speed in meters / sec as reported by the GPS chipset"
93+
},
94+
"accuracy": {
95+
"type": "number",
96+
"description": "Horizontal accuracy, in meters"
97+
},
98+
"hdop": {
99+
"type": "number",
100+
"description": "Horizontal GPS or GNSS accuracy value"
101+
},
102+
"satellites": {
103+
"type": "integer",
104+
"description": "Number of GPS or GNSS satellites"
122105
}
123106
}
124107
},
@@ -134,6 +117,47 @@
134117
}
135118
}
136119
},
120+
"Point": {
121+
"$id": "#/definitions/Point",
122+
"title": "GeoJSON Point",
123+
"type": "object",
124+
"required": [
125+
"type",
126+
"coordinates"
127+
],
128+
"properties": {
129+
"type": {
130+
"type": "string",
131+
"enum": [
132+
"Point"
133+
]
134+
},
135+
"coordinates": {
136+
"type": "array",
137+
"minItems": 2,
138+
"items": [
139+
{
140+
"type": "number",
141+
"minimum": -180.0,
142+
"maximum": 180.0
143+
},
144+
{
145+
"type": "number",
146+
"minimum": -90.0,
147+
"maximum": 90.0
148+
}
149+
],
150+
"maxItems": 2
151+
},
152+
"bbox": {
153+
"type": "array",
154+
"minItems": 4,
155+
"items": {
156+
"type": "number"
157+
}
158+
}
159+
}
160+
},
137161
"ttl": {
138162
"$id": "#/definitions/ttl",
139163
"type": "integer",

0 commit comments

Comments
 (0)