There could be Scenarios where you don’t really want the full control over how maps behave and want the experts (Bing maps, Nokia Maps and many more) to handle it for your , in that case all you have to do is use is
Windows.System.Launcher.LaunchUriAsync(uri) .Now lets get into details on how to work with each of the major Map apps.
Working with Bing Maps
The Uri Schema to launch the Bing maps is "bingmaps:" and below is the simple code to launch the bing map .private void LaunchBingMaps()
{
// The URI to launch
string uriToLaunch = @"bingmaps:?cp=140.726966~174.006076";
var uri = new Uri(uriToLaunch);
Windows.System.Launcher.LaunchUriAsync(uri);
}
**other supported parameters are bb(bounding box),lvl(zoom level),where,Q(query term),trfc(traffic),rtp(Route).
Launching Other Map apps
If you want to launch any other map apps other than bing maps then
The paramters that you pass to the URI schema are destination.latitude , destination.longitude or destination.name .
sample code snippet to launch the third party map application .
- ms-drive-to :Launches the third party map apps like nokia maps , att maps in the driving Route mode
- ms-walk-to :Launches the third party in the walking Route mode
The paramters that you pass to the URI schema are destination.latitude , destination.longitude or destination.name .
sample code snippet to launch the third party map application .
public void LaunchDrive()
{
// The URI to launch
string uriToLaunch = @"ms-drive-to:?destination.latitude=12.8399390"
+ "&destination.longitude=77.6770030&destination.name=Electonic city";
var uri = new Uri(uriToLaunch);
Windows.System.Launcher.LaunchUriAsync(uri);
}
**if there is no apps install on your phone to handle this URI schema them the user will be taken to the stores to search for the apps that handles this uri schema
**if there are more than one app installed to handle this URI schema then there will be pop up dailog presented to the user to choose the app which needs to handle the schema .

