GeonameAlternates

public struct GeonameAlternates
extension GeonameAlternates: Equatable, Hashable

Alternate names for a geoname and its country and admin divisions.

  • Names for the geoname itself.

    Declaration

    Swift

    public var geoname: AlternateNames
  • Names for the geoname’s country. This will be Some as long as the country is also in the ingested data, which should typically be true.

    Declaration

    Swift

    public var country: AlternateNames?
  • Names for the geoname’s admin divisions. This is parallel to Geoname::admin_division_codes. If there are no names in the ingested data for an admin division, then it will be absent from this map.

    Declaration

    Swift

    public var adminDivisions: [UInt8 : AlternateNames]
  • Declaration

    Swift

    public init(
        /**
         * Names for the geoname itself.
         */geoname: AlternateNames, 
        /**
         * Names for the geoname's country. This will be `Some` as long as the
         * country is also in the ingested data, which should typically be true.
         */country: AlternateNames?, 
        /**
         * Names for the geoname's admin divisions. This is parallel to
         * `Geoname::admin_division_codes`. If there are no names in the ingested
         * data for an admin division, then it will be absent from this map.
         */adminDivisions: [UInt8: AlternateNames])
  • Declaration

    Swift

    public static func == (lhs: GeonameAlternates, rhs: GeonameAlternates) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)