-
Notifications
You must be signed in to change notification settings - Fork 5
/
Address_request.json
314 lines (314 loc) · 8.06 KB
/
Address_request.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
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
{
"title": "Address Request",
"description": "Json schema for an Address request class. See curl examples: add_address_to_optimization, update_address_in_route",
"type": "object",
"properties": {
"route_destination_id": {
"type": "integer",
"title": "Route Destination ID",
"description": "Internal unique address identifier"
},
"alias": {
"type": "string",
"title": "Address Alias",
"description": "Address Alias"
},
"member_id": {
"type": "integer",
"title": "Member ID",
"description": "Member ID"
},
"address": {
"type": "string",
"title": "Address Name",
"description": "The route Address Line 1"
},
"is_depot": {
"type": "boolean",
"title": "Is Depot",
"description": "This address is a depot",
"default": "false"
},
"lat": {
"type": "number",
"title": "Latitude",
"description": "Latitude",
"minimum": -90,
"maximum": 90
},
"lng": {
"type": "number",
"title": "Longitude",
"description": "Longitude",
"minimum": -180,
"maximum": 180
},
"curbside_lat": {
"type": "number",
"title": "Curbside Latitude",
"description": "Curbside latitude",
"minimum": -90,
"maximum": 90
},
"curbside_lng": {
"type": "number",
"title": "Curbside Longitude",
"description": "Curbside longitude",
"minimum": -180,
"maximum": 180
},
"priority": {
"type": "integer",
"title": "Priority",
"description": "0 is the highest priority; n has higher priority than n + 1"
},
"route_id": {
"type": "string",
"title": "Route ID",
"description": "Parent route"
},
"optimization_problem_id": {
"type": "string",
"title": "Optimization Problem ID",
"description": "Optimization Problem ID"
},
"sequence_no": {
"type": "integer",
"title": "Sequence No",
"description": "The sequence number for the address"
},
"geocoded": {
"type": "boolean",
"title": "Geocoded",
"description": "True means the 'address' field was successfully geocoded"
},
"preferred_geocoding": {
"type": "integer",
"title": "Preferred Geocoding",
"description": "Index of 'geocodings' array that the user has chosen"
},
"geocodings": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/geocoding.json"
},
"title": "Geocodings ID"
},
"contact_id": {
"type": "integer",
"minimum": 0,
"title": "Contact ID",
"description": "Address book contact id (0 means not connected to the address book)"
},
"address_stop_type": {
"type": "string",
"enum": [
"DELIVERY","PICKUP","BREAK","MEETUP","SERVICE","VISIT","DRIVEBY"
],
"title": "Address stop type",
"description": "The type of stop that this is (DELIVERY,PICKUP,BREAK,MEETUP,SERVICE,VISIT,DRIVEBY)"
},
"is_visited": {
"type": "boolean",
"title": "Is Visited",
"description": "The driver pressed the 'Visited' button",
"default": "false"
},
"visited_lat": {
"type": "number",
"title": "Visited Latitude",
"description": "Last known check in latitude",
"minimum": -90,
"maximum": 90
},
"visited_lng": {
"type": "number",
"title": "Visited Longitude",
"description": "Last known check in longitude",
"minimum": -180,
"maximum": 180
},
"is_departed": {
"type": "boolean",
"title": "Is Departed",
"description": "The driver marked the 'Departed' button"
},
"departed_lat": {
"type": "number",
"title": "Departed Latitude",
"description": "Last known departed latitude",
"minimum": -90,
"maximum": 90
},
"departed_lng": {
"type": "number",
"description": "Last known departed longitude",
"title": "Departed Longitude",
"minimum": -180,
"maximum": 180
},
"group": {
"type": "string",
"title": "Group",
"description": "Address group"
},
"customer_po": {
"type": "string",
"title": "Customer PO",
"description": "The customer purchase order for the address"
},
"invoice_no": {
"type": "string",
"title": "Invoice No",
"description": "The invoice number for the address"
},
"reference_no": {
"type": "string",
"title": "Reference NO",
"description": "The reference number for the address"
},
"order_no": {
"type": "string",
"title": "Order NO",
"description": "The order number for the address"
},
"order_id": {
"type": "integer",
"title": "Order ID",
"description": "Parent order ID"
},
"weight": {
"type": "number",
"title": "Weight",
"description": "Weight"
},
"cost": {
"type": "number",
"title": "Cost",
"description": "The cost of the order for the address"
},
"revenue": {
"type": "number",
"title": "Revenue",
"description": "The total revenue for the address"
},
"cube": {
"type": "number",
"title": "Cube",
"description": "The cubic volume of the cargo being delivered or picked up at the address"
},
"pieces": {
"type": "integer",
"title": "Pieces",
"description": "Pieces"
},
"first_name": {
"type": "string",
"title": "First name",
"description": "The first name of the receiving address"
},
"last_name": {
"type": "string",
"title": "Last name",
"description": "The last name of the receiving address"
},
"email": {
"type": "string",
"format": "email",
"title": "Email",
"description": "A valid e-mail address assigned to this stop"
},
"phone": {
"type": "string",
"title": "Phone",
"description": "Customer Phone"
},
"time_window_start": {
"type": "integer",
"title": "Time Window Start",
"description": "Time Window Start in seconds, relative to the route start date (midnight), UTC time zone. It is relative to start datebecause start time changes would shift time windows"
},
"time_window_end": {
"type": "integer",
"title": "Time Window End",
"description": "Time Window End in seconds, relative to the route start date (midnight), UTC time zone. It is relative to start datebecause start time changes would shift time windows"
},
"time_window_start_2": {
"type": "integer",
"title": "Time Window Start 2",
"description": "See time_window_start"
},
"time_window_end_2": {
"type": "integer",
"title": "Time Window End 2",
"description": "See time_window_end"
},
"time": {
"type": "integer",
"title": "Time",
"description": "Service time (seconds)"
},
"custom_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Any unrecognized fields from the original CSV upload will be found here",
"title": "Custom Fields"
},
"custom_fields_str_json": {
"type": "string",
"title": "Custom fields JSON string",
"description": "JSON string representation of the custom fields"
},
"custom_fields_config": {
"type": "array",
"items": {
"type": "string"
},
"title": "Custom fields configuration",
"description": "Configuration of the custom fields"
},
"custom_fields_config_str_json": {
"type": "string",
"title": "Custom fields config JSON string",
"description": "JSON string representation of the custom fields configuration"
},
"notes": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/note.json"
},
"title": "Notes",
"description": "Notes"
},
"tracking_number": {
"type": "string",
"title": "Tracking Number",
"description": "Systemwide unique code, which permits end-users (recipients) to track the status of their order"
},
"required_skills": {
"type": "array",
"items": { "type": "string" },
"title": "Required Skills",
"description": "Required skills of a driver"
},
"required_skills": {
"type": "array",
"items": { "type": "string" },
"title": "Required Skills",
"description": "Required skills of a driver"
},
"additional_status": {
"type": "string",
"nullable": true,
"title": "Additional Status",
"description": "Additional Status of the address"
},
"wait_time_to_next_destination": {
"type": "integer",
"title": "Wait time to next destination",
"description": "Wait time to next destination"
}
}
}