-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTrackingDeviceLocation.dtd
204 lines (204 loc) · 5.13 KB
/
TrackingDeviceLocation.dtd
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/TrackingDeviceLocation.dtd",
"title": "Tracking Device Location",
"description": "Device location history. Endpoint: https://api.route4me.com/api/track/get_device_location.php",
"type": "object",
"properties": {
"data": {
"type": "array",
"title": "Data",
"items": {
"$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/TrackingHistory.dtd"
}
},
"mmd": {
"type": "object",
"title": "MMD",
"description": "Road snapping/map matching. The entire GPS feed was run through a map matching algorithm inside our routing engine. The driving directions and the corresponding points were converted to encoded polylines as well.",
"properties": {
"matchings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"confidence": {
"type": "number",
"title": "Confidence",
"description": "Confidence in the mathing"
},
"geometry": {
"type": "string",
"title": "Geometry",
"description": "Matching geometry"
},
"legs": {
"type": "array",
"title": "Legs",
"items": {
"type": "object",
"properties": {
"geometry": {
"type": "string",
"title": "Geometry",
"description": "Leg geometry"
},
"steps": {
"type": "array",
"items": {
"item": "object"
}
},
"distance": {
"type": "number",
"title": "Distance",
"description": "Leg distance"
},
"duration": {
"type": "number",
"title": "Duration",
"description": "Leg duration"
},
"summary": {
"type": "string",
"title": "Summary",
"description": "Leg summary"
},
"weight": {
"type": "number",
"title": "Weight",
"description": "Leg weight"
}
}
}
},
"distance": {
"type": "number",
"title": "Distance",
"description": "Matching distance"
},
"duration": {
"type": "number",
"title": "Duration",
"description": "Matching duration"
},
"weight_name": {
"type": "string",
"title": "Weight Name",
"description": "Weight name"
},
"weight": {
"type": "number",
"title": "Weight",
"description": "Matching weight"
}
}
}
},
"tracepoints": {
"type": "array",
"title": "tracepoints",
"items": {
"type": "object",
"properties": {
"alternatives_count": {
"type": "integer",
"title": "Alternatives Count",
"description": "Alternatives count"
},
"waypoint_index": {
"type": "integer",
"title": "Waypoint Index",
"description": "Waypoint index"
},
"location": {
"type": "array",
"items": {"type": "integer"},
"title": "Location",
"description": "Tracepoint location"
},
"name": {
"type": "string",
"title": "Name",
"description": "Tracepoint Name"
},
"distance": {
"type": "number",
"title": "Distance",
"description": "Matching distance"
},
"matchings_index": {
"type": "integer",
"title": "Matchings Index",
"description": "Matchings index"
}
}
},
"description": "Tracepoints"
},
"gaps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"distance": {
"type": "number",
"title": "Distance",
"description": "Gaps distance"
},
"duration": {
"type": "number",
"title": "Duration",
"description": "Gaps duration"
},
"geometry": {
"type": "string",
"title": "Geometry",
"description": "Gaps geometry"
}
}
},
"title": "Gaps",
"description": "Gaps"
},
"summary": {
"type": "object",
"title": "Summary",
"properties": {
"total_distance": {
"type": "number",
"title": "Total Distance",
"description": "Total distance"
},
"total_duration": {
"type": "number",
"title": "Total Duration",
"description": "Total duration"
},
"matchings_distance": {
"type": "number",
"title": "Matchings Distance",
"description": "Matchings distance"
},
"matchings_duration": {
"type": "number",
"title": "Matchings Duration",
"description": "Matchings duration"
},
"gaps_distance": {
"type": "number",
"title": "Gaps Distance",
"description": "Gaps distance"
},
"gaps_duration": {
"type": "number",
"title": "Gaps Duration",
"description": "Gaps duration"
}
},
"description": "Summary"
}
}
}
}
}