Is it possible to create a filter condition that limits records based on distance. For example if have a custom Geocode field on Contact named Location__c I would like the filter to result in a SOQL query like SELECT Id FROM Contact WHERE DISTANCE(Location__c, GEOLOCATION(latitude,longitude), ‘mi’) < miles Ideally I would also like the values for latitude, longitude and miles be fitlerable. I’d like to combine this so that geocoordinates from my position or clicking a certain position on a map limits the model results.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.