UpcomingRoadObject
Holds the road objects and the distance to the start of the object. There are two sources of road objects: active route and the electronic horizon. Road objects coming from the electronic horizon will also have RoadObjectDistanceInfo Available RoadObjectDistanceInfo types are:
Parameters
road object
distance from current enhanced(matched) location to the start of the object along the current route. This value will be negative after passing the start of the object and until we cross the finish point of the RoadObjects geometry for objects that are on the actively navigated route, but it will be zero for EHorizon objects. It will be null if couldn't be determined.
provides extra distance details for the road objects. It will be non-null for objects coming from the electronic horizon and null for objects that are on the current route that we are actively navigating on.