dhis2_android_setup_location_services
Configure GPS and location services for the DHIS2 Android app. Set location accuracy, permissions, geofencing, coordinate validation, and offline map support to enhance data collection and tracking capabilities.
Instructions
Configure GPS and location services for DHIS2 Android app
Input Schema
Name | Required | Description | Default |
---|---|---|---|
coordinateCapture | No | ||
geofencing | No | ||
locationAccuracy | Yes | Location accuracy requirements | |
offlineMapping | No | Include offline map support | |
permissions | No |
Input Schema (JSON Schema)
{
"properties": {
"coordinateCapture": {
"properties": {
"accuracyThreshold": {
"description": "Minimum accuracy threshold (meters)",
"type": "number"
},
"timeoutSeconds": {
"description": "Location capture timeout",
"type": "number"
},
"validation": {
"description": "Enable coordinate validation",
"type": "boolean"
}
},
"type": "object"
},
"geofencing": {
"properties": {
"enabled": {
"description": "Enable geofencing capabilities",
"type": "boolean"
},
"radius": {
"description": "Default geofence radius (meters)",
"type": "number"
},
"triggers": {
"description": "Geofence triggers to monitor",
"items": {
"enum": [
"enter",
"exit",
"dwell"
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"locationAccuracy": {
"description": "Location accuracy requirements",
"enum": [
"high",
"balanced",
"low_power",
"passive"
],
"type": "string"
},
"offlineMapping": {
"description": "Include offline map support",
"type": "boolean"
},
"permissions": {
"properties": {
"backgroundLocation": {
"description": "Request background location permission",
"type": "boolean"
},
"coarseLocation": {
"description": "Request coarse location permission",
"type": "boolean"
},
"fineLocation": {
"description": "Request fine location permission",
"type": "boolean"
}
},
"type": "object"
}
},
"required": [
"locationAccuracy"
],
"type": "object"
}