public EarthquakeInstance(DateTime occurrenceTime, double magnitude, ILocationCoordinates coordinates)
        {
            OccurrenceTime = occurrenceTime;
            Magnitude      = magnitude;
            Coordinates    = coordinates;

            ClosestCities = WorldLocations.GetClosestLocationNames(coordinates.Latitude, coordinates.Longitude, 3);
        }
예제 #2
0
 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);
 }
예제 #3
0
 public WorldLocation(ILocationCoordinates coordinates, string name)
 {
     Coordinates = coordinates;
     Name        = name;
 }
예제 #4
0
 private void _locationService_MyLocation(object sender, ILocationCoordinates e)
 {
     CurrentPosition.Latitude  = e.Latitude;
     CurrentPosition.Longitude = e.Longitude;
 }