PlaceMatch

public struct PlaceMatch

Describes the place matching the requested position.

Lifecycle

  • Creates PlaceMatch.

    Important

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

    Declaration

    Swift

    public init(
        place: Place,
        navigablePosition: CLLocationCoordinate2D,
        roadUse: Set<RoadUse>,
        matchType: MatchType?,
        geometry: Geometry? = nil,
        routeNumbers: [String] = [],
        speedLimit: Measurement<UnitSpeed>? = nil,
        boundingBox: BoundingBox? = nil
    )

    Parameters

    place

    Representation of the address returned in the result.

    navigablePosition

    The position of the matched place.

    roadUse

    List of road usage types at the address.

    matchType

    Information on the type of match.

    geometry

    The geographical geometry of the place match. (where available).

    routeNumbers

    unambiguously identify the street.

    speedLimit

    a speed limit defined at the matched address.

    boundingBox

    a rectangle that contains matched place.

Public

  • Representation of the address returned in the result.

    Declaration

    Swift

    public let place: Place
  • The position of the matched place.

    Declaration

    Swift

    public let navigablePosition: CLLocationCoordinate2D
  • Set of road usage types at the address.

    Declaration

    Swift

    public let roadUse: Set<RoadUse>
  • Information on the type of match.

    Declaration

    Swift

    public let matchType: MatchType?
  • The geographical geometry of the place match. (where available). nil when ReverseGeocoderOptions.fetchGeometry is false

    Declaration

    Swift

    public let boundingBox: BoundingBox?
  • The list of codes used to unambiguously identify the street.

    Declaration

    Swift

    public let routeNumbers: [String]
  • A speed limit if it is defined in the matched place

    Declaration

    Swift

    public let speedLimit: Measurement<UnitSpeed>?
  • The geometry.

    Important

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

    Declaration

    Swift

    public let geometry: Geometry?