Good day team
We are trying to calculate the distance between two co-ordinates on a polyline by passing point 1 and point 2 as a parameter by using the following code:
GeometryEngine<SPAN class="punctuation token">.</SPAN><SPAN class="token function">DistanceGeodetic</SPAN><SPAN class="punctuation token">(</SPAN>startPoint<SPAN class="punctuation token">,</SPAN> endPoint<SPAN class="punctuation token">,</SPAN> LinearUnits<SPAN class="punctuation token">.</SPAN>Meters<SPAN class="punctuation token">,</SPAN> AngularUnits<SPAN class="punctuation token">.</SPAN>Degrees<SPAN class="punctuation token">,</SPAN> GeodeticCurveType<SPAN class="punctuation token">.</SPAN>Geodesic<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN>Distance<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
The result of the above method is only returning the straight line distance instead of considering curves etc. This really pushing our distance calculation off. Could you please advise the best suitable method for the above purpose.
Thanking you in advance.