Geofence Alerts
This API is meant to get geofence Alerts.
GEThttps://yourdomain.com/webservice?token=getGeofenceAlerts&user=XXX&pass=YYY&Date=dd-MM-yyyy HH:mm:ss
Request Parameters
Parameter | Type | Value | Description |
---|---|---|---|
user | String | It is username and it is Mandatory | |
pass | String | It is password and it is Mandatory | |
Date | String | yyyy-MM-dd | Date of the Geofence Alerts |
Description
Method
getGeofenceAlerts
Request
Request interval:- | Every 1 min |
Acceptance Criteria
This API fetches data only for users below Company Admin.
Response
Key | Format | Mandatory | Description |
vehicle_no | String | yes | Vehicle No |
geofence_alarm_time | String | yes | Geofence alarm time |
geofence_name | String | yes | Geofence name |
geofence_entry_exit_flag | String | yes | entry or exit |
geofence_description | String | yes | Geofence Description |
Sample Response
SUCCESS[
{
"vehicle_no": "xyz_abc",
"geofence_data": [
{
"geofence_alarm_time": "dd-MM-yyyy hh:mm:ss",
"geofence_name": "xyz",
"geofence_entry_exit_flag": "true",
"geofence_description": "abc"
},
{
"geofence_alarm_time": "dd-MM-yyyy hh:mm:ss",
...
}
]
},
{
"vehicle_no": "xyz_abc",
"geofence_data": [
{
"geofence_alarm_time": "dd-MM-yyyy hh:mm:ss",
"geofence_name": "xyz",
"geofence_entry_exit_flag": "true",
"geofence_description": "abc"
},
{
"geofence_alarm_time": "dd-MM-yyyy hh:mm:ss",
...
},
{
"geofence_alarm_time": "dd-MM-yyyy hh:mm:ss",
...
}
]
}
]
FAIL
{
"RESULT": "FAIL",
"ERROR_MSG": "InValid User"
}
FAIL
{
"RESULT": "FAIL",
"ERROR_MSG": "Bad Request."
}
Response codes
Code | Description |
---|
Error codes
Code | Name | Description |
---|