Skip to main content
Microsoft logo
Power Apps
    • AI Builder
    • Automate processes
    • Azure + Power Apps
    • Build apps
    • Connect data
    • Pages
  • Pricing
    • Overview
    • Become a Partner
    • Find a Partner
    • Find partner offers
    • Partner GTM Resources
    • Blog
    • Customer stories
    • Developer Plan
    • Documentation
    • For IT Leaders
    • Roadmap
    • Self-paced learning
    • Webinars
    • App development topics
    • Overview
    • Issues
    • Give feedback
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • User groups
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Power Apps Community
    • Welcome to the Community!
    • News & Announcements
    • Get Help with Power Apps
    • Building Power Apps
    • Microsoft Dataverse
    • AI Builder
    • Power Apps Governance and Administering
    • Power Apps Pro Dev & ISV
    • Power Apps Portals
    • Connector Development
    • Power Query
    • GCC, GCCH, DoD - Federal App Makers (FAM)
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Community Blog
    • Power Apps Community Blog
    • Galleries
    • Community Connections & How-To Videos
    • Community App Samples
    • Webinars and Video Gallery
    • Canvas Apps Components Samples
    • Kid Zone
    • Emergency Response Gallery
    • Events
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Community Engagement
    • Community Calls Conversations
    • Experimental
    • Error Handling
    • Power Apps Experimental Features
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Power Apps Community
    • Galleries
    • Canvas Apps Components Samples
    • Geo-Fence Control

    Geo-Fence Control

    07-22-2019 13:49 PM - last edited 12-17-2021 14:23 PM

    Anonymous
    Not applicable
    6159 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    Anonymous
    Not applicable
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    Geo-Fence Control

    ‎07-22-2019 01:49 PM

    Geo-Fence Control

    A nonvisual component that signals when the mobile device enters or leaves a particular area within a certain radius. This component will only be visible in the PowerApps Studio and will not render when the app is running.  Given Latitude, Longitude and a radius, this control will compute given the current geo-location of the device whether we are within the specified radius.

    Property Description
    Latitude Sets the latitude of the target location.
    Longitude Sets the longitude of the target location.
    Radius Radius in Kilometer

    Output

    Property Description
    IsWithinRadius Gets a boolean value signaling whether the distance between current location and specified location (Latitude and Longitude) is within the radius.
    Distance Gets the distance in Kilometer between current location and specified location



    Preview file
    143 KB
    GeoFence Component.msapp
    Labels:
    • Labels:
    • Components
    Message 1 of 4
    6,159 Views
    5 Kudos
    Reply
    • All forum topics
    • Previous Topic
    • Next Topic
    breading
    breading
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎09-30-2019 08:06 PM

    Could this component be used in the opposite fashion? For example, lets say I was completing work onsite & I opened my app to close off my task and then any other open work orders could be displayed nearby.

    So instead of comparing my location against a set point, it would compare set points against my location?

    Message 2 of 4
    5,830 Views
    0 Kudos
    Reply
    FatimahAlQadib
    FatimahAlQadib Helper I
    Helper I
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎03-05-2020 05:32 AM

    Thanks @Anonymous for sharing this with us, 

    So, now I am going to import this component into my app, then how to set it up for using? 

    My purpose in this is to use it for attendance for employees, to see if the employee attends in the assigned location or not? So I am going to compare his current location with the predefined location in the app. 

    Message 3 of 4
    5,081 Views
    0 Kudos
    Reply
    turnbeNZ
    turnbeNZ
    Frequent Visitor
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-28-2020 11:04 PM
    I have the control running, it’s great but I can figure out how to have an action when someone enters or leaves the radius?

    Any ideas?
    Message 4 of 4
    3,379 Views
    0 Kudos
    Reply

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Pages
    • Power Automate
    • Power Virtual Agents

    Browse

    • Sample apps
    • Services

    Downloads

    • Windows
    • iOS
    • Android

    Learn

    • Documentation
    • Support
    • Community
    • Give feedback
    • Blog
    • Partners

    • © 2023 Microsoft
    • Follow Power Apps
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks
    California Consumer Privacy Act (CCPA) Opt-Out Icon Your California Privacy Choices