In the Windows Phone 8 SDK, two classes are fundamental in calculating a route: The
GeocodeQuery class allows you to convert a street address to a
GeoCoordinate, and the
RouteQuery class finds the shortest path between two
GeoCoordinates, with any number of way points in between.
RouteQuery class are located in the namespace
In the sample for this section, a custom class named
RouteCalculator is used to calculate the route between two street addresses. The
RouteCalculator class has a single method named
CalculateAsync (see Listing 18.4).
GeocodeQuery class has two required properties: