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
4#ifndef QGEOCODINGMANAGERENGINEOSM_H
5#define QGEOCODINGMANAGERENGINEOSM_H
6
7#include <QtLocation/QGeoServiceProvider>
8#include <QtLocation/QGeoCodingManagerEngine>
9#include <QtLocation/QGeoCodeReply>
10
11QT_BEGIN_NAMESPACE
12
13class QNetworkAccessManager;
14
16{
18
19public:
23
24 QGeoCodeReply *geocode(const QGeoAddress &address, const QGeoShape &bounds) override;
25 QGeoCodeReply *geocode(const QString &address, int limit, int offset,
26 const QGeoShape &bounds) override;
27 QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
28 const QGeoShape &bounds) override;
29
30private Q_SLOTS:
31 void replyFinished();
32 void replyError(QGeoCodeReply::Error errorCode, const QString &errorString);
33
34private:
35 QNetworkAccessManager *m_networkManager;
36 QByteArray m_userAgent;
37 QString m_urlPrefix;
38 bool m_debugQuery = false;
39 bool m_includeExtraData = false;
40};
41
42QT_END_NAMESPACE
43
44#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.
static QString boundingBoxToLtrb(const QGeoRectangle &rect)
static QT_BEGIN_NAMESPACE QString addressToQuery(const QGeoAddress &address)