Get current GPS location in PowerApps
To get the current GPS location in PowerApps, you can use the Location function.
Here's an example of how you could use this function:
- Add a button to your app and give it a label such as "Get GPS Location".
- In the OnSelect property of the button, add the following formula:
- Add a Label control to your app and bind its Text property to the LocationValue variable.
Set(LocationValue, Location.Latitude & "," & Location.Longitude)
When you run the app and tap the button, the Label control should display your current GPS location in the form of latitude and longitude.
Note: The Location function requires that you grant PowerApps access to your device's location services.
Comments
Post a Comment