Marble

RoutingWaypoint.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org>
4//
5
6#include "RoutingWaypoint.h"
7
8#include <QDebug>
9
10namespace Marble
11{
12
14 : m_secondsRemaining(0)
15{
16 // nothing to do
17}
18
20 JunctionType junctionType,
21 const QString &junctionTypeRaw,
22 const QString &roadType,
23 int secondsRemaining,
24 const QString &roadName)
25 : m_point(point)
26 , m_junctionType(junctionType)
27 , m_junctionTypeRaw(junctionTypeRaw)
28 , m_roadType(roadType)
29 , m_secondsRemaining(secondsRemaining)
30 , m_roadName(roadName.trimmed())
31{
32 // nothing to do
33}
34
36{
37 return m_point;
38}
39
41{
42 return m_junctionType;
43}
44
46{
47 return m_junctionTypeRaw;
48}
49
51{
52 return m_roadType;
53}
54
56{
57 return m_secondsRemaining;
58}
59
61{
62 return m_roadName;
63}
64
65} // namespace Marble
There are many Point classes, but this is mine.
QString roadType() const
OSM type of the road.
QString roadName() const
OSM name of the road.
RoutingPoint point() const
Associated geo point.
JunctionType
Junction types that affect instructions.
JunctionType junctionType() const
Parsed junction type.
int secondsRemaining() const
Estimated seconds remaining until the route destination is reached.
QString junctionTypeRaw() const
Junction type originally passed.
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.