MapCode

public struct MapCode

Describes characteristic of the applied map code

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Creates GeoGeometry

    Declaration

    Swift

    public init(type: MapCodeType, fullMapCode: String, territory: String? = nil, code: String? = nil)

    Parameters

    type

    Specifies the format of the map code.

    fullMapCode

    An extended version of the map code.

    territory

    Related geographical territory.

    code

    A shorter version of the map code.

Public

  • Specifies the format of the map code.

    Declaration

    Swift

    public let type: MapCodeType
  • An extended version of the map code.

    Declaration

    Swift

    public let fullMapCode: String
  • Related geographical territory.

    Declaration

    Swift

    public let territory: String?
  • A shorter version of the map code.

    Declaration

    Swift

    public let code: String?