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; }
public bool Equals(GPLocation loc) { return(loc.getCity().Equals(getCity()) && Math.Abs(loc.GetLatitudeNorthPositive() - GetLatitudeNorthPositive()) < 0.01 && Math.Abs(loc.GetLongitudeEastPositive() - GetLongitudeEastPositive()) < 0.01); }