A Simple GPS Application Based on Microsoft.WindowsMobile.Samples.Location

简介:

在之前的文章A Windows Mobile GPS Application Sample – Using Fake GPS中,讲述了如何利用Fake GPS以及Windows Mobile 6.0 Professional SDK自带的GPS Sample代码,在Windows Mobile 6.0 Professional Emulator上实现GPS接收功能。大家知道,仅仅有经度纬度等信息是不够的,对于我们来说,建立在经纬度信息之上的周边地图信息才是有用的。

Joel Ivory Johnson"Windows Mobile Power Management中,给出了一个有意思的应用,那就是通过类似于指南针的方式来显示当前运动的方向。可以设置离目的地一个特定距离时,发出声音通知。这就适合于那种熟悉路况,在到达目的地之前几分钟,给某人打电话通知的情形。不知道目前很多市场上的导航软件中有没有这种功能。程序的界面如下图1所示:

1:程序运行界面

红色的罗盘,紫色的指针,就是表示目前的运动方向。这个参数可以从GPS接收机的返回数据中获得。

同样,我们可以使用Fake GPS来测试程序,方法和A Windows Mobile GPS Application Sample – Using Fake GPS中所描述的类似。

该程序在模拟器上的演示视频可以在Youtube上观看。如果有朋友有兴趣要自己修改的,可以从这里下载代码:GpsPerimeter.rar

需要注意的是,在编译之前,要添加对Microsoft.WindowsMobile.Samples.LocationWin32的引用,这两个dll位于Debug文件夹下。

Good Luck


本文转自施炯博客园博客,原文链接:http://www.cnblogs.com/dearsj001/archive/2009/01/07/1371206.html,如需转载请自行联系原作者

相关文章
|
云计算
Google Earth Engine(GEE)——Error: Exported bands must have compatible data types; found inconsistent
Google Earth Engine(GEE)——Error: Exported bands must have compatible data types; found inconsistent
453 0
Google Earth Engine(GEE)——Error: Exported bands must have compatible data types; found inconsistent
virus scan on attachment in WebUI CRM
virus scan on attachment in WebUI CRM
93 0
virus scan on attachment in WebUI CRM
|
SQL 关系型数据库 MySQL
Database Visualization using Metabase Part 2 - Use Metabase to Get Insights
In this tutorial, we will install Metabase on an Alibaba Cloud ECS Ubuntu 16.04 server to achieve data visualization.
2240 0
Database Visualization using Metabase Part 2 - Use Metabase to Get Insights
|
JavaScript NoSQL 前端开发
Speed Up Mobile Apps and Websites with AMP
Find out what AMP is and how you can optimize your website for mobile devices with AMP.
1437 0
Speed Up Mobile Apps and Websites with AMP

热门文章

最新文章