Vehicle Details with Location
This API gives all type of vehicle live location details
GEThttps://yourdomain.comwebservice?token=getVehiclesWithLocationDetails&username=XXX&password=XX&company_name=XXX
            Request Parameters
| Parameter | Type | Value | Description | 
|---|---|---|---|
| username | String | It is mandatory | |
| password | String | It is mandatory | |
| company_name | String | It is mandatory | 
Description
Method Name
getVehiclesWithLocationDetails
Acceptance Criteria
- Licence must not be expired.
- Only Admin , Reseller and Company can access this API.
Response
| Key | Format | Mandatory | Description | 
| data.vehicle_details | array | yes | Array of vehicle details | 
| data.vehicle_details.identifier | long | yes | IMEI number | 
| data.vehicle_details.vehicle_number | String | yes | vehicle number | 
| data.vehicle_details.latitude | double | yes | Vehicle latitude details | 
| data.vehicle_details.vehicle_type | string | yes | Vehicle type | 
| data.vehicle_details.longitude | double | yes | Vehicle longitude | 
| Error Code | Status | 
| 0 | FAIL | 
| 1 | SUCCESS | 
Sample Response
SUCCESS{
    "result": 1,
    "data": {
        "vehicle_details": [
            {
                "identifier": "1854854754765",
                "vehicle_number": "XXXXXXX",
                "latitude": "17.859938",
                "vehicle_type": "Scooter",
                "longitude": "83.294449"
            },
            {
                "identifier": "4295689254758",
                "vehicle_number": "XXXXXXX",
                "latitude": "17.882212",
                "vehicle_type": "TipperTruck",
                "longitude": "83.315903"
            }
        ]
    },
    "message": ""
}{
   "result": 0,
   "message": "Incorrect username or password"
}
{
    "result": 0,
    "message": "You do not have rights for this company"
}{
    "result": 0,
    "message": "You do not have permission to perform this operation"
}{
   "result": 0,
   "message": "License is expired for user"
}
{
   "result": 0,
   "message": "Company not found"
}
{
   "result": 0,
   "message": "Something went wrong on server"
}
Response codes
| Code | Description | 
|---|
Error codes
| Code | Name | Description | 
|---|