Latest Vehicle Details based on User
This API is meant to get the list of vehicle’s live data using the given user.
GEThttps://yourdomain.com/webservice?token=getUserWiseLiveData&user=XXXX&pass=XX
            Request Parameters
| Parameter | Type | Value | Description | 
|---|---|---|---|
| user | String | Username and is mandatory | |
| pass | String | Password and is mandatory | 
Description
Response
| Key | Data Type | Mandatory | Description / Logic / Remark | 
| transporter_name | String | Yes | Company Short Name | 
| plate_no | String | Yes | Vehicle No | 
| ignition | String | Yes | Vehicle Ignition Status | 
| latitude | String | Yes | Current Latitude | 
| longitude | String | Yes | Current Longitude | 
| location | String | Yes | Vehicle Location | 
| speed | String | Yes | Vehicle Speed | 
| gps_date_time | String | Yes | Continue Data Receiving Time | 
| distance | String | Yes | Vehicle Covered Distance | 
Acceptance Criteria
- API is specific to VTS. 
- Can not give data for more then 50 vehicle. 
| Error Code | Status | 
| 0 | Fail | 
| 1 | Success | 
Sample Response
Success message [
  {
    "transporter_name": "XXXX XXXXX XXX",
    "plate_no": "hello last test",
    "ignition": "--",
    "latitude": "0.24327",
    "longitude": "32.55795",
    "location": "XXXXX XXXXXXXXXXX",
    "speed": "0",
    "gps_date_time": "27-09-2022 13:55:42",
    "distance": "0.0 km"
  }]
{
  "RESULT": "FAIL",
  "ERROR_MSG": "No Company Found."
}
{
  "RESULT": "FAIL",
  "ERROR_MSG": "Bad Request."
}
{
  "RESULT": "FAIL",
  "ERROR_MSG": "More than 50 vehicle found."
}
{
  "RESULT": "FAIL",
  "ERROR_MSG": "No vehicle found."
}
{
  "RESULT": "FAIL",
  "ERROR_MSG": "No Data Found"
}
Response codes
| Code | Description | 
|---|
Error codes
| Code | Name | Description | 
|---|