【发布时间】:2013-05-21 22:51:09
【问题描述】:
我有几个关于Geolocator 和财产DesiredAccuracy 的问题。
我有方法GetMyPosition:
public async Task<Geoposition> GetMyPosition()
{
Geoposition myGeoposition = null;
Geolocator myGeolocator = new Geolocator();
myGeolocator.DesiredAccuracy = PositionAccuracy.High;
try
{
myGeoposition = await myGeolocator.GetGeopositionAsync();
return myGeoposition;
}
catch (Exception ex)
{
Deployment.Current.Dispatcher.BeginInvoke(() =>
{
MessageBox.Show("Can't get the position");
});
return null;
}
}
1) 为什么
Geolocator.DesiredAccuracy = PositionAccuracy.High;
Geolocator.GetGeopositionAsync();
总是以 400 - 1600 m 的精度返回 Geoposition.Coordinate.PositionSource = Cellular(在诺基亚 Lumia 520 设备上)?
2)在什么设置下我可以得到高精度(50 - 100 m)和PositionSource = Satellite?
3) 如果我的设备上有加载的地图,并且我在设备上激活了飞行模式,那么代码
Geolocator myGeolocator = new Geolocator();
myGeolocator.DesiredAccuracy = PositionAccuracy.High;
try
{
myGeoposition = await myGeolocator.GetGeopositionAsync();
return myGeoposition;
}
会有用吗?没有手机,只有卫星?
4) 坐标精度有多强取决于设备?
提前致谢!
【问题讨论】:
标签: windows-phone-7 geolocation windows-phone-8