views:

224

answers:

2

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.

+2  A: 

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.

fvu
+1  A: 

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.

Matt