Announcements
I am working on an app where I have to mark my attendance within a certain radius using that latitude and longitude properties. How to do that ? Please anyone help.
Hi @Anony1k ,
This will get you the distance your current location is from the target location in Kilometers
With( { _Lat1: YourTargetLatitude _Lat2: Location.Latitude, _Long1: YourTargetLongitude _Long2: Location.Longitude, _Calc: 0.0174532925199432 }, 12742 * Asin( Sqrt( 0.5 - Cos((_Lat1 - _Lat2) * _Calc)/2 + Cos(_Lat1 * _Calc) * Cos(_Lat2 * _Calc) * (1 - Cos((_Long1 - _Long2) * _Calc)) / 2 ) ) )
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps
Where to use this exactly? Can you please explain a bit more.
@Anony1k ,
That is the formula to calculate the disance (which is a radius) from where you are located to wherever you want to be measured from (which is what you asked). All you need to do is put in the target location Latitude and Longitude.
You would use it to show this distance and if applicable compare it with the "certain radius" you mention.
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 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 541
WarrenBelz 434 Most Valuable Professional
Valantis 289