BingRouteResult.Distance Property
Returns the total distance of a route.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v25.1.dll
NuGet Package: DevExpress.Wpf.Map
Declaration
Property Value
Type | Description |
---|---|
Double | A Double value. |
Example
string ProcessRouteResults(List<BingRouteResult> results) {
if (results == null) return "";
StringBuilder sb = new StringBuilder("RouteResults:\n");
for (int i = 0; i < results.Count; i++) {
sb.Append(String.Format("_________________________\n"));
sb.Append(String.Format("Path {0}:\n", i+1));
sb.Append(String.Format("Distance: {0}\n", results[i].Distance));
sb.Append(String.Format("Time: {0}\n", results[i].Time));
sb.Append(ProcessLegs(results[i].Legs));
}
return sb.ToString();
}
See Also