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

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 ...

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