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).


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.