O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

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

Launching GPS-based navigation

Do you know that you can launch the built-in navigation directly from your application to allow a user to be navigated to the target? You will learn how to do it in this recipe.

As an example, you will create a page with two text boxes (for the latitude and longitude of the destination) and a button. After clicking on the button, the values from the textboxes will be read and used for launching navigation to the target point.

Getting ready

To step through this recipe, you need only the automatically generated project.

How to do it...

To prepare an example that launches the GPS-based navigation to the given coordinates, perform the following steps:

  1. Add two text boxes (where a user can type the latitude and longitude of ...

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