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
userStringUsername and is mandatory
passStringPassword 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

  1. API is specific to VTS.

  2. 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"
  }]
FAIL
{
  "RESULT": "FAIL",
  "ERROR_MSG": "No Company Found."
}
FAIL
{
  "RESULT": "FAIL",
  "ERROR_MSG": "Bad Request."
}
FAIL
{
  "RESULT": "FAIL",
  "ERROR_MSG": "More than 50 vehicle found."
}
FAIL
{
  "RESULT": "FAIL",
  "ERROR_MSG": "No vehicle found."
}
FAIL
{
  "RESULT": "FAIL",
  "ERROR_MSG": "No Data Found"
}
Response codes
Code Description
Error codes
Code Name Description