KOSMIndoorMap

osmaddress.h
1/*
2 SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KOSMINDOORMAP_OSMADDRESS_H
8#define KOSMINDOORMAP_OSMADDRESS_H
9
10#include <osm/element.h>
11
12namespace KOSMIndoorMap {
13
14/** Postal address from OSM data. */
16{
17 Q_GADGET
18 Q_PROPERTY(QString street READ street)
19 Q_PROPERTY(QString houseNumber READ houseNumber)
20 Q_PROPERTY(QString postalCode READ postalCode)
21 Q_PROPERTY(QString city READ city)
22 Q_PROPERTY(QString state READ state)
23 Q_PROPERTY(QString country READ country)
24
25public:
26 explicit OSMAddress();
27 explicit OSMAddress(OSM::Element elem);
29
30 QString street() const;
31 QString houseNumber() const;
32 QString postalCode() const;
33 QString city() const;
34 QString state() const;
35 QString country() const;
36
37private:
38 OSM::Element m_element;
39};
40
41}
42
43Q_DECLARE_METATYPE(KOSMIndoorMap::OSMAddress)
44
45#endif // KOSMINDOORMAP_OSMADDRESS_H
Postal address from OSM data.
Definition osmaddress.h:16
A reference to any of OSM::Node/OSM::Way/OSM::Relation.
Definition element.h:24
OSM-based multi-floor indoor maps for buildings.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.