GPS Intermediate Driver Does Not Return Valid Results

I am trying to get Lat and Long data from my Windows Mobile 6.5 device using the GPS middleware driver with the following code:

Gps gps = new Gps();
gps.Open();

var pos = gps.GetPosition();

while (!pos.LatitudeValid && !pos.LongitudeValid)
    pos = gps.GetPosition();

gps.Close();

The problem is that I never break the loop! I tried using Bing Maps in the same place and I get instant results using GPSID.

All I need is relative (as within 100 meters) lat and long data. I pulled the GPSID dll from 6.5.3 DTK, so I think that it is the most modern. All the code that accesses GPS is listed above, so if I missed something, let me know!

thank

+3
source share
1 answer

COM-, , . , . .

+1

Source: https://habr.com/ru/post/1795279/


All Articles