Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgeocodingmanagerengine_nokia.h
Go to the documentation of this file.
1// Copyright (C) 2015 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QGEOCODINGMANAGER_NOKIA_H
5#define QGEOCODINGMANAGER_NOKIA_H
6
8
9#include <qgeoserviceprovider.h>
10#include <qgeocodingmanagerengine.h>
11
12#include <QLocale>
13
15
17class QGeoUriProvider;
18
20{
22public:
28
29 QGeoCodeReply *geocode(const QGeoAddress &address,
30 const QGeoShape &bounds) override;
31 QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
32 const QGeoShape &bounds) override;
33
34 QGeoCodeReply *geocode(const QString &searchString,
35 int limit,
36 int offset,
37 const QGeoShape &bounds) override;
38
39private Q_SLOTS:
40 void placesFinished();
41 void placesError(QGeoCodeReply::Error error, const QString &errorString);
42
43private:
44 static QString trimDouble(double degree, int decimalDigits = 10);
45 QGeoCodeReply *geocode(QString requestString, const QGeoShape &bounds, bool manualBoundsRequired = true, int limit = -1, int offset = 0);
46 QString languageToMarc(QLocale::Language language);
47 QString getAuthenticationString() const;
48
49 QGeoNetworkAccessManager *m_networkManager;
50 QGeoUriProvider *m_uriProvider;
51 QGeoUriProvider *m_reverseGeocodingUriProvider;
52 QString m_apiKey;
53};
54
55QT_END_NAMESPACE
56
57#endif
QGeoCodeReply * geocode(const QString &searchString, int limit, int offset, const QGeoShape &bounds) override
Begins geocoding for a location matching address.
QGeoCodeReply * reverseGeocode(const QGeoCoordinate &coordinate, const QGeoShape &bounds) override
Begins the reverse geocoding of coordinate.
QGeoCodeReply * geocode(const QGeoAddress &address, const QGeoShape &bounds) override
Begins the geocoding of address.
static QT_BEGIN_NAMESPACE const unsigned char marc_language_code_list[]