I have two location fields of type Geolocation named point1 and point2. I have one radius field of type Number(6,2). i need to determine whether point2 is located within radius distance from point1 or not. How can this be determined ?
There is a DISTANCE function available so this formula should work:
DISTANCE(Point1__c, Point2__c, 'km') <= RadiusInKm__c
(or use 'mi' for miles).