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 Platform Community / Forums / Power Apps / From GPS zone to item ...
Power Apps
Answered

From GPS zone to item in database

(0) ShareShare
ReportReport
Posted on by 11

When a user is at a certain location I want the use to get the details of the project at that location.

I want to use to location functions for it. How do I get from a gps location to the right item in my database?

Categories:
  • Verified answer
    Meneghino Profile Picture
    6,949 on at

    Hi @holleman1929

    Let's say your database has two numeric columns for the project location: ProjectLatitude and ProjectLongitude.

    Then you can calculate the distance to the current user position and show all projects where the distance is smaller than a number that you define.  Because trigonometric formulas will not be delegated, and depending if your projects are global or local, then I suggest that you use the simpler approach. For example the following:

    Filter(MyProjects, Abs(ProjectLatitude-Location.Latitude)<X, Abs(ProjectLongitude-Location.Longitude)<Y)

    Where X and Y are degress of angle that you have to define depending on how close you want to be before a project shows up.

     

    If even Abs is not delegated (i.e. you get the blue circle warning) then just use the following:

    Filter(MyProjects,
    ProjectLatitude-Location.Latitude<X, ProjectLatitude-Location.Latitude>-X,
    ProjectLongitude-Location.Longitude<Y, ProjectLongitude-Location.Longitude>-Y
    )

    Please let me know if this helps.

     

     

  • Verified answer
    holleman1929 Profile Picture
    11 on at

    Thank you for this solution. I will test this the coming week and will let you know the outcome.

    I will test both solutions. My preference is the second solution for it is more accurate.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard