-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVehicle_V4_api.dtd
335 lines (335 loc) · 10.1 KB
/
Vehicle_V4_api.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/Vehicle_V4_api.dtd",
"title": "Vehicle",
"type": "object",
"required": [
"vehicle_alias"
],
"description": "Vehicle object in the user's account. Endpoint: https://api.route4me.com/api.v4/vehicle.php",
"properties": {
"vehicle_id": {
"type": "string",
"title": "Vehicle id",
"descrption": "A unique identifcation 32-char string of the vehicle"
},
"member_id": {
"type": "integer",
"title": "Member id",
"descrption": "An unique identification number of the member"
},
"is_deleted": {
"type": "boolean",
"title": "Is Deleted",
"description": "If true, the vehicle is deleted"
},
"vehicle_name": {
"type": "string",
"title": "Vehicle Name",
"descrption": "Vehicle name"
},
"vehicle_alias": {
"type": "string",
"title": "Vehicle alias",
"descrption": "Internal name of the vehicle"
},
"vehicle_vin": {
"type": ["string", "null"],
"maxLength": 17,
"title": "Vehicle VIN",
"descrption": "Vehicle VIN number"
},
"vehicle_reg_state_id": {
"type": ["string", "null"],
"title": "Vehicle registration state ID",
"descrption": "An ID of the state, where vehicle was registered"
},
"vehicle_reg_country_id": {
"type": ["string", "null"],
"title": "Vehicle registration country ID",
"descrption": "An ID of the country, where vehicle was registered"
},
"vehicle_license_plate": {
"type": ["string", "null"],
"title": "Vehicle License Plate",
"descrption": "A license plate of the vehicle"
},
"vehicle_type_id": {
"type": ["string", "null"],
"enum": ["sedan", "suv", "pickup_truck", "van", "18wheeler", "cabin", "hatchback", "motorcyle", "waste_disposal", "tree_cutting", "bigrig", "cement_mixer", "livestock_carrier", "dairy","tractor_trailer"],
"title": "Vehicle Type ID",
"descrption": "Vehicle type"
},
"timestamp_added": {
"type": "string",
"title": "Timestamp Added",
"descrption": "When the vehicle was added"
},
"vehicle_make": {
"type": ["string", "null"],
"enum": ["american coleman", "bmw", "chevrolet", "ford", "freightliner", "gmc", "hino", "honda", "isuzu", "kenworth", "mack", "mercedes-benz", "mitsubishi", "navistar", "nissan", "peterbilt", "renault", "scania", "sterling", "toyota", "volvo", "western star"],
"title": "Vehicle Make",
"descrption": "Vehicle maker brend"
},
"vehicle_model_year": {
"type": ["integer", "null"],
"title": "Vehicle Model Year",
"descrption": "A year of the vehicle model"
},
"vehicle_model": {
"type": ["string", "null"],
"title": "Vehicle Model",
"descrption": "A model of the vehicle"
},
"vehicle_year_acquired": {
"type": ["integer", "null"],
"title": "Vehicle Acquired Year",
"descrption": "A year the vehicle was acquired"
},
"vehicle_cost_new": {
"type": ["number", "null"],
"title": "Vehicle Cost New",
"descrption": "A cost of the new vehicle"
},
"purchased_new": {
"type": ["boolean", "null"],
"title": "Purchased New",
"description": "If true, the vehicle was purchased new"
},
"license_start_date": {
"type": ["string", "null"],
"format": "date-time",
"title": "License Start Date",
"descrption": "A start date of the license"
},
"license_end_date": {
"type": ["string","null"],
"format": "date-time",
"title": "License End Date",
"descrption": "An end date of the license"
},
"vehicle_axle_count": {
"type": ["integer", "null"],
"title": "Vehicle Axle Count",
"descrption": "A number of the vecile's axles"
},
"is_operational": {
"type": "boolean",
"title": "Is Operational",
"description": "If true, the vehicle is operational"
},
"mpg_city": {
"type": ["number", "null"],
"minimum": 6,
"maximum": 60,
"title": "MPG City",
"descrption": "Miles per gallon in the city area"
},
"mpg_highway": {
"type": ["number", "null"],
"minimum": 6,
"maximum": 60,
"title": "MPG Highway",
"descrption": "Miles per gallon in the highway area"
},
"fuel_type": {
"type": ["string", "null"],
"enum": ["unleaded 87", "unleaded 89", "unleaded 91", "unleaded 93", "diesel", "electric", "hybrid"],
"title": "Fuel Type",
"descrption": "A type of the fuel"
},
"height_inches": {
"type": ["number", "null"],
"title": "Height Inches",
"descrption": "A height of the vehicle in the inches."
},
"weight_lb": {
"type": ["number", "null"],
"title": "Weight LB",
"descrption": "A weight of the vehicle in the pounds."
},
"route4me_telematics_internal_api_key": {
"type": ["string", "null"],
"title": "Route4Me Telematics Internal API Key",
"descrption": "Route4Me telematics internal API key"
},
"external_telematics_vehicle_id": {
"type": ["string", "null"],
"title": "External Telematics Vehicle ID",
"descrption": "External telematics vehicle ID"
},
"r4m_telematics_gateway_connection_id": {
"type": ["string", "null"],
"title": "Route4Me Telematics Gateway Connection ID",
"descrption": "Route4Me telematics gateway connection ID"
},
"r4m_telematics_gateway_vehicle_id": {
"type": ["string", "null"],
"title": "Route4Me Telematics Gateway Vehicle ID",
"descrption": "Route4Me telematics gateway vehicle ID"
},
"has_trailer": {
"type": "boolean",
"title": "Has Trailer",
"description": "If true, the vehicle has trailer"
},
"heightInInches": {
"type": ["number", "null"],
"title": "Height In Inches",
"descrption": "Vehicle height in inches"
},
"lengthInInches": {
"type": ["number", "null"
],
"title": "Length In Inches",
"descrption": "Vehicle length in inches"
},
"widthInInches": {
"type": ["number", "null"],
"title": "Width In Inches",
"descrption": "Vehicle width in inches"
},
"maxWeightPerAxleGroupInPounds": {
"type": ["number", "null"],
"title": "Maximum Weight Per Axle Group In Pounds",
"descrption": "Maximum weight per axle group in pounds"
},
"numAxles": {
"type": ["integer", "null"],
"title": "Axles Number",
"descrption": "Number of the axles"
},
"weightInPounds": {
"type": ["number", "null"],
"title": "Weight In Pounds",
"descrption": "Weight in pounds"
},
"HazmatType": {
"type": "string",
"default": "NONE",
"enum": ["INVALID", "NONE", "GENERAL", "EXPLOSIVE", "INHALANT", "RADIOACTIVE", "CAUSTIC", "FLAMMABLE", "HARMFUL_TO_WATER"],
"title": "Hazardous Materials Type",
"descrption": "Hazardous materials type"
},
"LowEmissionZonePref": {
"type": ["string", "null"],
"enum": ["AVOID", "ALLOW", "WARN"],
"title": "Low Emission Zone Preference",
"descrption": "Low emission zone preference"
},
"Use53FootTrailerRouting": {
"type": ["string", "null"],
"enum": ["YES", "NO"],
"title": "Use 53 Foot Trailer Routing",
"descrption": "Use 53 foot trailer routing"
},
"UseNationalNetwork": {
"type": ["string", "null"],
"enum": ["YES", "NO"],
"title": "Use National Network",
"descrption": "Use national network"
},
"UseTruckRestrictions": {
"type": ["string", "null"],
"enum": ["YES", "NO"],
"title": "Use Truck Restrictions",
"descrption": "Use truck restrictions"
},
"AvoidFerries": {
"type": "string",
"default": "NO",
"enum": ["YES", "NO"],
"title": "Avoid Ferries",
"descrption": "Avoid Ferries"
},
"DividedHighwayAvoidPreference": {
"type": ["string", "null"],
"enum": ["STRONG_AVOID", "AVOID", "NEUTRAL", "FAVOR", "STRONG_FAVOR"],
"title": "Divided Highway Avoid Preference",
"descrption": "Divided highway avoid preference (e.g. NEUTRAL)"
},
"FreewayAvoidPreference": {
"type": ["string", "null"],
"enum": ["STRONG_AVOID", "AVOID", "NEUTRAL", "FAVOR", "STRONG_FAVOR"],
"title": "Freeway Avoid Preference",
"descrption": "Freeway avoid preference"
},
"InternationalBordersOpen": {
"type": ["string", "null"],
"enum": ["YES", "NO"],
"title": "International Borders Open",
"descrption": "International borders open (e.g. NO, YES)"
},
"TollRoadUsage": {
"type": ["string", "null"],
"enum": ["ALWAYS_AVOID", "IF_NECESSARY", "NO_RESTRICTION"],
"title": "Toll Road Usage",
"descrption": "Toll road usage"
},
"hwy_only": {
"type": "string",
"default": "NO",
"enum": ["YES", "NO"],
"title": "Highway Only",
"description": "If true, the vehicle uses only highway"
},
"long_combination_vehicle": {
"type": "string",
"default": "NO",
"enum": ["YES", "NO"],
"title": "Long Combination Vehicle",
"description": "If true, the vehicle is long combination"
},
"avoid_highways": {
"type": "string",
"default": "NO",
"enum": ["YES", "NO"],
"title": "Avoid Highways",
"description": "If true, the vehicle should avoid highways"
},
"side_street_adherence": {
"type": "string",
"default": "OFF",
"enum": ["OFF", "MINIMAL", "MODERATE", "AVERAGE", "STRICT", "ADHERE", "STRONGLYHERE"],
"title": "Side Street Adherence",
"descrption": "Side street adherence"
},
"truck_config": {
"type": "string",
"default": "NONE",
"enum": ["NONE", "PASSENGER", "28_DOUBLETRAILER", "48_STRAIGHT_TRUCK", "48_SEMI_TRAILER", "53_SEMI_TRAILER", "FULLSIZEVAN", "26_STRAIGHT_TRUCK"],
"title": "Truck Configuration",
"descrption": "Truck configuration"
},
"height_metric": {
"type": ["number", "null"],
"title": "Height Metric",
"descrption": "Vehicle height in metric unit"
},
"length_metric": {
"type": ["number", "null"],
"title": "Length Metric",
"descrption": "Vehicle length in metric unit"
},
"width_metric": {
"type": ["number", "null"],
"title": "Width Metric",
"descrption": "Vehicle width in metric unit"
},
"weight_metric": {
"type": ["number", "null"],
"title": "Weight Metric",
"descrption": "Vehicle weight in metric unit"
},
"max_weight_per_axle_group_metric": {
"type": ["number", "null"],
"title": "Maximum Weight Per Axle Group Metric",
"descrption": "Maximum weight per axle group in metric unit"
},
"timestamp_removed": {
"type": "string",
"title": "Timestamp Removed",
"descrption": "When he vehicle was removed"
}
}
}