首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows Phone 7全球定位系统导航服务

Windows Phone 7全球定位系统导航服务
EN

Stack Overflow用户
提问于 2014-05-19 11:12:22
回答 2查看 64关注 0票数 0

我正在用WP7编写旅游应用程序。是否可以导航到WP7上的必应地图的全球定位系统坐标。

我的意思是,我有GPS坐标,按钮“旅行到”,然后点击它,我将有路线到那个点(由必应服务)?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-05-19 11:40:34

我还没有在Windows 7上测试过这一点,但从这篇MSDN文章来看,它也适用于WP7.1。

这是样品:

代码语言:javascript
复制
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
EN

Stack Overflow用户

发布于 2014-05-19 11:41:14

您可以使用以下URI方案打开这里驱动器(由Nokia提供):

代码语言:javascript
复制
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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23736267

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档