/// <summary> /// 위치의 주소 반환 /// </summary> /// <returns></returns> public override CivicAddressPCL GetCivicAddress() { CivicAddressPCL returnValue = null; if (_geoposition == null) { returnValue = _defaultCivicAddress; } else { returnValue = new CivicAddressPCL { City = _geoposition.CivicAddress.City, Country = _geoposition.CivicAddress.Country, PostalCode = _geoposition.CivicAddress.PostalCode, State = _geoposition.CivicAddress.State, Timestamp = _geoposition.CivicAddress.Timestamp }; } return returnValue; }
public override void Init() { _geolocator = new Geolocator(); //_geolocator.MovementThreshold = 1; //_geolocator.ReportInterval = 1; _geolocator.PositionChanged += geolocator_PositionChanged; _defaultGeoPosition = new GeocoordinatePCL { Accuracy = 1.0, Altitude = 13, Latitude = 37.566535, Longitude = 126.977969, Timestamp = DateTime.Now }; _defaultCivicAddress = new CivicAddressPCL { City = "Seoul", Country = "ko-KR", PostalCode = "", State = "", Timestamp = DateTimeOffset.Now }; }