我不知道为什么我的应用程序的GPS精度低于BingMap。 我使用GeoLocator并将精度计数器设置为1. 我也尝试将精度设置为高。 但结果距离我实际所在的地方约500米。 我也尝试BingMap的应用程序,其定位结果是相当准确的,这证实了我的GPS正在工作。 Thx!为什么geoocator的准确性在windows phone 8下很低?
Geolocator geolocator = new Geolocator();
geolocator.DesiredAccuracyInMeters = 1;
Accuracy.Text = geolocator.DesiredAccuracyInMeters.GetValueOrDefault().ToString();
Geoposition position = await geolocator.GetGeopositionAsync(TimeSpan.FromMinutes(1), TimeSpan.FromSeconds(30));
var gpsCoorCenter = new GeoCoordinate(position.Coordinate.Latitude, position.Coordinate.Longitude);
WindMap.SetView(gpsCoorCenter, 15D);
Pushpin pushpin = (Pushpin)this.FindName("MyPushpin");
pushpin.GeoCoordinate = gpsCoorCenter;
你的代码在哪里? –
我已添加代码。 – user3473298