Vehicle Live Status and Count
This API is meant to get the vehicle’s live data status and it
GEThttps://yourdomain.com/webservice?token=getLiveVehicleStatusAndCount&user=XXX&pass=XX&access_token=hjdhfjhdf434&company=XXX&location=XXX&app=00
            Request Parameters
| Parameter | Type | Value | Description | 
|---|---|---|---|
| user | String | It is username and it is Mandatory | |
| pass | String | It is password and it is Mandatory | |
| access_token | String | It is acces token and it si mandatory | |
| company | String | It is company name or short name and it is mandatory | |
| location | String | It is branch name and is is optional | |
| app | Integer | it is application id and Mandatory | 
Description
Method Name
getLiveVehicleStatusAndCount
Prerequisites
Before calling this API we need to generate token using generateAccessToken API.
Request
| Request interval:- | Every 1 min If user is invalid then 2 min | |||
Response
| Key | Format | Mandetory | Description | 
| VehicleData | String | yes | Store details of vehicle | 
| RUNNING | String | yes | Vehicles are in running condition | 
| IDLE | String | yes | Vehicles are in idle condition | 
| STOP | String | yes | Vehicles are in Stop condition | 
| INACTIVE | String | yes | Vehicles are in Stop condition | 
| NO DATA | String | yes | Data not received from vehicle | 
| count | Int | yes | Numbers of vehicles | 
| Precentage | float | yes | Percentage of vehicle | 
| Error Code | Status | 
| 0 | Fail | 
| 1 | Success | 
Sample Response
SUCCESS{
  "root": {
    "VehicleData": [
      {
        "RUNNING": {
          "Count": ,
          "Precentage": "%"
        },
        "IDLE": {
          "Count": ,
          "Precentage": "%"
        },
        "STOP": {
          "Count": ,
          "Precentage": "%"
        },
        "INACTIVE": {
          "Count": ,
          "Precentage": "%"
        },
        "NO DATA": {
          "Count": ,
          "Precentage": "%"
        }
      }
    ]
  }
}
{
   "root": {
       "error": "The call exceeded the limit of one/two minutes one call."
   }
}
{
   "root": {
       "error": "App parameter value is invalid."
   }
}
{
   "root": {
       "error": "This API service is not available for you."
   }
}
{
   "root": {
       "error": "No Company Found."
   }
}
{
   "root": {
       "error": "No branch found."
   }
}
{
   "root": {
       "error": "Enter Company First"
   }
}
{
   "root": {
       "error": "This API service is not available for you."
   }
}
{
   "root": {
       "error": "inactive User "
   }
}
{
   "root": {
       "error": "Incorrect username / password.."
   }
}
{
   "root": {
       "error": "invalid parameter"
   }
}
Response codes
| Code | Description | 
|---|
Error codes
| Code | Name | Description | 
|---|