Hello all,
Have any method to calculate two point distance on the road?
For example, I'd like to know the distance value of A and B.
Thanks,
Carol
Hello all,
Have any method to calculate two point distance on the road?
For example, I'd like to know the distance value of A and B.
Thanks,
Carol
Carol,
Thanks for your post and questions.
Following code snippet shows you how to achieve this functionality by using the APIs provided. You probably need to change some parameters if needed.
double distance = targetLineShape.GetLineOnALine(pointA, poitB).GetLength(GeographyUnit.Meter, DistanceUnit.Meter);
Any more questions or concerns please do not hesitate to let me know.
Thanks.
Yale