Match
A Match object defines a single route that was created from a series of points that were matched against a road network.
Typically, you do not create instances of this class directly. Instead, you receive match objects when you pass a MatchOptions object into the Directions.calculate(_:completionHandler:) method.
-
Initializes a match.
Typically, you do not create instances of this class directly. Instead, you receive match objects when you request matches using the
Directions.calculate(_:completionHandler:)method. -
Creates a match from a decoder.
Precondition
If the decoder is decoding JSON data from an API response, theDecoder.userInfodictionary must contain aMatchOptionsobject in theCodingUserInfoKey.optionskey. If it does not, aDirectionsCodingError.missingOptionserror is thrown. -
-
A
Weightenum, which represents the weight given to a specificMatch. -
A number between 0 and 1 that indicates the Map Matching API’s confidence that the match is accurate. A higher confidence means the match is more likely to be accurate.
-
Install in Dash
Match Class Reference