Marble

RoutingWaypoint.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org>
4//
5
6#ifndef MARBLE_ROUTINGWAYPOINT_H
7#define MARBLE_ROUTINGWAYPOINT_H
8
9#include "RoutingPoint.h"
10#include "marble_export.h"
11
12#include <QList>
13#include <QString>
14
15namespace Marble
16{
17
18/**
19 * Stores one line of gosmore/routino output
20 */
21class MARBLE_EXPORT RoutingWaypoint
22{
23public:
24 /** Junction types that affect instructions */
26 Roundabout,
27 Other,
28 None
29 };
30
31 /** Constructor */
33
34 /** Convenience constructor to initialize members */
35 RoutingWaypoint(const RoutingPoint &point,
36 JunctionType junctionType,
37 const QString &junctionTypeRaw,
38 const QString &roadType,
39 int secondsRemaining,
40 const QString &roadName);
41
42 /** Associated geo point */
43 RoutingPoint point() const;
44
45 /** Parsed junction type */
46 JunctionType junctionType() const;
47
48 /** Junction type originally passed */
49 QString junctionTypeRaw() const;
50
51 /** OSM type of the road */
52 QString roadType() const;
53
54 /** Estimated seconds remaining until the route destination is reached */
55 int secondsRemaining() const;
56
57 /** OSM name of the road */
58 QString roadName() const;
59
60private:
61 RoutingPoint m_point;
62
63 JunctionType m_junctionType;
64
65 QString m_junctionTypeRaw;
66
67 QString m_roadType;
68
69 int m_secondsRemaining;
70
71 QString m_roadName;
72};
73
74using RoutingWaypoints = QList<RoutingWaypoint>;
75
76} // namespace Marble
77
78#endif
There are many Point classes, but this is mine.
Stores one line of gosmore/routino output.
JunctionType
Junction types that affect instructions.
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 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.