-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRouteV5.dtd
396 lines (396 loc) · 10.8 KB
/
RouteV5.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
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/RouteV5.dtd",
"type": "object",
"title": "Route V5",
"description": "Json schema for the Route object. V-5. Endpoint: https://wh.route4me.com/modules/api/v5.0/routes",
"properties": {
"route_id": {
"type": "string",
"title": "Route ID",
"description": "Route Unique Identifier"
},
"optimization_problem_id": {
"type": "string",
"title": "Optimization Problem ID",
"description": "Optimization which generated this route"
},
"smart_optimization_id": {
"type": "string",
"title": "Smart Optimization ID",
"description": "Smart optimization ID"
},
"organization_id": {
"type": "integer",
"title": "Organization ID",
"description": "A unique ID of a group the organizations or partners."
},
"route_progress": {
"type": "integer",
"title": "Route Progress",
"description": "Indicates route Progress (in percents)."
},
"depot_address_id": {
"type": "integer",
"title": "Depot Address ID",
"description": "An unique identifier of a route depot."
},
"root_member_id": {
"type": "integer",
"title": "Root Member ID",
"description": "A unique ID of the account's root member."
},
"day_id": {
"type": "integer",
"title": "Day ID",
"description": "Days after 2010-01-01 00:00"
},
"addresses_visited_count": {
"type": "integer",
"title": "Addresses Visited Count",
"description": "How many route addresses are visited."
},
"route_start_time": {
"type": "integer",
"title": "Route Start Time",
"description": "When the route started (day time in seconds)."
},
"route_end_time": {
"type": "integer",
"title": "Route End Time",
"description": "When the route finished (or canceled) (day time in seconds)."
},
"user_route_rating": {
"type": "integer",
"nullable": true,
"enum": [0, 1, 2, 3, 4, 5 ],
"title": "User Route Rating",
"description": "User route rating [0, 5]. A null value means no rating was given. Users can rate routes so that future optimizations take these ratings into account."
},
"channel_name": {
"type": "string",
"title": "Channel Name",
"description": "Channel name"
},
"vehicle_alias": {
"type": "string",
"title": "Vehicle Alias",
"description": "Name of vehicle_id"
},
"driver_alias": {
"type": "string",
"title": "Driver Alias",
"description": "Name of driver_id. 32 Character Fixed-length MD5 Hash"
},
"trip_distance": {
"type": "number",
"title": "Trip Distance",
"description": "Route length (the unit is given by distance_unit)"
},
"udu_distance_unit": {
"type": "string",
"enum": ["mi","km"],
"title": "UDU Distance Unit",
"description": "UDU distance unit"
},
"udu_trip_distance": {
"type": "number",
"title": "UDU Trip Distance",
"description": "UDU Route length (the unit is given by distance_unit)"
},
"is_unrouted": {
"type": "boolean",
"title": "Is unrouted",
"description": "If true, route is unrouted"
},
"created_timestamp": {
"type": "integer",
"title": "Created Timestamp",
"description": "Created UNIX timestamp"
},
"mpg": {
"type": "integer",
"title": "MPG",
"description": "Miles per gallon (used to compute fuel consumption)"
},
"gas_price": {
"type": "number",
"title": "Gas Price",
"description": "Price of gas (used to compute route costs)"
},
"route_duration_sec": {
"type": "integer",
"title": "Route Duration sec",
"description": "Estimated drive time of route (Seconds)"
},
"planned_total_route_duration": {
"type": "integer",
"title": "Planned Total Route Duration",
"description": "Planned total route duration"
},
"total_wait_time": {
"type": "integer",
"title": "Total Wait Time",
"description": "Total wait time"
},
"udu_actual_travel_distance": {
"type": "number",
"title": "UDU Actual Travel Distance",
"description": "UDU Actual travel distance"
},
"actual_travel_distance": {
"type": "number",
"title": "Actual Travel Distance",
"description": "Actual travel distance"
},
"actual_travel_time": {
"type": "integer",
"title": "Actual Travel Time",
"description": "Actual travel time"
},
"actual_footsteps": {
"type": "integer",
"title": "Actual Footsteps",
"description": "Actual footsteps"
},
"working_time": {
"type": "integer",
"title": "Working Time",
"description": "Working time"
},
"driving_time": {
"type": "integer",
"title": "Driving Time",
"description": "Driving time"
},
"idling_time": {
"type": "integer",
"title": "Idling Time",
"description": "Idling time"
},
"paying_miles": {
"type": "number",
"title": "Paying Miles",
"description": "Paying miles"
},
"destination_count": {
"type": "integer",
"title": "Destination Count",
"description": "Destination count"
},
"notes_count": {
"type": "integer",
"title": "Notes Count",
"description": "Notes count in the route"
},
"parameters": {
"type": "object",
"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/RouteParameters.json",
"description": "Route parameters"
},
"addresses": {
"type": "array",
"items": {"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/Address.json"},
"title": "Addresses"
},
"links": {"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/Links.json"},
"notes": {
"type": "array",
"items": {"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/note.json"},
"title": "Notes"
},
"vehicle": {
"type": "object",
"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/Vehicle_V4.json"
},
"path": {
"type": "array",
"items": {"type": "string"},
"title": "Path",
"description": "Edge-wise path to be drawn on the map"
},
"directions": {
"type": "array",
"items": {"type": "string"},
"description": "Edge by edge turn-by-turn directions. Note: For round-trip routes (parameters.rt = true), the return to the start address is returned as well"
},
"bundle_items": {
"type": "array",
"readOnly": true,
"items": {
"type": "object",
"properties": {
"cube": {
"type": "number",
"title": "Cube",
"description": "Summary cube value of the bundled addresses."
},
"revenue": {
"type": "number",
"title": "Revenue",
"description": "Summary revenue value of the bundled addresses."
},
"pieces": {
"type": "integer",
"title": "Pieces",
"description": "Summary pieces value of the bundled addresses."
},
"weight": {
"type": "number",
"title": "Weight",
"description": "Summary weight value of the bundled addresses."
},
"cost": {
"type": "number",
"title": "Cost",
"description": "Summary cost value of the bundled addresses."
},
"service_time": {
"type": "integer",
"title": "ServiceTime",
"description": "Service time of the bundled addresses."
},
"time_window_start": {
"type": "integer",
"title": "Time Window Start",
"description": "Time window start of the bundled addresses."
},
"time_window_end": {
"type": "integer",
"title": "Time Window End",
"description": "Time window end of the bundled addresses."
},
"custom_data": {
"type": "object",
"additionalProperties": { "type": "string" },
"description": "Custom data",
"title": "Custom Data"
},
"addresses_id": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Array of the IDs of the bundled addresses."
}
}
}
},
"route_status": {
"type": "string",
"enum": ["planned", "started", "paused", "completed"],
"title": "Route Status",
"description": "Route current status"
},
"is_master": {
"type": "boolean",
"title": "Is Master",
"description": "If true, the route is a master route."
},
"master_route_id": {
"type": "string",
"title": "Master Route ID",
"description": "A unique ID of a master route"
},
"route_cost": {
"type": "number",
"title": "Route Cost",
"description": "Route cost"
},
"route_weight": {
"type": "number",
"title": "Route Weight",
"description": "Route weight"
},
"route_cube": {
"type": "number",
"title": "Route Cube",
"description": "Route cube"
},
"route_revenue": {
"type": "number",
"title": "Route Revenue",
"description": "Route revenue"
},
"route_pieces": {
"type": "integer",
"title": "Route Pieces",
"description": "Route pieces"
},
"net_revenue_per_distance_unit": {
"type": "number",
"title": "Net Revenue Per Distance Unit",
"description": "Net revenue per distance unit"
},
"member_id": {
"type": "string",
"title": "Member ID",
"description": "Member ID"
},
"member_email": {
"type": "string",
"title": "Member Email",
"description": "Member email"
},
"member_first_name": {
"type": "string",
"title": "Member First Name",
"description": "Member first name"
},
"member_last_name": {
"type": "string",
"title": "Member Last Name",
"description": "Member last name"
},
"member_picture":{
"type": "string",
"nullable": true,
"title": "Member Picture",
"description": "URL to a member picture"
},
"member_tracking_subheadline" : {
"type": "string",
"nullable": true,
"title": "Member Tracking Subheadline",
"description": "Member tracking subheadline"
},
"geofence_polygon_type": {
"type": "string",
"enum": ["circle", "poly", "rect"],
"title": "Geofence Polygon Type",
"description": "Geofence polygon type"
},
"geofence_polygon_size": {
"type": "integer",
"title": "Geofence Polygon Size",
"description": "Geofence polygon size"
},
"member_config_storage": {
"type": "object",
"additionalProperties": { "type": "string" },
"description": "Member config key-value pairs"
},
"approved_for_execution": {
"type": "boolean",
"title": "Approved For Execution",
"description": "The route approved for execution"
},
"approved_revisions_counter": {
"type": "integer",
"title": "Approved Revisions Counter",
"description": "Approved revisions counter"
},
"tracking_history": {
"type": "array",
"items": {"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/TrackingHistory.json"},
"title": "Tracking History",
"description": "A collection of device tracking data with coordinates, speed, and timestamps"
},
"original_route": {
"type": "object",
"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/Route.json",
"title": "Original Route",
"description": "Original route"
}
}
}