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
qgeorouteparserosrmv4.cpp File Reference

(cd4db512ae08836f5fa1d746000052215cf70a9c)

#include "qgeorouteparserosrmv4_p.h"
#include "qgeoroutesegment.h"
#include "qgeomaneuver.h"
#include <QtLocation/private/qgeorouteparser_p_p.h>
#include <QtCore/private/qobject_p.h>
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonObject>
#include <QtCore/QJsonArray>
#include <QtCore/QUrlQuery>
+ Include dependency graph for qgeorouteparserosrmv4.cpp:

Go to the source code of this file.

Classes

class  QGeoRouteParserOsrmV4Private
 

Functions

static QT_BEGIN_NAMESPACE QList< QGeoCoordinateparsePolyline (const QByteArray &data)
 
static QGeoManeuver::InstructionDirection osrmInstructionDirection (const QString &instructionCode, QGeoRouteParser::TrafficSide trafficSide)
 
static QString osrmInstructionText (const QString &instructionCode, const QString &wayname)
 
static QGeoRoute constructRoute (const QByteArray &geometry, const QJsonArray &instructions, const QJsonObject &summary, QGeoRouteParser::TrafficSide trafficSide)
 

Function Documentation

◆ constructRoute()

static QGeoRoute constructRoute ( const QByteArray & geometry,
const QJsonArray & instructions,
const QJsonObject & summary,
QGeoRouteParser::TrafficSide trafficSide )
static

Definition at line 215 of file qgeorouteparserosrmv4.cpp.

References QJsonArray::at(), QString::at(), QJsonArray::count(), i, osrmInstructionDirection(), osrmInstructionText(), parsePolyline(), position(), QStringLiteral, qWarning, QGeoManeuver::setDirection(), QGeoRoute::setDistance(), QGeoRouteSegment::setDistance(), QGeoManeuver::setDistanceToNextInstruction(), QGeoRoute::setFirstRouteSegment(), QGeoManeuver::setInstructionText(), QGeoRoute::setPath(), QGeoManeuver::setPosition(), QGeoManeuver::setTimeToNextInstruction(), QGeoRoute::setTravelTime(), time, QJsonValue::toArray(), toDouble(), and QJsonObject::value().

Referenced by QGeoRouteParserOsrmV4Private::parseReply().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ osrmInstructionDirection()

◆ osrmInstructionText()

static QString osrmInstructionText ( const QString & instructionCode,
const QString & wayname )
static

Definition at line 100 of file qgeorouteparserosrmv4.cpp.

Referenced by constructRoute().

+ Here is the caller graph for this function:

◆ parsePolyline()

static QT_BEGIN_NAMESPACE QList< QGeoCoordinate > parsePolyline ( const QByteArray & data)
static

Definition at line 17 of file qgeorouteparserosrmv4.cpp.

References i, and shift().

Referenced by constructRoute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: