LogyTrack Vehicle Latest Data
This API is meant to return the vehicle details of the transportation and constructs a JSON response containing the vehicle data, including current status, coordinates, timestamps, and other details..
Request Parameters
Parameter | Type | Value | Description |
---|---|---|---|
user | String | Username and is mandatory | |
password | String | Password and is mandatory |
Description
Method Name
getLogyTrackVehicleLiveData
Acceptance Criteria
Validates the user by checking the provided username and password against a database.
- If the user is valid, it checks if the user has the necessary rights to access the API service.
URL
JSON
For All the Vehicle data
http://domain.com/webservice?token=getLogyTrackVehicleLiveData&user=XXX&password=YYY
-> With only username and password it will return all the vehicle data list
For Specific Vehicle data
http://domain.com/webservice?token=getLogyTrackVehicleLiveData&user=XXX&password=YYY
{
“vehicle_no” : [“, , ..”]
}
-> Mentioned vehicle number details will be listed.
For Specific Invoice data
http://domain.com/webservice?token=getLogyTrackVehicleLiveData&user=XXX&password=YYY
{
“invoice_no” : [“, , ..”]
}
-> Mentioned invoice number details will be listed.
Response Description
Key | Format | Description |
Status | String | Vehicle Status |
Speed | Number | Vehicle Speed |
Trip | String | Trip |
Latitude | String | Latitude |
GPS | String | GPS |
Longitude | String | Longitude |
Vehicle_No | String | Plate Number |
Invoice No | String | Invoice Number |
Tranporter_Name | String | Name of Transporter |
GPSActualTime | String | GPS Actual Time |
Trip_status | String | Status of Trip |
Location | String | Location |
Datetime | String | Datetime |
Error Code | Status |
0 | Fail |
1 | Success |
Sample Response
Success message[
{
"root": {
"VehicleData": [
{
"Status": "XXXXX",
"Speed": 0,
"Trip": "OFF",
"Latitude": "--",
"GPS": "NA",
"Longitude": "--",
"Vehicle_No": "XXXX",
"Invoice No": "XXXXXX",
"Tranporter_Name": "XXXXX",
"GPSActualTime": "--",
"Trip_status": "Other",
"Location": "XXXXXXX",
"Datetime": "--"
},
{
"Status": "XXXXX",
....
}
]
FAIL
{
"root": {
"VehicleData": [
]
},
"error": "This API service is not available for you."
}
FAIL
{
"root": {
"VehicleData": [
]
},
"error": "Invalid Username/Password"
}
FAIL
{
"root": {
"VehicleData": [
]
},
"error": "Invalid post request body. Please provide String JSON array as request body."
}
FAIL
{
"root": {
"VehicleData": [
]
},
"error": "The call exceeded the limit of one call per one hour"
}
FAIL
{
"root": {
"VehicleData": [
]
},
"error": "No such vehicle found."
}
Response codes
Code | Description |
---|
Error codes
Code | Name | Description |
---|