-
Notifications
You must be signed in to change notification settings - Fork 1
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
POC: pull GPS coordinates from the device and store them as a field during registration [12h] #1376
Comments
Since our APP runs in browser, we'll have to rely on Chrome to provides access to GPS coordinates (through the Geolocation API, a part of the browser's Web API). For mobile devices (with built-in GPS sensors), Geolocation API fetches coordinates from the sensor, and IP network (Mobile/Wifi). Since mobile devices have GPS sensors enabled as a default, and desktops got internet, so it seems to me that in majority of cases, we'll be able to get coordinates from Chrome.
There are 2 coordinates, 9 digits each. For example:
I don't think it's something that should be filled manually.
I don't think there is a utility that will be able to provide required data in offline mode. |
Demo : #1377 (comment) Also deployed this to CHW env, so you can try it out yourself. |
@anvmn great PoC - for the real feature we would need some way to input GPS data because in addition to bandwidth conditions, there the likely scenario where the patient is at a health facility and not their home. In these case we'd need tp provide an override. I wonder if we could offload this entirely to a third-party app. See here for instance Google Maps on desktop: https://www.loom.com/share/731884e0826e475a86cf0c2f89ddfd13?sid=b57606f3-f61b-41a8-baa8-24affdd3f13e |
Well, if you talk about internet bandwidth, it's not related to GPS.
The thing is that it seems to be too heavy for device to run in offline mode. It would be good if we could try the feature as it is on field and examine the data we receive, and based on that decide on how to proceed. |
Scope for Proof of Concept (POC): E-Heza App GPS Coordinate Acquisition
Objective:
The objective of this Proof of Concept (POC) is to demonstrate the ability of a mobile application to acquire accurate GPS coordinates of the user’s location. Additionally, the app will provide alternative methods for location input, including manual text entry and a map interface, in scenarios where GPS acquisition is unavailable due to bandwidth constraints or technical issues.
Key Features
GPS Coordinate Acquisition
Automatically acquire the user's current location using the device's built-in GPS capabilities.
Display acquired coordinates in real-time within the app interface.
Manual Location Entry
Allow users to input latitude and longitude manually through a dedicated text input field.
Validate input to ensure proper format (e.g., decimal degrees or degrees/minutes/seconds).
Map-Based Location Entry
Integrate a map interface allowing users to select a location by:
Data Storage
Assumptions
This POC will validate the technical feasibility of the proposed functionality and serve as a foundation for future development.
The text was updated successfully, but these errors were encountered: