Announcements
I need a gallery that shows me all my customers that are near me. So I can see who is near me to pay them a visit and sell them our product
is that possible??
using the location of the device being used
Hi @Khalid_al_bahsh ,
Firstly, you could use Location function to get your own location value.
Here's a doc about location function:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/signals
Secondly, connect with Bing Map connetor.
Try to use BingMaps.GetLocationByAddress function to get every customer's location value.
Here's a doc about BingMaps.GetLocationByAddress function:
https://docs.microsoft.com/en-us/connectors/bingmaps/#get-location-by-address
Then, insert a label to display the distance between the two location.
Try this formula:
ACOS(Cos(Radians(90-Location.Latitude))*Cos(Radians(90-ThisItem.Latitude))+Sin(Radians(90-Location.Latitude))*Sin(Radians(90-ThisItem.Latitude))*Cos(Radians(Location.Longitude-ThisItem.Longitude)))*6371
Then, you could sort the gallery according to the value of the label.
Here's a similar issue for your reference:
https://powerusers.microsoft.com/t5/General-Discussion/Sort-gallery-by-closest-location-after-search-is-it-possible/m-p/183247
Best regards,
Community Support Team _ Phoebe Liu
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 396 Super User 2026 Season 2
Mohsin Ali 323
WarrenBelz 193 Most Valuable Professional