Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
12
QT_BEGIN_NAMESPACE
13
14
class
QNetworkAccessManager;
15
16
class
QGeoCodingManagerEngineOsm
:
public
QGeoCodingManagerEngine
17
{
18
Q_OBJECT
19
20
public
:
21
QGeoCodingManagerEngineOsm
(
const
QVariantMap
&
parameters
,
QGeoServiceProvider
::
Error
*
error
,
22
QString
*
errorString
);
23
~
QGeoCodingManagerEngineOsm
();
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
31
private
Q_SLOTS
:
32
void
replyFinished
();
33
void
replyError(QGeoCodeReply::Error errorCode,
const
QString &errorString);
34
35
private
:
36
QNetworkAccessManager *m_networkManager;
37
QByteArray m_userAgent;
38
QString m_urlPrefix;
39
bool
m_debugQuery =
false
;
40
bool
m_includeExtraData =
false
;
41
};
42
43
QT_END_NAMESPACE
44
45
#
endif
// QGEOCODINGMANAGERENGINEOSM_H
QGeoCodingManagerEngineOsm
Definition
qgeocodingmanagerengineosm.h:17
QGeoCodingManagerEngineOsm::geocode
QGeoCodeReply * geocode(const QString &address, int limit, int offset, const QGeoShape &bounds) override
Begins geocoding for a location matching address.
Definition
qgeocodingmanagerengineosm.cpp:72
QGeoCodingManagerEngineOsm::reverseGeocode
QGeoCodeReply * reverseGeocode(const QGeoCoordinate &coordinate, const QGeoShape &bounds) override
Begins the reverse geocoding of coordinate.
Definition
qgeocodingmanagerengineosm.cpp:109
QGeoCodingManagerEngineOsm::~QGeoCodingManagerEngineOsm
~QGeoCodingManagerEngineOsm()
Definition
qgeocodingmanagerengineosm.cpp:63
QGeoCodingManagerEngineOsm::geocode
QGeoCodeReply * geocode(const QGeoAddress &address, const QGeoShape &bounds) override
Begins the geocoding of address.
Definition
qgeocodingmanagerengineosm.cpp:67
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
boundingBoxToLtrb
static QString boundingBoxToLtrb(const QGeoRectangle &rect)
Definition
qgeocodingmanagerengineosm.cpp:31
addressToQuery
static QT_BEGIN_NAMESPACE QString addressToQuery(const QGeoAddress &address)
Definition
qgeocodingmanagerengineosm.cpp:22
qtlocation
src
plugins
geoservices
osm
qgeocodingmanagerengineosm.h
Generated on
for Qt by
1.18.0