CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_navigation.h>
Public Member Functions | |
virtual void | OnRoute (const Route *) |
virtual void | OnRouteAsync () |
virtual void | OnTurn (const NavigatorTurn &, const NavigatorTurn *, const NavigatorTurn *, double, double) |
virtual void | OnState (NavigationState) |
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 is sent asynchronously when a new route is created. It exists so that the Framework object can display a new route without making any fresh call to a Navigator function. The call to OnRouteAsync is made from a different thread to the one calling Navigator functions, so mutual exclusion may be necessary in the called function.
|
inlinevirtual |
This message updates the state.
|
inlinevirtual |
This message is sent whenever there is a location update and the location is on route and the direction along the route is correct.
aFirstTurn is the first significant turn after the current position, ignoring 'ahead' and 'continue' turns. If its type is TurnType::None there are no remaining significant turns. aFirstTurn.Distance 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->Distance 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->Distance is the distance from the current position to the continuation turn.
aDistanceLeft is the distance to the destination (along the route) in metres.
aTimeLeft is the time to the destination in seconds.