How can we calculate the distance between two AGSPoints. Previously in runtime SDK 10.x the method `
distanceToPoint` is used,
float len = [agsPoint1 distanceToPoint: agsPoint2];
but i didn't find any related methods in runtime SDK 100.x.
You can use `AGSGeometryEngine`'s
for simple planar distance between two points OR
to get the geodetic distance.
Hope this helps
Thank you Suganya Baskaran. Finally used as below:
return [AGSGeometryEngine geodeticDistanceBetweenPoint1:point1 point2:point2 distanceUnit:AGSLinearUnit.meters azimuthUnit:AGSAngularUnit.radians curveType:AGSGeodeticCurveTypeGeodesic].distance;
Retrieving data ...