Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use GPS sensor data to set a location field #1579

Closed
sleidig opened this issue Dec 8, 2022 · 2 comments · Fixed by #2651
Closed

use GPS sensor data to set a location field #1579

sleidig opened this issue Dec 8, 2022 · 2 comments · Fixed by #2651
Assignees
Labels
released on @master managed by CI (semantic-release) released managed by CI (semantic-release) Type: Feature new user-facing feature

Comments

@sleidig
Copy link
Member

sleidig commented Dec 8, 2022

As a social field worker I want to record the location of a participant's home with the GPS of my device to quickly document it even if no clear address exists.

Objective
The "location" field datatype currently allows the user to either type a written address and search its geolocation or open an (OpenStreetmap) visual map and manually place a pin on that map. If no accurate streetnames exist or users are mostly doing field visits, this is not possible or convenient. Instead, there should be the option to use GPS location also.

With this new feature, the location field in the app will show an additional location-crosshairs icon next to the address input/search box. When the user clicks on that icon, the device's GPS sensor is accessed (if available) and the current location is loaded and set for the location field. The user sees a preview of the location in the map visualization and confirms this.

The behaviour and result of using the GPS sensor should be the same as clicking on the map to manually place a pin/location. (e.g. reverse-lookup of address should be supported to suggest a written address for display or otherwise a label is displayed that explains the location was fixed through GPS; see #1563 / #139).

image

Proposed Solutions & Alternatives

  • use PWA (progressive web app) GPS sensor APIs to access the current device location
  • allow user to set these coordinates similar to how they can set coordinates by clicking on the map popup
  • encapsulate the GPS access logic into a new Angular Service for easier testing and reuse
@sleidig sleidig added the Type: Feature new user-facing feature label Dec 8, 2022
@sleidig sleidig moved this to Triage in All Tasks & Issues Dec 8, 2022
@sleidig sleidig moved this from Triage to Todo in All Tasks & Issues Jan 9, 2023
@sleidig sleidig moved this from Todo (ready for work) to Triage / Analysis in All Tasks & Issues Feb 12, 2024
@sleidig sleidig added this to the Advanced Event Management System milestone Oct 24, 2024
@rathorevaibhav rathorevaibhav moved this from Todo (ready for work) to In Progress in All Tasks & Issues Nov 6, 2024
@sleidig sleidig self-assigned this Nov 11, 2024
@Ayush8923 Ayush8923 moved this from In Progress to In Review in All Tasks & Issues Nov 14, 2024
@aam-digital-ci
Copy link
Collaborator

🎉 This issue has been resolved in version 3.43.0-master.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci aam-digital-ci added the released on @master managed by CI (semantic-release) label Nov 20, 2024
@aam-digital-ci
Copy link
Collaborator

🎉 This issue has been resolved in version 3.43.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci aam-digital-ci added the released managed by CI (semantic-release) label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released on @master managed by CI (semantic-release) released managed by CI (semantic-release) Type: Feature new user-facing feature
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants