Marble
RoutingInstruction.cpp
32 if (m_points.size() && m_points.last().roadType() != QLatin1StringView("roundabout") && item.roadType() == QLatin1StringView("roundabout")) {
33 // Entering a roundabout. Merge with previous segment to avoid 'Enter the roundabout' instructions
38 if (m_points.size() && m_points.last().roadType() == QLatin1StringView("roundabout") && item.roadType() != QLatin1StringView("roundabout")) {
253 QStringList motorways = QStringList() << QStringLiteral("motorway") << QStringLiteral("motorway_link");
350 if (QCoreApplication::instance()->arguments().contains(QStringLiteral("--remaining-duration"))) {
356QString RoutingInstruction::generateRoadInstruction(RoutingInstruction::TurnType turnType, const QString &roadName)
505 && QCoreApplication::instance()->arguments().contains(QStringLiteral("--intersection-points"))) {
Stores data related to one instruction: Road name, angle to predecessor, associated waypoints etc.
Definition RoutingInstruction.h:26
bool append(const RoutingWaypoint &item, int angle)
Append data of the given item, returns true if item's street name matches instructions street name.
Definition RoutingInstruction.cpp:30
QString totalDurationRemaining() const
Formats the instruction (duration to destination) for a human reader.
Definition RoutingInstruction.cpp:326
QList< RoutingWaypoint > points() const
Waypoints from the last instruction to this instruction.
Definition RoutingInstruction.cpp:167
RoutingInstruction(const RoutingWaypoint &item=RoutingWaypoint())
Constructor.
Definition RoutingInstruction.cpp:18
void setPredecessor(RoutingInstruction *predecessor)
Change the predecessor.
Definition RoutingInstruction.cpp:192
QString instructionText() const
Formats the instruction for a human reader.
Definition RoutingInstruction.cpp:346
QString nextDistanceInstruction() const
Formats the instruction (distance to next instruction) for a human reader.
Definition RoutingInstruction.cpp:287
qreal angleToPredecssor() const
The angle between the two turn roads, in radians.
Definition RoutingInstruction.cpp:177
QString nextRoadInstruction() const
Formats the instruction (road name) for a human reader.
Definition RoutingInstruction.cpp:246
QList< RoutingPoint > intersectionPoints() const
Contains the intersection point and points near it on the previous and current road.
Definition RoutingInstruction.cpp:172
qreal distanceFromStart() const
The distance from the route start.
Definition RoutingInstruction.cpp:224
int secondsLeft() const
Estimated number of seconds to the route destination.
Definition RoutingInstruction.cpp:73
void setSuccessor(RoutingInstruction *successor)
Change the successor.
Definition RoutingInstruction.cpp:209
qreal distance() const
The accumulated distance of all waypoints belonging to this instruction.
Definition RoutingInstruction.cpp:214
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
QCoreApplication * instance()
qsizetype size() const const
MeasurementSystem
MeasurementSystem measurementSystem() const const
QLocale system()
QString tr(const char *sourceText, const char *disambiguation, int n)
QString arg(Args &&... args) const const
bool isEmpty() const const
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
void setRealNumberPrecision(int precision)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.