Coordinates field: no map and check for geolocation services on the mobile device?

Hi !

I have two related questions concerning a DE of type coordinates in a form:

  1. Currently, when we use such a field, the user on the mobile device gets presented with three options for filling it out: write the coordinates, capture the device’s GNSS data, or click on a map to locate the point. The latter option is a bit dangerous in the sens that the user can click anywhere on the map and so satisfy the compulsory data criteria. We can add a rule to check whether the coordinates are within a specific bounding box, but when working on a country-wide program this still leaves too much room for error. So: is it possible to deactivate the showing of the map option ?

  2. Is it possible for DHIS2 to test for location services of the device and if they are switched off, to send the user to the location service config of the device to push them to activate them ?

Moritz

Hi @mlennert

I am not sure this is an option. Would you like to create a feature request on jira, https://dhis2.atlassian.net/jira?

The app already does so. What android version are you using?

Thanks!

1 Like

Hi @Gassim ,

Thank you for coming back to me on this.

I am not sure this is an option. Would you like to create a feature request on jira, https://dhis2.atlassian.net/jira ?

I can do that, yes.

The app already does so. What android version are you using?

I use Android 11.

I agree that it does, but only once I click on the button to request the GPS coordinates. I was wondering whether it was possible to make the app make this check as soon as the form is opened whenever there is a compulsory location field in that form. Or, as an alternative (and that is the first question above) to constrain the user to use the location information coming from the device and not fill it out manually, or point to a place on the map.

https://dhis2.atlassian.net/browse/ANDROAPP-5268

1 Like