GPS in windows mobile

佐手、 提交于 2020-01-01 18:17:14

问题


How would I go about obtaining the GPS cordinates in a windows mobile application? The sample app that comes with the SDK doesnt seem to work. I also have the wm 6.5 SDK which I heard had GPS stuff but I cant find it. Let me know if you have any good examples.


回答1:


Go with GPS.Net. It's an excellent library, very easy to use and compatible with a whole pile of hardware implementations.

We used it for Windows Mobile and Windows Xp/Vista versions of an application.




回答2:


As of WCE 5.0 microsoft includes a gps intermediate driver which sits in front of the devices gps device and provides an api for retrieving position information.

Main api docs are here

The api you need to use to get a position is documented here

Managed code docs and examples here

IIRC you may need to set up the driver on some devices, i think its a case of telling it which com port the gps device is on. Also I seem to remember that you can set it up on the emulator and give it a track log file and it will return positions based on the contents of the file, for testing purposes.



来源:https://stackoverflow.com/questions/1493253/gps-in-windows-mobile

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