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
qgeocodingmanagerengineosm.h
Go to the documentation of this file.
1// Copyright (C) 2016 Aaron McCarthy <mccarthy.aaron@gmail.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QGEOCODINGMANAGERENGINEOSM_H
6#define QGEOCODINGMANAGERENGINEOSM_H
7
8#include <QtLocation/QGeoServiceProvider>
9#include <QtLocation/QGeoCodingManagerEngine>
10#include <QtLocation/QGeoCodeReply>
11
12QT_BEGIN_NAMESPACE
13
14class QNetworkAccessManager;
15
17{
19
20public:
24
25 QGeoCodeReply *geocode(const QGeoAddress &address, const QGeoShape &bounds) override;
26 QGeoCodeReply *geocode(const QString &address, int limit, int offset,
27 const QGeoShape &bounds) override;
28 QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
29 const QGeoShape &bounds) override;
30
31private Q_SLOTS:
32 void replyFinished();
33 void replyError(QGeoCodeReply::Error errorCode, const QString &errorString);
34
35private:
36 QNetworkAccessManager *m_networkManager;
37 QByteArray m_userAgent;
38 QString m_urlPrefix;
39 bool m_debugQuery = false;
40 bool m_includeExtraData = false;
41};
42
43QT_END_NAMESPACE
44
45#endif // QGEOCODINGMANAGERENGINEOSM_H
QGeoCodeReply * geocode(const QString &address, 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.
Combined button and popup list for selecting options.
static QString boundingBoxToLtrb(const QGeoRectangle &rect)
static QT_BEGIN_NAMESPACE QString addressToQuery(const QGeoAddress &address)