适用于Windows Phone 7的GPS导航服务

时间:2014-05-19 11:12:23

标签: windows-phone-7 windows-phone-8 navigationservice

我正在WP7中为旅行写作申请。是否可以在WP7上使用Bing Maps导航到GPS坐标。

我的意思是我有GPS坐标,按钮"前往"点击它之后,我将有路由到那一点(通过Bing服务)?

2 个答案:

答案 0 :(得分:1)

我没有在Windows Phone 7上测试过这个问题,但是按this MSDN article来判断它也适用于WP 7.1。

以下是样本:

BingMapsDirectionsTask bingMapsDirectionsTask = new BingMapsDirectionsTask();

// You can specify a label and a geocoordinate for the end point.
// GeoCoordinate spaceNeedleLocation = new GeoCoordinate(47.6204,-122.3493);
// LabeledMapLocation spaceNeedleLML = new LabeledMapLocation("Space Needle",     spaceNeedleLocation);

// If you set the geocoordinate parameter to null, the label parameter is used as a   search term.
LabeledMapLocation spaceNeedleLML = new LabeledMapLocation("Space Needle", null);

bingMapsDirectionsTask.End = spaceNeedleLML;

// If bingMapsDirectionsTask.Start is not set, the user's current location is used as the start point.

 bingMapsDirectionsTask.Show();

答案 1 :(得分:1)

您可以使用以下URI方案打开Here Drive(诺基亚):

guidance-drive://v2.0/navigate/destination/?latlon=52.53,13.41&title=Museum

这将切换应用,然后开始导航到52.52/13.41。标题是可选的。

来源:http://developer.nokia.com/resources/library/Lumia/maps-and-navigation/here-launchers/wp-uri-schemes-for-location-applications/drive-guidance.html