Like the Map Tracker in the Maps Module, it is possible to track the current position on a Lane Plan.
It's also possible to update the with a local coordinate relative to a dwMapsRoadSegment:
dwLanePlan_updateCurrentPoint()
keeps track of the current point on the Lane Plan. Subsequent updates with position, orientation and time allow for a robust tracking along the Lane Plan, avoiding problems at places where the Lane Plan crosses itself.
For a description of the localToENURotation33 parameter, see Local Cartesian Coordinate System in Lane Tree Helper Functions. That parameter describes the current orientation of the car by a rotation matrix that transforms from the car space into ENU (east-north-up) coordinate space. ‘ignoreHeight’ can be set if the current height is unknown or inaccurate.
Returns the current point on the Lane Plan.