QGeoManeuver Class
The QGeoManeuver class represents the information relevant to the point at which two QGeoRouteSegments meet. More...
| Header: | #include <QGeoManeuver> |
| qmake: | QT += location |
| Since: | Qt 5.6 |
This class was introduced in Qt 5.6.
Public Types
| enum | InstructionDirection { NoDirection, DirectionForward, DirectionBearRight, DirectionLightRight, DirectionRight, …, DirectionBearLeft } |
Detailed Description
QGeoRouteSegment instances can be thought of as edges on a routing graph, with QGeoManeuver instances as optional labels attached to the vertices of the graph.
The most interesting information help in a QGeoManeuver instance is normally the textual navigation to provide and the position at which to provide it, accessible by instructionText() and position() respectively.
It is also possible to determine if a routing waypoint has been passed by checking if waypoint() returns a valid QGeoCoordinate.
Member Type Documentation
enum QGeoManeuver::InstructionDirection
Describes the change in direction associated with the instruction text that is associated with a QGeoManaeuver.
| Constant | Value | Description |
|---|---|---|
QGeoManeuver::NoDirection | 0 | There is no direction associated with the instruction text. |
QGeoManeuver::DirectionForward | 1 | The instruction indicates that the direction of travel does not need to change. |
QGeoManeuver::DirectionBearRight | 2 | The instruction indicates that the direction of travel should bear to the right. |
QGeoManeuver::DirectionLightRight | 3 | The instruction indicates that a light turn to the right is required. |
QGeoManeuver::DirectionRight | 4 | The instruction indicates that a turn to the right is required. |
QGeoManeuver::DirectionHardRight | 5 | The instruction indicates that a hard turn to the right is required. |
QGeoManeuver::DirectionUTurnRight | 6 | The instruction indicates that a u-turn to the right is required. |
QGeoManeuver::DirectionUTurnLeft | 7 | The instruction indicates that a u-turn to the left is required. |
QGeoManeuver::DirectionHardLeft | 8 | The instruction indicates that a hard turn to the left is required. |
QGeoManeuver::DirectionLeft | 9 | The instruction indicates that a turn to the left is required. |
QGeoManeuver::DirectionLightLeft | 10 | The instruction indicates that a light turn to the left is required. |
QGeoManeuver::DirectionBearLeft | 11 | The instruction indicates that the direction of travel should bear to the left. |