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 :

Geo-Fence Control

Community Power Platform Member Profile Picture Posted by Community Power Pla...

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



Categories:

Comments

  • Chuck1 Profile Picture Chuck1 2
    Posted at
    Geo-Fence Control

    Hi FatimahAIQadib,

    I'm trying to use it for a similar situation, here's how I get it to work:

    I've just discoverd this component. To create an action when someone enters or leaves the radius: set up a boolean varable to act as a trigger when the radius is entered or left, then send an email (or other action) as a result of that trigger variable becoming true or false. I used a label control to contain the boolean true or false. Then, I assigned the true or false value to the variable, varIntheOffice.

    If(
    lblIntheOffice,
    Set(varIntheOffice,true);
    );
    If(
    varIntheOffice,
    Office365Outlook.SendEmailV2("youremail@domain.com","In the Office","You have checked in to the office at" & Now())
    )

    This works great! Hope it helps!

     

    However, it is difficult to get the precise locations of an office. Seems to only work well with large areas and a large radius.

    Let me know if you come up with something better!

  • Chuck1 Profile Picture Chuck1 2
    Posted at
    Geo-Fence Control

    Hi agiannakis,

    Please see use case in reply above. Hope that helps.

  • Chuck1 Profile Picture Chuck1 2
    Posted at
    Geo-Fence Control

    Hi TurnbeNZ,

    I've just discoverd this component. To create an action when someone enters or leaves the radius: set up a boolean varable to act as a trigger when the radius is entered or left, then send an email (or other action) as a result of that trigger variable becoming true or false. I used a label control to contain the boolean true or false. Then, I assigned the true or false value to the variable, varIntheOffice.

    If(
    lblIntheOffice,
    Set(varIntheOffice,true);
    );
    If(
    varIntheOffice,
    Office365Outlook.SendEmailV2("youremail@domain.com","In the Office","You have checked in to the office at" & Now())
    )

    This works great! Hope it helps!

     

    However, the challenge I am having is getting a precise lattitude and longitude in which to enter and exit. Such as when an employee enters the office, I want it to time stamp. But, getting the location that precise seems to be difficult.

  • agiannakis Profile Picture agiannakis 16
    Posted at
    Geo-Fence Control

    Any one has use this app control? it a great idea but some what is not working or (this si more likely) i am use it wrong

  • turnbeNZ Profile Picture turnbeNZ 9
    Posted at
    Geo-Fence Control
    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?
  • FatimahAlQadib Profile Picture FatimahAlQadib 20
    Posted at
    Geo-Fence Control

    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. 

  • breading Profile Picture breading
    Posted at
    Geo-Fence Control

    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?