MapMatchingResponse
public struct MapMatchingResponse : ForeignMemberContainer
extension MapMatchingResponse: Codable
A MapMatchingResponse
object is a structure that corresponds to a map matching response returned by the Mapbox Map Matching API.
-
Declaration
Swift
public var foreignMembers: JSONObject
-
The raw HTTP response from the Map Matching API.
Declaration
Swift
public let httpResponse: HTTPURLResponse?
-
An array of
Tracepoint
objects that represent the location an input point was matched with, in the order in which they were matched. This property will benil
if a trace point is omitted by the Map Matching API because it is an outlier.Declaration
Swift
public var tracepoints: [Tracepoint?]?
-
The criteria for the map matching response.
Declaration
Swift
public let options: MatchOptions
-
The credentials used to make the request.
Declaration
Swift
public let credentials: Credentials
-
The time when this
MapMatchingResponse
object was created, which is immediately upon recieving the raw URL response.If you manually start fetching a task returned by
Directions.url(forCalculating:)
, this property is set tonil
; use theURLSessionTaskTransactionMetrics.responseEndDate
property instead. This property may also be set tonil
if you create this result from a JSON object or encoded object.This property does not persist after encoding and decoding.
Declaration
Swift
public var created: Date
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws