Device Distance
This API is meant to return the specific vehicle device information based on provided data
GEThttps://yourdomain.com/webservice?token=getDeviceDistance&user=XX&password=YY&accountID=AA&deviceID=BB&fromDate=dd-MM-yyyy&toDate=dd-MM-yyyy
Request Parameters
Parameter | Type | Value | Description |
---|---|---|---|
user | String | Account Username | |
password | String | Account Password | |
accountID | String | Company Short Name | |
deviceID | String | Vehicle No | |
fromDate | Long | Start From | |
toDate | Long | Till Date |
Description
Method Name
getDeviceDistance
Response Description
Key | Format | Description |
Status | String | Request Status |
StartLong | Double | Starting Position Longitude |
ReceivedTime | String | Data recieved time |
MotionEndTime | String | To Date mentioned in request |
StartLat | Double | Starting Position Latitude |
MotionStartTime | String | From Date mentioned in request |
Distance | Double | Vehicle Covered Distance |
EndLat | Double | Ending Position Latitude |
EndLong | Double | Ending Position Longitude |
Error Code | Status |
0 | Fail |
1 | Success |
Sample Response
Success message{
"Status": "Success",
"StartLong": -94.420307,
"ReceivedTime": "",
"MotionEndTime": "",
"StartLat": 44.968046,
"MotionStartTime": "",
"Distance": 0.0,
"EndLat": 44.968046,
"EndLong":-94.420307
}
FAIL
{
"status": "Fail",
"Message": "No more than two days"
}
FAIL
{
"status": "Fail",
"Message": "User doesn't exist"
}
FAIL
{
"status": "Fail",
"Message": "Incorrect password"
}
FAIL
{
"status": "Fail",
"Message": "Vehicle Not Found"
}
FAIL
{
"status": "Fail",
"Message": "Company Not Found"
}
Response codes
Code | Description |
---|
Error codes
Code | Name | Description |
---|