File indexing completed on 2025-01-05 03:59:27

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org>
0004 // SPDX-FileCopyrightText: 2012 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
0005 //
0006 
0007 #include "NominatimReverseGeocodingPlugin.h"
0008 
0009 #include <klocalizedstring.h>
0010 
0011 #include "OsmNominatimReverseGeocodingRunner.h"
0012 
0013 namespace Marble
0014 {
0015 
0016 NominatimPlugin::NominatimPlugin(QObject* const parent)
0017     : ReverseGeocodingRunnerPlugin(parent)
0018 {
0019     setSupportedCelestialBodies(QStringList(QStringLiteral("earth")));
0020     setCanWorkOffline( false );
0021 }
0022 
0023 QString NominatimPlugin::name() const
0024 {
0025     return i18n( "OpenStreetMap Nominatim Reverse Geocoding" );
0026 }
0027 
0028 QString NominatimPlugin::guiString() const
0029 {
0030     return i18n( "OpenStreetMap Nominatim" );
0031 }
0032 
0033 QString NominatimPlugin::nameId() const
0034 {
0035     return QStringLiteral("nominatim-reverse");
0036 }
0037 
0038 QString NominatimPlugin::version() const
0039 {
0040     return QStringLiteral("1.0");
0041 }
0042 
0043 QString NominatimPlugin::description() const
0044 {
0045     return i18n( "A plugin to process Online reverse geocoding using the OpenStreetMap Nominatim web-service" );
0046 }
0047 
0048 QString NominatimPlugin::copyrightYears() const
0049 {
0050     return QStringLiteral("2010, 2012");
0051 }
0052 
0053 QVector<PluginAuthor> NominatimPlugin::pluginAuthors() const
0054 {
0055     return QVector<PluginAuthor>()
0056             << PluginAuthor(QStringLiteral("Dennis Nienhüser"), QStringLiteral("nienhueser@kde.org"))
0057             << PluginAuthor(QStringLiteral("Bernhard Beschow"), QStringLiteral("bbeschow@cs.tu-berlin.de"));
0058 }
0059 
0060 ReverseGeocodingRunner* NominatimPlugin::newRunner() const
0061 {
0062     return new OsmNominatimRunner;
0063 }
0064 
0065 } // namespace Marble
0066 
0067 #include "moc_NominatimReverseGeocodingPlugin.cpp"