RoadObjectsStore

class RoadObjectsStore

MapboxNavigation.roadObjectsStore provides methods to get road objects metadata, add and remove custom road objects.

Functions

addCustomRoadObject
Link copied to clipboard
fun addCustomRoadObject(roadObject: RoadObject)
Adds road object to be tracked in electronic horizon.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getRoadObject
Link copied to clipboard
fun getRoadObject(roadObjectId: String): RoadObject?
Returns roadObject, if such object cannot be found returns null.
getRoadObjectIdsByEdgeIds
Link copied to clipboard
fun getRoadObjectIdsByEdgeIds(edgeIds: List<Long>): List<String>
Returns list of road object ids which are (partially) belong to edgeIds.
getRoadObjectsOnTheEdge
Link copied to clipboard
fun getRoadObjectsOnTheEdge(edgeId: Long): Map<String, RoadObjectEdgeLocation>
Returns mapping road object id -> RoadObjectEdgeLocation for all road objects which are lying on the edge with given id.
getUpcomingRoadObjects
Link copied to clipboard
fun getUpcomingRoadObjects(distances: List<RoadObjectDistanceInfo>): List<UpcomingRoadObject>
Returns a list of UpcomingRoadObject
hashCode
Link copied to clipboard
open fun hashCode(): Int
removeAllCustomRoadObjects
Link copied to clipboard
fun removeAllCustomRoadObjects()
Removes all custom road objects (i.e.
removeCustomRoadObject
Link copied to clipboard
fun removeCustomRoadObject(roadObjectId: String)
Removes custom road object (i.e.
toString
Link copied to clipboard
open fun toString(): String