cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Wapfunz
Level: Powered On

GeoLocation - how do I set up in a Powerapp?

Hi,

 

Need a simple step by step guide for a dummie like me.

I have set up/added a column called GeoLocation to my SharePoint list (that part worked). The column shows up in the Fields in the PowerApp.

I would like to use the GPS of the phone and save the location it gives.

How do I go about doing that from here...?

Can I show a map also or do I really need to?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Draax
Level: Powered On

Re: GeoLocation - how do I set up in a Powerapp?

Hi,
Put a text field with the text value: Location.Altitude to get the altitude of the device.

Check here for more information: https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/signals

Also if you're in EU don't forget to run this by HR if you're using the location of an employee.

-Draax
5 REPLIES 5
Draax
Level: Powered On

Re: GeoLocation - how do I set up in a Powerapp?

Hi,
Put a text field with the text value: Location.Altitude to get the altitude of the device.

Check here for more information: https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/signals

Also if you're in EU don't forget to run this by HR if you're using the location of an employee.

-Draax
Wapfunz
Level: Powered On

Re: GeoLocation - how do I set up in a Powerapp?

Hi,

My first stumbling block was using a reserved name for a column - used Location - changed it to Site_Location

Arrrrrrrrrrrrr the beauty of reserved syntac for a start - lesson somewhere to be learnt.

 

Inserted a text field (Label) and just used the syntax "Location" - the app accepted it as a valid term.

Return the latitude and longitude of the curent location, as a record.

 

However nothing happened - no values show.

 

 

Draax
Level: Powered On

Re: GeoLocation - how do I set up in a Powerapp?

Would you mind sharing a screenshot or your code?

 

 

-Draax

Wapfunz
Level: Powered On

Re: GeoLocation - how do I set up in a Powerapp?

Hi,

 

Per attached screen shot.

As a test I put "Connection.Connected" as the text for Label_Location_Cordinates and it returned true.

"Location" is recognised, however Location.Latitude" is not.

 

The two App Checker are from the GeoLocation per second screen shot.

 

Is a data connection required for use of the GPS in the phone?

Highlighted
Wapfunz
Level: Powered On

Re: GeoLocation - how do I set up in a Powerapp?

And the problem is with the use of the reserved name - "Location"

Yup - once the column is deleted all works well. (I can reinstate a column to capture what is required under a different name - Site_Location - a text entry descriptive feild.

 

Note to self: Find out the list of all Reserved Names!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!