-
Notifications
You must be signed in to change notification settings - Fork 5
/
Asset_tracking_response.json
258 lines (258 loc) · 6.12 KB
/
Asset_tracking_response.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
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
{
"title": "Asset tracking response",
"type": "object",
"description": "Response from the endpoint: https://route4me.com/api.v4/status.php",
"properties": {
"tracking_number": {
"type": "string",
"title": "Tracking Number",
"description": "The ID assigned to an asset by the system"
},
"large_logo_uri": {
"type": "string",
"nullable": true,
"title": "Large logo URI",
"description": "A link to a large logo"
},
"large_logo_uri_2x": {
"type": "string",
"nullable": true,
"title": "Large logo URI 2x",
"description": "A link to a large logo 2x"
},
"mobile_logo_uri": {
"type": "string",
"nullable": true,
"title": "Mobile logo URI",
"description": "A link to a mobile logo"
},
"mobile_logo_uri_2x": {
"type": "string",
"nullable": true,
"title": "Mobile logo URI 2x",
"description": "A link to a mobile logo 2x"
},
"map_color": {
"type": "string",
"nullable": true,
"title": "Map color",
"description": "Map color"
},
"large_logo_alignment": {
"type": "string",
"nullable": true,
"title": "Large logo alignment",
"description": "An alignment of a large logo"
},
"mobile_logo_alignment": {
"type": "string",
"nullable": true,
"title": "Mobile logo alignment",
"description": "An alignment of a mobile logo"
},
"show_map_zoom_controls": {
"type": "boolean",
"title": "Show map zooom controls",
"description": "If true, the map zoom controls will be shown"
},
"driver_phone": {
"type": "string",
"nullable": true,
"title": "Driver phone",
"description": "Driver phone number"
},
"route_started": {
"type": "boolean",
"title": "Route Started",
"description": "Route started"
},
"customer_service_phone": {
"type": "string",
"nullable": true,
"title": "Customer Service Phone",
"description": "Customer service phone"
},
"hide_covid19_warning": {
"type": "boolean",
"title": "Hide Covid19 Warning",
"description": "If true, Covid19 warning hidden"
},
"driver_name": {
"type": "string",
"title": "Driver name",
"description": "Driver name"
},
"driver_picture": {
"type": "string",
"nullable": true,
"title": "Driver picture",
"description": "A link to a driver picture file"
},
"tracking_page_subheadline": {
"type": "string",
"nullable": true,
"title": "Tracking page subheadline",
"description": "A subheadline of a tracking page"
},
"destination_address_1": {
"type": "string",
"title": "Destination address 1",
"description": "A first destination address"
},
"destination_address_2": {
"type": "string",
"title": "Destination address 1",
"description": "A second destination address"
},
"delivered": {
"type": "boolean",
"title": "Delivered",
"description": "If true, the item was delivered to the location"
},
"status_history": {
"type": "array",
"items": {
"type": "object",
"properties": {
"unix_timestamp": {
"type": "integer",
"title": "Unix Timestamp",
"description": "Unix timestamp"
},
"info": {
"type": "string",
"enum": [
"Order Received",
"Order Assigned to Route",
"Packing",
"Loaded to Vehicle",
"Out for Delivery"
],
"title": "Information",
"description": "Information about a shipped package"
}
}
}
},
"locations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"is_destination": {
"type": "boolean",
"title": "Is Destination",
"description": "True if the location is destination"
},
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"title": "Latitude",
"description": "Point latitude"
},
"lng": {
"type": "number",
"minimum": -180,
"maximum": 180,
"title": "Longitude",
"description": "Point longitude"
},
"icon": {
"type": "string",
"nullable": true,
"title": "Icon",
"description": "Link to the icon"
},
"size": {
"type": "integer",
"title": "Size",
"description": "Size of the icon"
},
"anchor": {
"type": "array",
"items": {
"type": "integer"
},
"description": "A icon's acnhor position"
},
"popupAnchor": {
"type": "array",
"nullable": true,
"items": {
"type": "integer"
}
},
"angle": {
"type": "integer",
"title": "Angle",
"description": "Rotation angle"
},
"info": {
"type": "string",
"title": "Information",
"description": "Information about a shipped package at a specified location."
}
}
}
},
"custom_data": {
"type": "object",
"additionalProperties": { "type": "string" },
"title": "Custom Data",
"description": "Unclasified data of a Tracking_number object. You can put here asset name too."
},
"arrival": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from_unix_timestamp": {
"type": "integer",
"title": "From Unix Timestamp",
"description": "Start of arrival time range in EPOCH"
},
"to_unix_timestamp": {
"type": "integer",
"title": "To Unix Timestamp",
"description": "End of arrival time range in EPOCH"
}
}
}
},
"stop_status": {
"type": "string",
"title": "Stop Status",
"description": "Stop status"
},
"stop_status_time": {
"type": "integer",
"title": "Stop Status Time",
"description": "Stop status time"
},
"is_failed": {
"type": "boolean",
"title": "Is Failed",
"description": "If true, the tracking process failed."
},
"route_start_time": {
"type": "object",
"properties": {
"planned": {
"type": "integer",
"nullable": true,
"title": "Planned Route Start Time",
"description": "Planned start time of the route."
},
"actual": {
"type": "integer",
"nullable": true,
"title": "Actual Route Start Time",
"description": "Actual start time of the route."
}
},
"title": "Route Start Time",
"description": "Route start time"
}
}
}