File indexing completed on 2024-05-12 03:50:08

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2009 Eckhart Wörner <ewoerner@kde.org>
0004 // SPDX-FileCopyrightText: 2010 Bastian Holst <bastianholst@gmx.de>
0005 //
0006 
0007 #ifndef MARBLE_GEODATAACCURACY_H
0008 #define MARBLE_GEODATAACCURACY_H
0009 
0010 #include "geodata_export.h"
0011 
0012 #include <QtGlobal>
0013 
0014 namespace Marble
0015 {
0016 
0017 /**
0018  */
0019 class GEODATA_EXPORT GeoDataAccuracy
0020 {
0021  public:
0022     enum Level {
0023         none = 0,
0024         Country,
0025         Region,
0026         Locality,
0027         PostalCode,
0028         Street,
0029         Detailed
0030     };
0031 
0032     explicit GeoDataAccuracy( Level level = none, qreal horizontal = 0.0, qreal vertical = 0.0 );
0033 
0034     bool operator==( const GeoDataAccuracy &other ) const;
0035 
0036     bool operator!=( const GeoDataAccuracy &other ) const;
0037 
0038     /**
0039      * @brief Approximate descriptive accuracy.
0040      */
0041     Level level;
0042 
0043     /**
0044      * @brief Horizontal accuracy in meters.
0045      */
0046     qreal horizontal;
0047 
0048     /**
0049      * @brief Vertical accuracy in meters.
0050      */
0051     qreal vertical;
0052 };
0053 
0054 }
0055 
0056 #endif