This operation was normalized from a MapmyIndia-generation specification. Validate its current Mappls host, path, package entitlement, authentication generation, and commercial availability before production use.
Call the operation
https://intouch.mapmyindia.com/iot/api/device/1/events?startTime=1700000000000&endTime=1700000000000https://intouch.mapmyindia.com/iot/apiParameters
deviceIdrequiredID of the device for which the events need to be fetched
1startTimerequiredThe starting timsstamp from which the events need to be fetched.
1700000000000endTimerequiredThe end timestamp till which the events need to be fetched.
1700000000000skipPeriodDefined in minitues. For example, if say 2 is passed then each returned data packet will have a minimum difference of 2 mins.
2Build your request in eight languages
Change source-backed examples once, validate required inputs, and copy the synchronized cURL, JavaScript, Python, Java, C#, Go, PHP, or Ruby request. Credentials remain environment references, and this page never sends a provider request.
https://intouch.mapmyindia.com/iot/api/device/1/events?startTime=1700000000000&endTime=1700000000000&skipPeriod=2curl --request GET \
--url 'https://intouch.mapmyindia.com/iot/api/device/1/events?startTime=1700000000000&endTime=1700000000000&skipPeriod=2' \
--header "Accept: application/json" \
--header "Authorization: Bearer ${MAPPLS_INTOUCH_TOKEN}"Credential-safe by constructionSet MAPPLS_INTOUCH_TOKEN only in your trusted runtime. Code generation stays local. Sandbox execution sends only bounded fixture inputs to this developer platform and never reads a credential or calls Mappls.
Send a production-shaped request
Examples use environment-backed access tokens, explicit timeouts where supported, status checks, and JSON bodies derived from the source schema. Replace sample identifiers and coordinates with values from your application.
curl --request GET \
--url 'https://intouch.mapmyindia.com/iot/api/device/1/events?startTime=1700000000000&endTime=1700000000000' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Responses
OK - successful operation
Device Not Found
Bad Request - Invalid device ID supplied or invalid data type. For example, input attribute "id" is integer but string value gets passed.
Unauthorized Request. Access to API is forbidden.
Not Found - URL Not Found
200 response fields
dataNo field description in the source contract.
exampledata.drivingBehaviourCountNo field description in the source contract.
exampledata.drivingBehaviourCount.haCountHarsh Acceleration Count
2data.drivingBehaviourCount.hbCountHarsh Breaking Count
1data.drivingBehaviourCount.hcCountHarsh Cornering Count
3data.summaryNo field description in the source contract.
exampledata.summary.distanceTotal Drive Distance in KMs
23.67data.summary.durationTotal drive duration in seconds
300data.summary.avgSpeedAverage speed in km/hr
45.54data.summary.startAddressNo field description in the source contract.
213, 1st Cross Road, HAL Stage 2, Indiranagar, Bengaluru, Karnataka. 15 m from The Bodhi Tree pin-560038 (India)data.summary.endAddressNo field description in the source contract.
3645, 13th F Main Road, Dupanahalli, Indiranagar, Bengaluru, Karnataka. 12 m from Meenakshi Enclave pin-560038 (India)data.summary.startTimestampStart time of the device i,e the time at which the data first came from the device for the selected day.
1700000000000data.summary.endTimestampEnd time of the device i,e the time at which the last data came from the device for the selected day.
1700000000000data.positionListNo field description in the source contract.
exampledata.positionList[].addressAddress of the location event
213, 1st Cross Road, HAL Stage 2, Indiranagar, Bengaluru, Karnataka. 15 m from The Bodhi Tree pin-560038 (India)data.positionList[].timestampNo field description in the source contract.
1700000000000data.positionList[].longitudeNo field description in the source contract.
77.229463data.positionList[].latitudeNo field description in the source contract.
28.612964data.positionList[].headingdevice heading direction in degrees from North.
298data.positionList[].speedDevice speed at this particular location
33.33data.positionList[].ignitionwhether vehicle ignition is On or Off. 0 means ignition is OFF and 1 means ignition is ON.
0data.positionList[].powerSupplyVoltagebattery voltage value in milli volts.
12769data.positionList[].gpsFixGPS is fix or not for the device. true meanse GPS is fixed and false means GPS is not fixed.
truedata.positionList[].validGPSChecks whether GPS is valid or not.Allowed: true · false
truedata.positionList[].accOffchecks for whether adaptive cruise control is enabled or not.Allowed: true · false
truedata.positionList[].movementStatusChecks the movement status of the device. 1:Moving 2:Idle 3:Stopped 4:Towing 5:No Data 6:Power Off 7:No Gps 8:On Trip 9:Free Vehicle
1data.positionList[].durationTimeduration(in secsonds) time spent at current location
1700000000000data.positionList[].greenDriveTypeHA(Harsh acceleration), HB(Harsh Breaking), HC(Harsh Cornering)
HAdata.positionList[].tripStatus0 - On Trip, 1 - Free VehicleAllowed: On Trip · Free Vehicle
0data.positionList[].mobileInfoNo field description in the source contract.
exampledata.positionList[].mobileInfo.locationSource1 - GPS connected, distanceaccuracy less that 50mtrs, 2 - GPRS connected, distance accracy more than 50 mtr.Allowed: GPS Connected · GPRS Connected
28.612964,77.229463data.positionList[].mobileInfo.mockLocationtrue - mock location being sent by the user. false - real location being sent by the user.
28.612964,77.229463data.positionList[].mobileInfo.isAirplanemodeChecks whether mobile's airplane mode is ON(i,e true) or OFF(i,e false)
truedata.positionList[].mobileInfo.callStatus0-CALLSTATEIDLE, 1-CALLSTATERINGING, 2-CALLSTATEOFFHOOKAllowed: CALL_STATE_IDLE · CALL_STATE_RINGING · CALL_STATE_OFFHOOK
0data.positionList[].mobileInfo.deviceStatusstatus of the device in the current location. Values as mentioned in the below enum are possible.Allowed: IN_VEHICLE · ON_BICYCLE · ON_FOOT · STILL · UNKNOWN · TILTING · WALKING · RUNNING
0data.positionList[].mobileInfo.phoneEventChecks the location permission that the user enables/disables in the mobile phone.Allowed: EVENT_LOCATION_PERMISSION_DENIED = 5 · EVENT_LOCATION_PROVIDER_OFF = 6 · EVENT_LOCATION_STOP_PROGRAMMATICALLY = 7
5data.positionList[].alertsNo field description in the source contract.
exampledata.positionList[].alerts.deviceIdWill come only in case of /alarmLog GET API response
8989data.positionList[].alerts.timestampTime at which the alert got generated
1700000000000data.positionList[].alerts.latitudeNo field description in the source contract.
28.612964data.positionList[].alerts.longitudeNo field description in the source contract.
77.229463data.positionList[].alerts.addressLocation address at which the alarm got generated
237, Okhla Industrial Estate Phase 3, New Delhi, Delhi. 19 m from Wipro BPO Corporate Office pin-110020data.positionList[].alerts.alarmTypeType of alarm to create. Following are the alarm types & their corresponding IDs. IGNITION: 21, OVERSPEED: 22, UNPLUGGED: 23, PANIC: 24, GEOFENCE: 26, STOPPAGE: 27, IDLE: 28, TOWING: 29, GPRS CONNECTIVITY: 126, VEHICLE BATTERY: 129, MILEAGE: 133, GPS CONNECTIVITY: 146, DISTANCE COVERED: 151, INTERNAL BATTERY VOLTAGE:161
28data.positionList[].alerts.limitAlarm limit as set in the config. For example, if an overspeed alarm set on limit of 44 km/hr in the alarm config setting, then this attribute will return 44 km/hr
44data.positionList[].alerts.durationAlarm duration limit as set in the alarm config section. For example, if duration of overspeed alarm is set as 20 secs, then the alarm will generate when the vehicle overspeeds for a duration of 20 secs
20data.positionList[].alerts.actualLimitThe actual data received from the device at that particular moment when the alarm got generated
57data.positionList[].alerts.actualDurationActual duration for which the device breached the alarm config limit
25data.positionList[].alerts.severity0 - Low Severity. 1 - High Severity
1data.positionList[].alerts.dataDescribes the state of the alarm. IGNITION(type = 21), 0: OFF & 1: ON. AC(type=25), 0: OFF, 1: ON. GEOFENCE(type=26), 1: Entry & Exit Geofence 2: Entry Geofence, 3: Leaving Geofence & 4: Long Stay In Geofence
1data.positionList[].alerts.geofenceIdThis is the ID of the geofence for which the alarm got generated. This will come only when the 'type' field return 26 i,e geofence.
987876{
"data": {
"drivingBehaviourCount": {
"haCount": 2,
"hbCount": 1,
"hcCount": 3
},
"summary": {
"distance": 23.67,
"duration": 300,
"avgSpeed": 45.54,
"startAddress": "213, 1st Cross Road, HAL Stage 2, Indiranagar, Bengaluru, Karnataka. 15 m from The Bodhi Tree pin-560038 (India)",
"endAddress": "3645, 13th F Main Road, Dupanahalli, Indiranagar, Bengaluru, Karnataka. 12 m from Meenakshi Enclave pin-560038 (India)",
"startTimestamp": 1577644204,
"endTimestamp": 1577684913
},
"positionList": [
{
"address": "213, 1st Cross Road, HAL Stage 2, Indiranagar, Bengaluru, Karnataka. 15 m from The Bodhi Tree pin-560038 (India)",
"timestamp": 1574937348,
"longitude": 77.74937348,
"latitude": 55.74937348,
"heading": 298,
"speed": 33.33,
"ignition": 0,
"powerSupplyVoltage": 12769
}
]
}
}Operate it safely
This operation observes durable platform state. Preserve resource identifiers and account for pagination, delay, and eventual consistency.
Contract provenance
- Source file
contenthub/dochub/mapmyindia-intouch-rest-apis/custom/Intouch-Telematics-Swagger-25052020.json- SHA-256
54637441ab0c8ea447e121ba33afbc464e714a3dbceec49d4b70dabe9778657f- Normalization
- Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.
- Source record
- Open repository audit