CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_navigation.h>
Public Member Functions | |
virtual void | OnRoute (const CRoute *) |
virtual void | OnTurn (const TNavigatorTurn &, const TNavigatorTurn *, const TNavigatorTurn *) |
virtual void | OnState (TNavigationState) |
Create an object of a class derived from MNavigatorObserver to handle navigation events like turn instructions.
|
inlinevirtual |
This message updates the current route.
|
inlinevirtual |
This message updates the state.
|
inlinevirtual |
This message supplies up to three turns.
aFirstTurn is the first significant turn after the current position, ignoring 'ahead' and 'continue' turns. If its type is TTurnType::None there are no remaining significant turns. aFirstTurn.iDistance is the distance from the current position to the first turn or the arrival point.
aSecondTurn, if non-null, indicates that there is a significant turn 100 metres or less after aFirstTurn. aSecondTurn->iDistance is the distance from the first turn to the second turn.
aContinuationTurn, if non-null, signals that there is an 'ahead' or 'continue' turn before aFirstTurn, so that the navigation system can show that no turn is required at the next junction or adjoining minor road. aContinuationTurn->iDistance is the distance from the current position to the continuation turn.