Activity › Forums › Salesforce® Discussions › What kind of formula is used for geolocation distance calculation in salesforce?

  • What kind of formula is used for geolocation distance calculation in salesforce?

    Posted by Mohit on September 8, 2016 at 2:52 PM

    Hi all,

    What kind of formula is used for geolocation distance calculation in salesforce?

    I am in scenario in which I want to calculate the distance between  pair of longitude and latitude in salesforce.

    Please give suggestion

    PRANAV replied 10 years ago 2 Members · 1 Reply
  • 1 Reply
  • PRANAV

    Member
    September 9, 2016 at 5:25 AM

    Hi Mohit,

    Distance is calculated as a straight line—as the bird flies—regardless of geography and topography between the two points. In reality Salesforce uses the Haversine formula to calculate the great-circle distance between two points.

    Hope this helps you.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos