You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When none of the input coordinates in MatchOptions separates legs, and the Map Matching API isn’t confident about a match between two input coordinates, it terminates one match at the first input coordinate, adds multiple “submatches” to the next input coordinate, and finally adds a match from that input coordinate onward.
This library gained Map Matching API compatibility to support a “Bring Your Own Route” workflow in which the API’s response is converted into Route objects, as if it came from the Directions API. The assumption is that each match spans the entire distance between the first and last input coordinates, but that isn’t necessarily what the API returns. If the API returns submatches, every Match object’s tracepoints property is inaccurate and there’s no way to reconstruct what the tracepoints should be.
Each match’s array of tracepoints should be filtered down to just the tracepoints whose matchings_index corresponds to the match. It may also help to assert that the waypoint_index increases monotonically.
/cc @mapbox/navigation-ios
The text was updated successfully, but these errors were encountered:
When none of the input coordinates in MatchOptions separates legs, and the Map Matching API isn’t confident about a match between two input coordinates, it terminates one match at the first input coordinate, adds multiple “submatches” to the next input coordinate, and finally adds a match from that input coordinate onward.
This library gained Map Matching API compatibility to support a “Bring Your Own Route” workflow in which the API’s response is converted into Route objects, as if it came from the Directions API. The assumption is that each match spans the entire distance between the first and last input coordinates, but that isn’t necessarily what the API returns. If the API returns submatches, every Match object’s
tracepoints
property is inaccurate and there’s no way to reconstruct what the tracepoints should be.mapbox-directions-swift/Sources/MapboxDirections/Match/MBMatchOptions.swift
Lines 110 to 126 in 702ed4e
Each match’s array of tracepoints should be filtered down to just the tracepoints whose
matchings_index
corresponds to the match. It may also help to assert that thewaypoint_index
increases monotonically./cc @mapbox/navigation-ios
The text was updated successfully, but these errors were encountered: