RouteManeuverThe RouteManeuver element represents the information relevant to the point at which two RouteSegments meet. More... Inherits QtObject This type was introduced in Qt Location 5.0. Properties
Detailed DescriptionRouteSegment instances can be thought of as edges on a routing graph, with RouteManeuver instances as optional labels attached to the vertices of the graph. The most interesting information held in a RouteManeuver instance is normally the textual navigation to provide and the position at which to provide it, accessible by instructionText and position respectively. ExampleThe following QML snippet demonstrates how to print information about a route maneuver: import QtQuick 2.0 import QtLocation 5.0 Text { text: "Distance till next maneuver: " + routeManeuver.distanceToNextInstruction + " meters, estimated time: " + routeManeuver.timeToNextInstruction + " seconds." } Property DocumentationDescribes the change in direction associated with the instruction text that is associated with a RouteManeuver.
This read-only property holds the distance, in meters, between the point at which the associated instruction was issued and the point that the next instruction should be issued. This read-only property holds textual navigation instruction. This read-only property holds where the instructionText should be displayed. This read-only property holds the estimated time it will take to travel from the point at which the associated instruction was issued and the point that the next instruction should be issued, in seconds. This read-only property holds whether this maneuver is valid or not. Invalid maneuvers are used when there is no information that needs to be attached to the endpoint of a QGeoRouteSegment instance. This property holds the waypoint associated with this maneuver. All maneuvers do not have a waypoint associated with them, this can be checked with waypointValid. This read-only property holds whether this waypoint, associated with this maneuver, is valid or not. |