using distance function
Is it correct if I write- double dist= distance(location__c, geolocation(lat, lng), "km")
finding distance using geolocation field
I want to find the diatance between two places. I'm creating custom object with a custom field of data type Geolocation. What should I do next?
Geolocation query error
I'm not able to access the field with datatype geolocation. Neither of the querries suggested are working.
Here is the query I'm trying for- SELECT location__c FROM Warehouse__c
And here is the error- An unexpected error occurred. Please include this ErrorId if you contact support: 2071212806-25280 (-1629302653)