function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rajjjjrajjjj 

Pilot feature of using 2 functions DISTANCE and GEOLOCATION using Rest API

I would like to know in order to use this query through REST API....do we need to call salesforce support and enable it.

It was actually in pilot mode and available for Developer Edition and Sandboxes and not for Production.

What actually is pilot feature in Salesforce???

Please clarify!!!!!!

 

SELECT caseNumber, location__latitude__s, location__longitude__s FROM Case
WHERE DISTANCE(location__c, GEOLOCATION(<latitude and longitude coordinates of mobile device>), 'mi') <= 10
rajjjjrajjjj

I have one more question on this....

What exactly is this Location__c????? in Distance function.

 

Swapnil KandekarSwapnil Kandekar
location__c is column of type geolocation on case object. which you need to populate from address fields of case or account of case if any,