getgeofenceLog

GET request: This API is used to access the alarms logs of a vehicle in an account on Intouch.

Input:

  • License_key: the REST API license key allocated to you. This is part of URL structure.
  • geofenceId : Optional Parameter. Multiple entries supported
  • startTime : Optional parameter. startTime needs to be fed as epoch timestamp according to the user choice.If not specified, automatically epoch timestamp of 24 hours before the endTime is taken into consideration.
  • endTime : Optional parameter.endTime needs to be fed as epoch timestamp according to the user choice.If not specified, automatically current epoch timestamp is taken as input.
  • deviceId: optional- Multiple entries supported
Output:
  • geozoneID
  • geofenceName
  • deviceid
  • lat
  • lng
  • timestamp : Epoch time of alarm generation
  • entryexit: This will show type of alarm
    0 – Alarm for the Exit
    1 – Alarm for Entry

Example URL Response:
https://apis.mapmyindia.com/intouch/v1/<licence_key>>/getGeofenceLog?startTime=1476599502&endTime= 1476772302&geofenceId=6247

{  "message": "success",  "logs": [  {  "geofenceId": 6251,  "geofenceName": "Home",  "deviceId": 281,  "lat": 28.6187,  "lng": 77.2865,  "timestamp": 1478066439,  "entryexit": 0  }  ],  "status": 200  }