-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVehicle_V5_api.dtd
177 lines (177 loc) · 5.41 KB
/
Vehicle_V5_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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/Vehicle_V5_api.dtd",
"title": "Vehicle",
"type": "object",
"required": [
"vehicle_alias"
],
"description": "Vehicle object in the user's account. Endpoint: https://wh.route4me.com/modules/api/v5.0/vehicles",
"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_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": ["integer", "null"],
"title": "Vehicle registration state ID",
"descrption": "An ID of the state, where vehicle was registered"
},
"vehicle_reg_country_id": {
"type": ["integer", "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"
},
"is_operational": {
"type": "boolean",
"title": "Is Operational",
"description": "If true, the vehicle is operational"
},
"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"
},
"external_telematics_vehicle_id": {
"type": ["integer", "null"],
"title": "External Telematics Vehicle ID",
"descrption": "External telematics vehicle ID"
},
"timestamp_removed": {
"type": "integer",
"title": "Timestamp Removed",
"descrption": "When he vehicle was removed"
},
"vehicle_profile_id": {
"type": "integer",
"title": "Vehicle Profile ID",
"descrption": "Vehicle Profile ID"
},
"fuel_consumption_city": {
"type": ["number", "null"],
"title": "Fuel Consumption City",
"descrption": "Fuel consumption in the city area"
},
"fuel_consumption_highway": {
"type": ["number", "null"],
"title": "Fuel Consumption Highway",
"descrption": "Fuel consumption in the highway area"
},
"fuel_consumption_city_unit": {
"type": "string",
"title": "Fuel Consumption City Unit",
"descrption": "Fuel consumption unit in the city area"
},
"fuel_consumption_highway_unit": {
"type": "string",
"title": "Fuel Consumption Highway Unit",
"descrption": "Fuel consumption unit in the highway area"
},
"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_consumption_city_uf_value": {
"type": "string,
"title": "Fuel Consumption City UF Value",
"descrption": "Fuel consumption UF value in the city area"
},
"fuel_consumption_highway_uf_value": {
"type": "string",
"title": "Fuel Consumption Highway UF Value",
"descrption": "Fuel consumption UF value in the highway area"
}
}
}