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/geofence/activity?deviceId=5177789777&startTime=1700000000000&endTime=1700000000000https://intouch.mapmyindia.com/iot/apiParameters
deviceIdrequiredid of the device(s) for which you want to fetch the geofence activities. For multiple devices, you can pass comma separated device ids as well in the query string.
5177789777geofenceIdid of the geofence(s) for which you want to fetch the geofence activities done by the device. For multiple geofences, you can pass comma separated geofence ids as well in the query string.
45438787startTimerequiredValue in timestamp. Start time from where you want to fetch the geofence activities
1700000000000endTimerequiredValue in timestamp. End time till where you want to fetch the geofence activities.
1700000000000Build 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/geofence/activity?deviceId=5177789777&geofenceId=45438787&startTime=1700000000000&endTime=1700000000000curl --request GET \
--url 'https://intouch.mapmyindia.com/iot/api/geofence/activity?deviceId=5177789777&geofenceId=45438787&startTime=1700000000000&endTime=1700000000000' \
--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/geofence/activity?deviceId=5177789777&startTime=1700000000000&endTime=1700000000000' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Responses
OK - successful operation
Device Not Found
Bad Request - Invalid ID supplied or invalid data type.
Unauthorized Request. Access to API is forbidden.
Not Found - URL Not Found
200 response fields
dataNo field description in the source contract.
exampledata[].entryLongitudelongitude where the particular device entered the geofence.
77.229463data[].entryLatitudelatitude where the particular device entered the geofence.
28.612964data[].exitLongitudelongitude where the particular device exited the geofence.
77.229463data[].exitLatitudelatitude where the particular device exited the geofence.
28.612964data[].entryTimestamptime at which the device entered the particular geofence.
1700000000000data[].exitTimestamptime at which the device exited the particular geofence.
1700000000000data[].geofenceNamename of the geofence
my geofencedata[].geofenceIdthe id of the geofence where the activity took place
767676data[].deviceIdthe id of the device which is performing the activities w.r.t the geofence
87676{
"data": [
{
"entryLongitude": 28.8765,
"entryLatitude": 56.8765,
"exitLongitude": 38.8765,
"exitLatitude": 46.8765,
"entryTimestamp": 1580105880,
"exitTimestamp": 1580105880,
"geofenceName": "my geofence",
"geofenceId": 767676
}
]
}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/geofence.yaml- SHA-256
03d663d784a8ea9af1a3915cad4395ab716b167774dbf54a73c516bd10bc887a- Normalization
- Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.
- Source record
- Open repository audit