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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Location of user

(2) ShareShare
ReportReport
Posted on by 37

Hi. 

Can anyone explain, how in Powerapps sample apps - Site Inspector, the address field is being updated using the GPS option? Because i am also trying to do the same for my app.

Categories:
I have the same question (0)
  • Steelman70 Profile Picture
    873 on at
    Hi , it's done using the Location function.
    More details in the documentation.
  • Mod_admin Profile Picture
    37 on at

    Using the location function, you get the latitude and longtude How to convert that into address and show it on a map?

  • Steelman70 Profile Picture
    873 on at
    Hi again, nothing out of the box I think. You probably need to use some custom api like google maps. Or wait for there to be one in PowerApss
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Mod_admin,

     

    In the Site inspector template app, the user location is calling bing map REST API to convert the latitude and longitude from location function into actual address.

    The formula used in the corresponding map image is the following:

    "http://dev.virtualearth.net/REST/v1/Imagery/Map/Road/" 
    & Location.Latitude 
    &"," & Location.Longitude & "/15?mapSize=400,400&pp=" & Location.Latitude
    &"," & Location.Longitude
    &";"
    &"
    &key=wg9mvoY3hN6AVoUPutnZ~y8lVN1szjh6d5E8Vs8h48A~AtTHu5h2www6JiWYy5l3eKT8Cfl7SDg4f4jJUiwVL9beAGFEPcLyCe2iBvkF--_9"

    51.PNG

    And the template is using the following URL format:

    Static Map Data

    Combining the point value with the Bing map URL, then put the combined URL with the Image property of an image control, then you would get the location shown as in the template.

    For the location function, check:

    Location in PowerApps

     

     

    Regards,

    Michael

  • Mod_admin Profile Picture
    37 on at

    Hi @v-micsh-msft,

    Thanks a lot. Calling the static bing map api worked. 

    Also can i store the address hence obtained(in the image using Map API) as text in a sharepoint list?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-micsh-msft ,

     

    Thanks for this solution. Can you please also let us know if its possible to capture these location details in a Sharepoint list and how.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I'm also facing the same. Set(Addresses, Table({Address: Text(Location.Latitude & " " & Location.Longitude) , Pin : MarkerArrow})); I couldn't able to display location address only with location latitude and location longitude. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard