RoadObjectMatcher
MapboxNavigation.roadObjectMatcher provides methods to match custom road objects.
Functions
Matches given gantry (i.e. polyline orthogonal to the road) to the graph. "Matching" here means we try to find all intersections of gantry with road graph and track distances to those intersections as distance to gantry. In case of error (if there are no tiles in cache, decoding failed, etc.) object won't be matched.
Matches given gantries (i.e. polyline orthogonal to the road) to the graph. "Matching" here means we try to find all intersections of gantry with road graph and track distances to those intersections as distance to gantry. In case of error (if there are no tiles in cache, decoding failed, etc.) object won't be matched.
Matches given OpenLR object to the graph.
Matches given OpenLR objects to the graph.
Matches given point to road graph. In case of error (if there are no tiles in cache, decoding failed, etc.) object won't be matched.
Matches given points to road graph. In case of error (if there are no tiles in cache, decoding failed, etc.) object won't be matched.
Matches given polygon to graph. "Matching" here means we try to find all intersections of polygon with the road graph and track distances to those intersections as distance to polygon. In case of error (if there are no tiles in cache, decoding failed, etc.) object won't be matched.
Matches given polygons to graph. "Matching" here means we try to find all intersections of polygon with the road graph and track distances to those intersections as distance to polygon. In case of error (if there are no tiles in cache, decoding failed, etc.) object won't be matched.
Matches given polyline to graph. Polyline should define valid path on graph, i.e. it should be possible to drive this path according to traffic rules. In case of error (if there are no tiles in cache, decoding failed, etc.) object won't be matched.
Matches given polylines to graph. Polyline should define valid path on graph, i.e. it should be possible to drive this path according to traffic rules. In case of error (if there are no tiles in cache, decoding failed, etc.) object won't be matched.
Register road object matcher observer. It needs to be registered before any of the other methods are called. Otherwise, the results are lost.