Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
georoutejsonparser_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 GEOROUTEJSONPARSERESRI_H
5#define GEOROUTEJSONPARSERESRI_H
6
7#include <QJsonDocument>
8#include <QJsonObject>
9#include <QGeoRoute>
10#include <QMap>
11
13
15{
16public:
18
19 QList<QGeoRoute> routes() const;
20 bool isValid() const;
21 QString errorString() const;
22
23private:
24 void parseDirections();
25 void parseDirection(const QJsonObject &direction);
26 void parseRoutes();
27 void parseRoute(const QJsonObject &route);
28
29 QString m_error;
30 QMap<int, QGeoRoute> m_routes;
31 QJsonObject m_json;
32};
33
35
36#endif // GEOROUTEJSONPARSERESRI_H
QList< QGeoRoute > routes() const
GeoRouteJsonParserEsri(const QJsonDocument &document)
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
Definition qjsonobject.h:20
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
direction
Combined button and popup list for selecting options.