Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

RouteManeuver

The 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 Description

RouteSegment 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.

Example

The 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 Documentation

read-onlydirection : enumeration

Describes the change in direction associated with the instruction text that is associated with a RouteManeuver.

  • RouteManeuver.NoDirection - There is no direction associated with the instruction text
  • RouteManeuver.DirectionForward - The instruction indicates that the direction of travel does not need to change
  • RouteManeuver.DirectionBearRight - The instruction indicates that the direction of travel should bear to the right
  • RouteManeuver.DirectionLightRight - The instruction indicates that a light turn to the right is required
  • RouteManeuver.DirectionRight - The instruction indicates that a turn to the right is required
  • RouteManeuver.DirectionHardRight - The instruction indicates that a hard turn to the right is required
  • RouteManeuver.DirectionUTurnRight - The instruction indicates that a u-turn to the right is required
  • RouteManeuver.DirectionUTurnLeft - The instruction indicates that a u-turn to the left is required
  • RouteManeuver.DirectionHardLeft - The instruction indicates that a hard turn to the left is required
  • RouteManeuver.DirectionLeft - The instruction indicates that a turn to the left is required
  • RouteManeuver.DirectionLightLeft - The instruction indicates that a light turn to the left is required
  • RouteManeuver.DirectionBearLeft - The instruction indicates that the direction of travel should bear to the left

read-onlydistanceToNextInstruction : real

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.


read-onlyinstructionText : string

This read-only property holds textual navigation instruction.


read-onlyposition : Coordinate

This read-only property holds where the instructionText should be displayed.


read-onlytimeToNextInstruction : int

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.


read-onlyvalid : bool

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.


read-onlywaypoint : Coordinate

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.


read-onlywaypointValid : bool

This read-only property holds whether this waypoint, associated with this maneuver, is valid or not.


Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web