Launch Nokia Maps in Windows Phone 8

依然范特西╮ 提交于 2019-12-04 16:30:50

After investigation, I found the Uri:

private async void launch()
{
    string launchNokiaMaps = "explore-maps://v1.0/?latlon=56.615495,12.1865081&zoom=5";
    await Windows.System.Launcher.LaunchUriAsync(new Uri(launchNokiaMaps));
}

That will lauch the Nokia Maps app.

However you should be careful with that because Nokia Maps is not necessarily installed on Windows Phone 8 devices. For example, HTC devices come with the default "Maps" app.

So if you just want to open the default Maps app, you should use the MapsTask. That will work on every Windows Phone 8 device.

I couldn't find any information on if Nokia Drive subscribes to the new App2app protocols. However, the nokia based maps application has a task launcher that lets you do quite a bit. (Bing Map Task is depreciated)

MapsTask mapsTask = new MapsTask();

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206989(v=vs.105).aspx

I would suggest implementing your own map control using the Maps API and get full control over the user experience.

http://www.developer.nokia.com/Resources/Library/Lumia/#!guide-to-the-maps.html

http://www.developer.nokia.com/Community/Wiki/What%27s_new_in_Windows_Phone_8

Nokia have recently introduced a set of APIs specifically to launch HERE Maps on the device, as well as HERE Drive and HERE Transit.

The API documentation specifies the following use cases:

HERE Launchers are simple to use APIs which enable you to launch HERE applications from your own Windows Phone application, to perform services provided by those applications.

The API is compatible with Windows Phone 8 devices. Additionally the API requires the HERE applications implementing the services being present in the device. In case the API is used without the implementing application being present in the device, then the user will be forwarded to the Application store for obtaining the required application.

Currently there are three HERE applications which are providing the services implemented in the HERE launchers API: HERE Maps, HERE Drive, and HERE Transit.

HERE Maps, Drive, and Public Transport are available worldwide on all Nokia Lumia Phones, and they may be available for other Windows Phones via Windows Phone store.

Code examples (covering use cases such as the one displayed below) can be found here.

In my blog I put some information that could be useful if you want to insert in your WP8 app the capability to start a navigation to a destination.

http://enzocontini.wordpress.com/2013/04/07/how-to-start-a-turn-by-turn-navigation-to-a-destination-from-your-windows-phone-app/

;-) Enzo Contini

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!