RoadObjectsStore
MapboxNavigation.roadObjectsStore provides methods to get road objects metadata, add and remove custom road objects.
Functions
Link copied to clipboard
Adds road object to be tracked in electronic horizon. In case if object with such id already exists updates it.
Link copied to clipboard
Returns roadObject, if such object cannot be found returns null.
Link copied to clipboard
Returns list of road object ids which are (partially) belong to edgeIds
.
Link copied to clipboard
fun getRoadObjectsOnTheEdge(edgeId: Long): Map<String, RoadObjectEdgeLocation>
Content copied to clipboard
Returns mapping road object id -> RoadObjectEdgeLocation
for all road objects which are lying on the edge with given id.
Link copied to clipboard
fun getUpcomingRoadObjects(distances: List<RoadObjectDistanceInfo>): List<UpcomingRoadObject>
Content copied to clipboard
Returns a list of UpcomingRoadObject
Link copied to clipboard
Removes all custom road objects (i.e. stops tracking them in electronic horizon)
Link copied to clipboard
Removes custom road object (i.e. stops tracking it in electronic horizon)