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
georoutingmanagerengine_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 GEOROUTINGMANAGERENGINEESRI_H
5#define GEOROUTINGMANAGERENGINEESRI_H
6
7#include <QGeoServiceProvider>
8#include <QGeoRoutingManagerEngine>
9
10QT_BEGIN_NAMESPACE
11
12class QNetworkAccessManager;
13
15{
17
18public:
22
23 QGeoRouteReply *calculateRoute(const QGeoRouteRequest &request) override;
24
25private Q_SLOTS:
26 void replyFinished();
27 void replyError(QGeoRouteReply::Error errorCode, const QString &errorString);
28
29private:
30 QString preferedDirectionLangage();
31 QString preferedDirectionsLengthUnits();
32
33 QNetworkAccessManager *m_networkManager;
34 QByteArray m_userAgent;
35 QString m_token;
36};
37
38QT_END_NAMESPACE
39
40#endif // GEOROUTINGMANAGERENGINEESRI_H
QGeoRouteReply * calculateRoute(const QGeoRouteRequest &request) override
Begins the calculation of the route specified by request.
static const QString kParamUserAgent(kPrefixEsri+QStringLiteral("useragent"))
static const QString kParamToken(kPrefixEsri+QStringLiteral("token"))
static QT_BEGIN_NAMESPACE const QString kPrefixEsri(QStringLiteral("esri."))
static const QString kUrlRouting(QStringLiteral("https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve"))