PlaceMatch

public struct PlaceMatch

Describes the place details retrieved from reverse geocoding.

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

    The result describing the reverse geocoded location.

    navigablePosition

    The position of the matched place.

    roadUse

    List of usages of the road.

    matchType

    Information on the type of match.

    geometry

    The geographical geometry of the place match. (where available). The value is nil when ReverseGeocoderOptions.fetchGeometry is false.

    routeNumbers

    The route (or road) number, designation or abbreviation is an identifying numeric (or alphanumeric) designation assigned by a highway authority to a particular stretch of roadway to distinguish it from other routes. Urban roads do not have route numbers, while extra urban roads should have them available, if they exist in the map data.

    speedLimit

    A speed limit defined at the matched road segment.

    boundingBox

    The bounding box of the place match.

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?