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
usernameStringIt is mandatory
passwordStringIt is mandatory
company_nameStringIt is mandatory
Description

Method Name

getVehiclesWithLocationDetails


Acceptance Criteria

  1. Licence must not be expired.
  2. 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": ""
}
FAIL
{
   "result": 0,
   "message": "Incorrect username or password"
}
FAIL
{
    "result": 0,
    "message": "You do not have rights for this company"
}
FAIL
{
    "result": 0,
    "message": "You do not have permission to perform this operation"
}
FAIL
{
   "result": 0,
   "message": "License is expired for user"
}
FAIL
{
   "result": 0,
   "message": "Company not found"
}
FAIL
{
   "result": 0,
   "message": "Something went wrong on server"
}
Response codes
Code Description
Error codes
Code Name Description