Пример #1
0
 public GPSPoint()
 {
     Date               = DateTime.UtcNow;
     Speed              = new Speed(0);
     Course             = new Course(0);
     Height             = new Altitude(0);
     IgnitionStatus     = Utils.IgnitionStatus.Unknown;
     SourceProvider     = SourceProviders.Unespecified;
     HorizontalAccuracy = 0;
 }
Пример #2
0
 public GPSPoint(DateTime date, float lat, float lon, float speed, SourceProviders source, float ha)
 {
     if (IsValidLat(lat))
     {
         throw new ArgumentOutOfRangeException("lat");
     }
     if (IsValidLon(lon))
     {
         throw new ArgumentOutOfRangeException("lon");
     }
     Date               = date;
     Lat                = lat;
     Lon                = lon;
     Speed              = new Speed(speed);
     Course             = new Course(0);
     Height             = new Altitude(0);
     IgnitionStatus     = Utils.IgnitionStatus.Unknown;
     SourceProvider     = source;
     HorizontalAccuracy = ha;
 }