07-22-2019 13:49 PM - last edited 12-17-2021 14:23 PM
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 |
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?
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.
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
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.
Hi agiannakis,
Please see use case in reply above. Hope that helps.
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!