Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgeocodingmanagerenginemapbox.h
Go to the documentation of this file.
1// Copyright (C) 2017 Mapbox, Inc.
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 QGEOCODINGMANAGERENGINEMAPBOX_H
5#define QGEOCODINGMANAGERENGINEMAPBOX_H
6
7#include <QtCore/QUrlQuery>
8#include <QtLocation/QGeoServiceProvider>
9#include <QtLocation/QGeoCodingManagerEngine>
10#include <QtLocation/QGeoCodeReply>
11
13
15
17{
19
20public:
22 QString *errorString);
24
25 QGeoCodeReply *geocode(const QGeoAddress &address, const QGeoShape &bounds) override;
27 const QGeoShape &bounds) override;
29 const QGeoShape &bounds) override;
30
31private slots:
32 void onReplyFinished();
33 void onReplyError(QGeoCodeReply::Error errorCode, const QString &errorString);
34
35private:
36 QGeoCodeReply *doSearch(const QString &, QUrlQuery &, const QGeoShape &bounds);
37
38 QNetworkAccessManager *m_networkManager;
39 QByteArray m_userAgent;
40 QString m_accessToken;
41 QString m_urlPrefix;
42 bool m_isEnterprise;
43};
44
46
47#endif // QGEOCODINGMANAGERENGINEMAPBOX_H
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtPositioning
Definition qgeoaddress.h:18
\inmodule QtLocation
Error
Describes an error which prevented the completion of the operation.
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.
QGeoCodingManagerEngineMapbox(const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString)
\inmodule QtPositioning
Error
Describes an error related to the loading and setup of a service provider plugin.
\inmodule QtPositioning
Definition qgeoshape.h:17
The QNetworkAccessManager class allows the application to send network requests and receive replies.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurlquery.h:20
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLenum GLuint GLintptr offset
GLint limit
GLuint GLuint64EXT address
#define Q_OBJECT
#define slots