Retrieve Driving Directions Using the BingMapsDirectionsTask
The Bing Maps directions task launches the built-in Maps application and displays driving directions between two points. A start and an end point can be specified using the task’s Start
and End
properties, which are of type LabeledMapLocation
. If only one location is specified, the user’s current location is used in place of the unspecified location.
Note
At least one of the Start
or End
properties must be specified, or an InvalidOperationException
is thrown when you call the BingMapsDirectionsTask.Show
method.
Both Start
and End
properties allow you to specify a string label and geographic coordinates indicating the latitude and longitude of the location. If you omit the geographic ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.