我需要得到与我的经度和纬度的地理坐标物体。无法通过new() https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.geolocation.geocoordinate获取地理坐标,一种方法是例如,以下代码
var locator = new Geolocator();
locator.DesiredAccuracyInMeters = 50;
var position = await locator.GetGeopositionAsync();
Geocoordinate Coordinate = position.Coordinate;得到GPS坐标。但我需要我的经度和纬度的地理坐标。
发布于 2015-11-11 00:28:29
您不能创建一个Geocoordinate,因为它是一个密封的只读类.相反,绑定到一个Geopoint,它包含您需要的所有位置信息,而不需要Geocoordinate所拥有的位置服务行李。
public Geopoint Location { get; set; }
Maps:MapControl.Location="{Binding Location}"
https://stackoverflow.com/questions/33639477
复制相似问题