• mayureshbhoyte
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies
Is it correct if I write- double dist= distance(location__c, geolocation(lat, lng), "km")

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?

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)

 

please help!