/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Point != null)
         {
             hashCode = hashCode * 59 + Point.GetHashCode();
         }
         if (OsmId != null)
         {
             hashCode = hashCode * 59 + OsmId.GetHashCode();
         }
         if (OsmType != null)
         {
             hashCode = hashCode * 59 + OsmType.GetHashCode();
         }
         if (OsmKey != null)
         {
             hashCode = hashCode * 59 + OsmKey.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         if (Street != null)
         {
             hashCode = hashCode * 59 + Street.GetHashCode();
         }
         if (Housenumber != null)
         {
             hashCode = hashCode * 59 + Housenumber.GetHashCode();
         }
         if (Postcode != null)
         {
             hashCode = hashCode * 59 + Postcode.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if GeocodingLocation instances are equal
        /// </summary>
        /// <param name="input">Instance of GeocodingLocation to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(GeocodingLocation input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Point == input.Point ||
                     (Point != null &&
                      Point.Equals(input.Point))
                     ) &&
                 (
                     OsmId == input.OsmId ||
                     (OsmId != null &&
                      OsmId.Equals(input.OsmId))
                 ) &&
                 (
                     OsmType == input.OsmType ||
                     (OsmType != null &&
                      OsmType.Equals(input.OsmType))
                 ) &&
                 (
                     OsmKey == input.OsmKey ||
                     (OsmKey != null &&
                      OsmKey.Equals(input.OsmKey))
                 ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     Country == input.Country ||
                     (Country != null &&
                      Country.Equals(input.Country))
                 ) &&
                 (
                     City == input.City ||
                     (City != null &&
                      City.Equals(input.City))
                 ) &&
                 (
                     State == input.State ||
                     (State != null &&
                      State.Equals(input.State))
                 ) &&
                 (
                     Street == input.Street ||
                     (Street != null &&
                      Street.Equals(input.Street))
                 ) &&
                 (
                     Housenumber == input.Housenumber ||
                     (Housenumber != null &&
                      Housenumber.Equals(input.Housenumber))
                 ) &&
                 (
                     Postcode == input.Postcode ||
                     (Postcode != null &&
                      Postcode.Equals(input.Postcode))
                 ));
        }