-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRouteStatus.dtd
60 lines (59 loc) · 1.55 KB
/
RouteStatus.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/RouteStatus.dtd",
"type": "object",
"title": "Route Status",
"description": "Json schema for the Route Status object. V-5. Endpoint: https://wh.route4me.com/modules/api/v5.0/route-status",
"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"
},
"status": {
"type": "string",
"enum": ["planned", "started", "paused", "completed"],
"title": "Route Status",
"description": "Route current status"
},
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"title": "Latitude",
"description": "Latitude"
},
"lng": {
"type": "number",
"minimum": -90,
"maximum": 90,
"title": "Longitude",
"description": "Longitude"
},
"planned_at": {
"type": "integer",
"title": "Planned At",
"description": "When the route was planned (EPOCH format time)."
},
"started_at": {
"type": "integer",
"title": "Started At",
"description": "When the route was started (EPOCH format time)."
},
"paused_at": {
"type": "integer",
"title": "Paused At",
"description": "When the route was paused (EPOCH format time)."
},
"completed_at": {
"type": "integer",
"title": "Completed At",
"description": "When the route was completed (EPOCH format time)."
}
}
}