public EarthquakeInstance(DateTime occurrenceTime, double magnitude, ILocationCoordinates coordinates) { OccurrenceTime = occurrenceTime; Magnitude = magnitude; Coordinates = coordinates; ClosestCities = WorldLocations.GetClosestLocationNames(coordinates.Latitude, coordinates.Longitude, 3); }
private void LocationService_MyLocation(object sender, ILocationCoordinates e) { Latitude = e.Latitude; Longitude = e.Longitude; Timestamp = DateTime.Now; //Coordinates = locationService.GetAllCoordinates(); Coordinates.Add(new Coordinate { Timestamp = Timestamp, Latitude = Latitude, Longitude = Longitude }); //Coordinates.Add(new Coordinate { Latitude = e.Latitude, Longitude = e.Longitude }); DistanceTravelled = locationService.GetDistanceTravelled(e.Latitude, e.Longitude); }
public WorldLocation(ILocationCoordinates coordinates, string name) { Coordinates = coordinates; Name = name; }
private void _locationService_MyLocation(object sender, ILocationCoordinates e) { CurrentPosition.Latitude = e.Latitude; CurrentPosition.Longitude = e.Longitude; }