PlaceMatch

public struct PlaceMatch

Describes the place details from reverse geocoding service.

Lifecycle

  • Creates a new PlaceMatch.

    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

    The type of geographical object match, for example an address or a street.

    geometry

    The geographical geometry of the place match, which can be visualized on a map. 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>
  • The type of geographical object match, for example an address or a street.

    Declaration

    Swift

    public let matchType: MatchType?
  • The bounding box of the place match.

    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 geographical geometry of the place match, which can be visualized on a map.

    Declaration

    Swift

    public let geometry: Geometry?