KOSMIndoorMap

osmaddress.h
1 /*
2  SPDX-FileCopyrightText: 2020 Volker Krause <[email protected]>
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 
12 namespace 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 
25 public:
26  explicit OSMAddress();
27  explicit OSMAddress(OSM::Element elem);
28  ~OSMAddress();
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 
37 private:
38  OSM::Element m_element;
39 };
40 
41 }
42 
43 Q_DECLARE_METATYPE(KOSMIndoorMap::OSMAddress)
44 
45 #endif // KOSMINDOORMAP_OSMADDRESS_H
OSM-based multi-floor indoor maps for buildings.
A reference to any of OSM::Node/OSMWay/OSMRelation.
Definition: element.h:22
Postal address from OSM data.
Definition: osmaddress.h:15
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 23:04:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.