Currently, the “Select Address” option requires users to manually type their location.
To improve user experience, we can add browser geolocation support that prompts users with the standard Allow/Block popup.
- On clicking Select Address, the browser will request the user’s location using the Geolocation API.
- If allowed, the app should automatically fetch the latitude/longitude and use a reverse geocoding service (e.g., OpenStreetMap Nominatim or Google Maps API) to autofill the user’s address in the input field.
- If blocked/denied, the app will gracefully fallback with an alert or manual entry option.