Vehicle Travel Detail
This API is meant to get the vehicle’s travel detail.
POSThttps://yourdomain.com/webservice?token=getVehicleTravelDetail
            Request Parameters
| Parameter | Type | Value | Description | 
|---|---|---|---|
| userId | String | It is username and it is Mandatory | |
| pwd | String | It is password and it is Mandatory | |
| start_date_time | String | yyyy-MM-dd HH:mm:ss | start date of travel and mandatory | 
| end_date_time | String | yyyy-MM-dd HH:mm:ss | End Date of travel ani it is mandatory | 
| VNO | String | Vehicle Number and mandatary | 
Description
Method
getVehicleTravelDetail
Request
| Request interval:- | Every 1 min | |||
Acceptance Criteria
- License is not expired. 
- API is specific project VTS 
- diffarence between start date and end date is not more then two days. 
Respose
| Key | Format | Mandatory | Description | 
| VehicleNumber | String | yes | Vehicle number | 
| Trackingtime | MMM dd YYYY hh:mm | yes | Total tracking time | 
| Address | String | yes | Vehicle address | 
| Speed | String | yes | Vehicle speed | 
| Latitude | String | yes | vehicle latitude | 
| Longitude | String | yes | vehicle longitude | 
| GPSDirection | String | yes | Vehicle direction | 
| Distance | String | yes | Total distance covered | 
| Error Code | Status | 
| 0 | Fail | 
| 1 | Success | 
Sample Response
SUCCESS[
  "data":{
    "VehicleNumber": "thjrth",
    "Trackingtime": "MMM dd YYYY hh:mm",
    "Address": "xxxxxx",
    "Speed": "0",
    "Latitude": "23.4336",
    "Longitude": "57.678",
    "GPSDirection": "",
    "Distance": ""
  }
]
{
   "result": 0,
   "message":" Incorrect username or password"
"
}
{
   "result": 0,
   "message":"License is expired for user"
}
{
   "result": 0,
   "message":"Vehicle not found"
"
}
{
   "result": 0,
   "message":"You do not have rights for this company"
}
{
   "result": 0,
   "message":"You can not request data for duration of more than two days."
}
{
   "result": 0,
   "message":"Two consecutive request must be  1 minutes apart, Please wait."
}
{
   "result": 0,
 "message":"Something went wrong on server"
}
Response codes
| Code | Description | 
|---|
Error codes
| Code | Name | Description | 
|---|