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
userIdStringIt is username and it is Mandatory
pwdStringIt is password and it is Mandatory
start_date_timeStringyyyy-MM-dd HH:mm:ssstart date of travel and mandatory
end_date_timeStringyyyy-MM-dd HH:mm:ssEnd Date of travel ani it is mandatory
VNOStringVehicle Number and mandatary
Description

Method

getVehicleTravelDetail

Request

Request interval:-

Every 1 min


Acceptance Criteria

  1. License is not expired.

  2. API is specific project VTS

  3. 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": ""
  }
]
FAIL
{
   "result": 0,
   "message":" Incorrect username or password"

"
}
FAIL
{
   "result": 0,
   "message":"License is expired for user"
}
FAIL
{
   "result": 0,
   "message":"Vehicle not found"

"
}
FAIL
{
   "result": 0,
   "message":"You do not have rights for this company"
}
FAIL
{
   "result": 0,
   "message":"You can not request data for duration of more than two days."
}
FAIL
{
   "result": 0,
   "message":"Two consecutive request must be  1 minutes apart, Please wait."
}
FAIL
{
   "result": 0,
 "message":"Something went wrong on server"
}
Response codes
Code Description
Error codes
Code Name Description