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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to add GPS to get ...
Power Apps
Unanswered

How to add GPS to get current Location in mobile app

(0) ShareShare
ReportReport
Posted on by 55

Hi All!!

I want to get my current location using GPS and need to store in SharePoint.

How can I achieve this??

Thanks in Advance!!

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Hi @jeniviya ,

     

    Assume you already connected your SharePoint list with PowerApps that you are developing, then you can use "Location" and "Location.Longitude" and "Location.Lattitude" to retrieve the information and of course including adding and editing and saving your location information to your SharePoint.

  • jeniviya Profile Picture
    55 on at

    I tried with  "Location.Longitude" and "Location.Lattitude", But it's not giving exact location /accurate Location.

  • Community Power Platform Member Profile Picture
    on at

    Hi @jeniviya ,

     

    Then you can add "Bing Map" to your connection, use the Longitude and Latitude as the input so that you can have the address... As Longitude and Latitude is only a number...

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi@jeniviya,

    Based on the issue that you mentioned, do you want to get location name based on the "Location.Longitude" and "Location.Lattitude"?

    Could you please share a bit more about the scenario, what is the column type in your SP list to store the location, Text or Location type?

    As we know, the Location type is only editable within the SP list and is read-only in PowerApps. There is no way to update the Location column directly in PowerApps. So I advise that you'd better add Text type columns to store the location name.

    I have a test on my side, please take a try as below.

    How to get Bing Map API Key:

    • Connect to Bing Maps Portal
    • ‘Sign In’ using either ‘Microsoft Account’ or ‘Enterprise Azure Active Directory account’.
    • Go to ‘My account -> My Keys’ and create a new key. (Steps to create new key)
    • Copy the Key which we gonna use in next steps.

    Connect the BingMaps to your App:

    • Paste your API key within the input box

    Inset a Button and a TextInput.

    Set the OnSelect property of the Button as below:

     

    Set(myLocation, BingMaps.GetLocationByPoint(Location.Latitude, Location.Longitude))

     

    Set the Default property of the TextInput as below:

     

    myLocation.name

     

    Add a second button and set the OnSelect property as below:

     

    Patch(MyLocation,Defaults(MyLocation),{Title:1001,Location:TextInput1.Text})

     

    Note: 'MyLocation' is my SP list name. 'The 'Location' is a Text column to store my location.

    16.png

    Hope it could help.

    Best Regards,

    Qi

     

  • wael_khanji Profile Picture
    151 on at

    HI 

     

    please i need your support 

     

    bing.png

  • RJM07 Profile Picture
    801 on at

    If you look at the previous post, by @v-qiaqi-msft. Follow the steps to collect your API Key, you will not be able to use myLocation() until you have the API Key

  • wael_khanji Profile Picture
    151 on at

    Yes , sure i created api and use the key but not work 

  • obxapc Profile Picture
    2 on at

    Is there a way to capture exact location of device in Power Apps so that it can be transmitted to another user's device using Power Apps? Also, this seems to outdated and not working anymore, or I may have just incorrect parameters.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard