O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying the Route and Itinerary

When a search completes successfully, the resulting route is displayed as a bending line on the map, connecting itinerary waypoints. A separate expandable view displays the detailed itinerary.

Recall that the MapViewModel class’s SearchRoute method populates the list of ItineraryItems using the RouteCalculationResult, as shown in the following excerpt:

Route route = calculationResult.Route;MapRoute = new MapRoute(route);var collection = new ObservableCollection<MapItineraryItem>();foreach (RouteLeg leg in route.Legs){    foreach (RouteManeuver maneuver in leg.Maneuvers)    {        collection.Add(new MapItineraryItem(maneuver));    }}

The MapView presents the itinerary items in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required