City

public struct City : Codable, Equatable, Hashable

Type that holds information about the reqeuest’s nearest city

  • id

    The ID assigned to the city

    Declaration

    Swift

    public let id: Int
  • The name of the city

    Declaration

    Swift

    public let name: String
  • The location of the city

    Declaration

    Swift

    public let location: CLLocationCoordinate2D
  • The country code of the city

    Declaration

    Swift

    public let countryCode: String