web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : XysqjEdne2yQm66t85Gdar
Power Apps - Building Power Apps
Answered

get gps coordinates

Like (0) ShareShare
ReportReport
Posted on 17 Dec 2018 19:06:13 by 58

i need to have a button when press ill get the gps coordinates in a datacard text input

 

can you hel please ?

  • Community Power Platform Member Profile Picture
    on 16 Jul 2019 at 15:05:14
    Re: get gps coordinates

    This gives me My coordinates.

    What if i want coordinates of another user in my organization.

     

    something like :

    Office365Users.UserProfileV2("abc@xyz.com").Location.Latitude

  • Verified answer
    Community Power Platform Member Profile Picture
    on 18 Dec 2018 at 16:18:02
    Re: get gps coordinates

    Set a button with variables:

     

    UpdateContext({var_currentLat: Location.Latitude})
    ;;
    UpdateContext({var_currentLong: Location.Longitude})

     

    And a label text property :

     

    "Latitude: " & var_currentLat & " Long" & var_currentLong

     

    Press the button see if it works

  • CarlosFigueira Profile Picture
    on 18 Dec 2018 at 16:16:18
    Re: get gps coordinates

    You can set a variable with the GPS coordinates (using the Location signal), and set the Default property of the text input control to use that variable. For example, if you set this expression to the button's OnSelect property:

    UpdateContext({lat: Location.Latitude, lng: Location.Longitude})

    And you set the Default property of the text input control to

    lat & "," & lng

    Then when you press the button the coordinates will be shown in the text input control.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete