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
geocodingmanagerengine_esri.h
Go to the documentation of this file.
1// Copyright (C) 2013-2018 Esri <contracts@esri.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 GEOCODINGMANAGERENGINEESRI_H
5#define GEOCODINGMANAGERENGINEESRI_H
6
7#include <QGeoServiceProvider>
8#include <QGeoCodingManagerEngine>
9#include <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};
38
39QT_END_NAMESPACE
40
41#endif // GEOCODINGMANAGERENGINEESRI_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 const QString kUrlGeocode(QStringLiteral("https://geocode.arcgis.com/arcgis/rest/services/" "World/GeocodeServer/findAddressCandidates"))
static QString boundingBoxToLtrb(const QGeoRectangle &rect)
static const QString kParamUserAgent(kPrefixEsri+QStringLiteral("useragent"))
static QString addressToQuery(const QGeoAddress &address)
static const QString kUrlReverseGeocode(QStringLiteral("https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode"))
static QT_BEGIN_NAMESPACE const QString kPrefixEsri(QStringLiteral("esri."))
Combined button and popup list for selecting options.