示例#1
0
 public GPLocation(GPLocation loc)
 {
     _id  = loc.getId();
     city = loc.city;
     setLatitudeNorthPositive(loc.GetLatitudeNorthPositive());
     setLongitudeEastPositive(loc.GetLongitudeEastPositive());
     countryCode  = loc.countryCode;
     timezoneName = loc.timezoneName;
     timezone     = loc.timezone;
 }
示例#2
0
 public bool Equals(GPLocation loc)
 {
     return(loc.getCity().Equals(getCity()) &&
            Math.Abs(loc.GetLatitudeNorthPositive() - GetLatitudeNorthPositive()) < 0.01 &&
            Math.Abs(loc.GetLongitudeEastPositive() - GetLongitudeEastPositive()) < 0.01);
 }