Skip to main content

How to Use getCurrentLocationAsync()

Call the getCurrentLocationAsync() function provided by the helpers module.
Access the latitude, longitude, and map URL properties of the location object returned by the function:
  • latitude: Represents the user’s current latitude coordinate.
  • longitude: Represents the user’s current longitude coordinate.
  • mapUrl: Provides a URL link to view the user’s location on a map.
Ensure to handle the asynchronous nature of the function appropriately, as the location data may not be immediately available upon invocation.