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 HH:mm:ss&toDate=dd-MM-yyyy HH:mm:ss
            Request Parameters
| Parameter | Type | Value | Description | 
|---|---|---|---|
| user | String | Account Username | |
| password | String | Account Password | |
| accountID | String | Company Short Name | |
| deviceID | String | Vehicle No | |
| fromDate | String | Start From | |
| toDate | String | 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 
}
  {
  "status": "Fail",
  "Message": "No more than two days"
}
{
  "status": "Fail",
  "Message": "User doesn't exist"
}
{
  "status": "Fail",
  "Message": "Incorrect password"
}
{
  "status": "Fail",
  "Message": "Vehicle Not Found"
}
{
  "status": "Fail",
  "Message": "Company Not Found"
}
Response codes
| Code | Description | 
|---|
Error codes
| Code | Name | Description | 
|---|