GeoGeometry

public struct GeoGeometry

Defines the geographical shape of the reverse geocoding.

Important

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

Lifecycle

  • Creates GeoGeometry.

    Declaration

    Swift

    public init(type: Geometry.GeometryType, coordinates: [[CLLocationCoordinate2D]])

    Parameters

    type

    Type of geometry data.

    coordinates

    Boundary coordinates of a geometry.

Public

  • Type of geometry data.

    Declaration

    Swift

    public let type: Geometry.GeometryType
  • List of coordinates. Represents the outline of a city, country, or land area. It’s 2D-array, because it can represent multipolygon bounds.

    Declaration

    Swift

    public let coordinates: [[CLLocationCoordinate2D]]