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
13RoutingWaypoint::RoutingWaypoint() : m_secondsRemaining( 0 )
14{
15 // nothing to do
16}
17
19 const QString &junctionTypeRaw, const QString &roadType,
20 int secondsRemaining, const QString &roadName )
21 : m_point( point ), m_junctionType( junctionType ),
22 m_junctionTypeRaw(junctionTypeRaw), m_roadType( roadType ),
23 m_secondsRemaining( secondsRemaining ), m_roadName( roadName.trimmed() )
24{
25 // nothing to do
26}
27
29{
30 return m_point;
31}
32
34{
35 return m_junctionType;
36}
37
39{
40 return m_junctionTypeRaw;
41}
42
44{
45 return m_roadType;
46}
47
49{
50 return m_secondsRemaining;
51}
52
54{
55 return m_roadName;
56}
57
58} // 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 Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.