|
libosmscout 1.1.1
|
#include <libosmscout-client-qt/include/osmscoutclientqt/RouteStep.h>


Public Types | |
| enum | Roles { ShortDescriptionRole = Qt::UserRole + 1 , DescriptionRole = Qt::UserRole + 2 , TypeRole = Qt::UserRole + 3 , RoundaboutExitRole = Qt::UserRole + 4 , RoundaboutClockwiseRole = Qt::UserRole + 5 , latRole = Qt::UserRole + 6 , lonRole = Qt::UserRole + 7 , distanceRole = Qt::UserRole + 8 , distanceDeltaRole = Qt::UserRole + 9 , distanceToRole = Qt::UserRole + 10 , timeRole = Qt::UserRole + 11 , timeDeltaRole = Qt::UserRole + 12 , streetNamesRole = Qt::UserRole + 13 , destinationsRole = Qt::UserRole + 14 } |
Signals | |
| void | update () |
Public Member Functions | |
| RouteStep () | |
| RouteStep (const QString &type, const GeoCoord &coord, const Distance &distance, const Distance &distanceDelta, const Duration ×tamp, const Duration ×tampDelta, const QStringList &streetNames) | |
| RouteStep (const RouteStep &other) | |
| RouteStep & | operator= (const RouteStep &other) |
| QString | getType () const |
| GeoCoord | GetCoord () const |
| double | getLat () const |
| double | getLon () const |
| Distance | GetDistance () const |
| double | getDistance () const |
| double | getDistanceDelta () const |
| double | getDistanceTo () const |
| double | getTime () const |
| double | getTimeDelta () const |
| QString | getDescription () const |
| QString | getShortDescription () const |
| QStringList | getStreetNames () const |
| QStringList | getDestinations () const |
| int | getRoundaboutExit () const |
| bool | getRoundaboutClockwise () const |
| QVariant | data (int role) const |
Static Public Member Functions | |
| static QHash< int, QByteArray > | roleNames (QHash< int, QByteArray > roles) |
Public Attributes | |
| GeoCoord | coord |
| Position. | |
| Distance | distance |
| Estimate distance from route start. | |
| Distance | distanceDelta |
| Estimate distance from previous route step. | |
| Distance | distanceTo |
| Estimate distance to this step (used with navigation). | |
| Duration | timestamp |
| Estimate time from route start. | |
| Duration | timestampDelta |
| Estimate time from previous route step. | |
Properties | |
| QString | type |
| Type of route step. | |
| double | lat |
| updatedouble | lon |
| updatedouble | distance |
| double | distanceDelta |
| double | distanceTo |
| double | time |
| double | timeDelta |
| QString | description |
| Formatted (html) verbose description (translated already). | |
| QString | shortDescription |
| Plain short description (translated already). | |
| QStringList | streetNames |
| Street names leading to this step. | |
| QStringList | destinations |
| Destinations, visible on road sign usually. | |
| int | roundaboutExit {-1} |
| when type is "leave-roundabout" this property indicate number of exit | |
| bool | roundaboutClockwise {false} |
Human representation of route step commands. It contains time, distance and two variants of translated description:
|
inline |
| osmscout::RouteStep::RouteStep | ( | const QString & | type, |
| const GeoCoord & | coord, | ||
| const Distance & | distance, | ||
| const Distance & | distanceDelta, | ||
| const Duration & | timestamp, | ||
| const Duration & | timestampDelta, | ||
| const QStringList & | streetNames ) |
| osmscout::RouteStep::RouteStep | ( | const RouteStep & | other | ) |
| QVariant osmscout::RouteStep::data | ( | int | role | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
signal |
| GeoCoord osmscout::RouteStep::coord |
Position.
| Distance osmscout::RouteStep::distance |
Estimate distance from route start.
| Distance osmscout::RouteStep::distanceDelta |
Estimate distance from previous route step.
| Distance osmscout::RouteStep::distanceTo |
Estimate distance to this step (used with navigation).
| Duration osmscout::RouteStep::timestamp |
Estimate time from route start.
| Duration osmscout::RouteStep::timestampDelta |
Estimate time from previous route step.
|
read |
Formatted (html) verbose description (translated already).
|
read |
Destinations, visible on road sign usually.
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
when type is "leave-roundabout" or "enter-roundabout", this property indicate direction of roundabout
|
read |
when type is "leave-roundabout" this property indicate number of exit
|
read |
Plain short description (translated already).
|
read |
Street names leading to this step.
|
read |
|
read |
|
read |
Type of route step.