Route Distance

Topics: General
Nov 14, 2010 at 10:06 AM

Hi. I  have a little WPF project that use this very nice framework. On this way I want to thank you very much.

Until few versions ago I used this pice of code to make a route.

MapRoute route = GMaps.Instance.GetRouteBetweenPoints(start, end, false, (int)MainMap.Zoom);
if (route != null)
labelRoutePointsKM.Content = "Km=" + Math.Round(route.Distance, 2).ToString("N2");
where start and end are two PointLatLng
My problem is the property Distance is not available anymore.
There is another way to read this information.
The Windows Form version is more powerfull, better developed ?
Thanks a lot !
Nov 14, 2010 at 2:17 PM
Edited Nov 14, 2010 at 2:39 PM

yes it's still here, i guess you use experimental code from optimizations branch

p.s. route.Name contains length info

Nov 14, 2010 at 9:51 PM

yes, you're right. I used the experimental code. I changed with the last Hot Build from 6 nov and the property is still there.

Thanks for route.Name tip.