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
qmapboxcommon.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
QMAPBOXAPICOMMON_H
5
#
define
QMAPBOXAPICOMMON_H
6
7
#
include
<
QtCore
/
QString
>
8
#
include
<
QtCore
/
QJsonObject
>
9
#
include
<
QtPositioning
/
QGeoLocation
>
10
11
QT_BEGIN_NAMESPACE
12
13
static
const
QString
mapboxTilesApiPath
= QStringLiteral(
"http://api.tiles.mapbox.com/v4/"
);
14
15
// https://www.mapbox.com/api-documentation/#geocoding
16
static
const
QString
mapboxGeocodingApiPath
= QStringLiteral(
"https://api.mapbox.com/geocoding/v5/mapbox.places/"
);
17
static
const
QString
mapboxGeocodingEnterpriseApiPath
= QStringLiteral(
"https://api.mapbox.com/geocoding/v5/mapbox.places-permanent/"
);
18
19
// https://www.mapbox.com/api-documentation/#directions
20
static
const
QString
mapboxDirectionsApiPath
= QStringLiteral(
"https://api.mapbox.com/directions/v5/mapbox/"
);
21
22
static
const
QByteArray
mapboxDefaultUserAgent
= QByteArrayLiteral(
"Qt Location based application"
);
23
24
static
const
qreal
mapboxDefaultRadius
= 50000;
25
26
class
QMapboxCommon
27
{
28
public
:
29
static
QString
mapboxNameForCategory
(
const
QString &category);
30
static
QGeoLocation
parseGeoLocation
(
const
QJsonObject &response);
31
};
32
33
QT_END_NAMESPACE
34
35
#
endif
// QMAPBOXAPICOMMON_H
QMapboxCommon
Definition
qmapboxcommon.h:27
QMapboxCommon::mapboxNameForCategory
static QString mapboxNameForCategory(const QString &category)
Definition
qmapboxcommon.cpp:11
QMapboxCommon::parseGeoLocation
static QGeoLocation parseGeoLocation(const QJsonObject &response)
Definition
qmapboxcommon.cpp:22
QNetworkReply
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
Definition
qnetworkreply.h:30
QObjectData::parent
QObject * parent
Definition
qobject.h:74
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
mapboxDefaultUserAgent
static const QByteArray mapboxDefaultUserAgent
Definition
qmapboxcommon.h:22
mapboxGeocodingApiPath
static const QString mapboxGeocodingApiPath
Definition
qmapboxcommon.h:16
mapboxGeocodingEnterpriseApiPath
static const QString mapboxGeocodingEnterpriseApiPath
Definition
qmapboxcommon.h:17
mapboxDefaultRadius
static const qreal mapboxDefaultRadius
Definition
qmapboxcommon.h:24
mapboxDirectionsApiPath
static const QString mapboxDirectionsApiPath
Definition
qmapboxcommon.h:20
mapboxTilesApiPath
static QT_BEGIN_NAMESPACE const QString mapboxTilesApiPath
Definition
qmapboxcommon.h:13
connect
connect(manager, &QNetworkAccessManager::finished, this, &MyClass::replyFinished)
qtlocation
src
plugins
geoservices
mapbox
qmapboxcommon.h
Generated on
for Qt by
1.18.0