AnsweredAssumed Answered

Arcade Distance Function Non-Planar

Question asked by deleted-user-TRj-mR_qEmwV on Mar 6, 2019

The Distance function gives a planar distance. However, I would like the distance accounting for the earth's curvature / coordinate system.. where it is similar to the measuring tool in AGOL. 
Is there another way in arcade to make an expression calculate the distance accounting for the coordinate system & earth's curvature so that it is very similar to the measuring tool in ArcGIS Online?

 

 

I've tried a function (Curvature Testing) like this:
algorithm - Calculate distance between two latitude-longitude points? (Haversine formula) - Stack Overflow 
and it is close to the measuring tool but not quite.

Outcomes