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
QGeoRouteParserOsrmV5ExtensionMapbox Class Reference
+ Inheritance diagram for QGeoRouteParserOsrmV5ExtensionMapbox:
+ Collaboration diagram for QGeoRouteParserOsrmV5ExtensionMapbox:

Public Member Functions

 QGeoRouteParserOsrmV5ExtensionMapbox (const QString &accessToken, bool useMapboxTextInstructions)
 
void updateQuery (QUrlQuery &query) const override
 
void updateSegment (QGeoRouteSegment &segment, const QJsonObject &step, const QJsonObject &maneuver) const override
 
- Public Member Functions inherited from QGeoRouteParserOsrmV5Extension
 QGeoRouteParserOsrmV5Extension ()
 
virtual ~QGeoRouteParserOsrmV5Extension ()
 

Public Attributes

QString m_accessToken
 
bool m_useMapboxTextInstructions = false
 

Detailed Description

Definition at line 20 of file qgeoroutingmanagerenginemapbox.cpp.

Constructor & Destructor Documentation

◆ QGeoRouteParserOsrmV5ExtensionMapbox()

QGeoRouteParserOsrmV5ExtensionMapbox::QGeoRouteParserOsrmV5ExtensionMapbox ( const QString & accessToken,
bool useMapboxTextInstructions )

Definition at line 31 of file qgeoroutingmanagerenginemapbox.cpp.

Member Function Documentation

◆ updateQuery()

void QGeoRouteParserOsrmV5ExtensionMapbox::updateQuery ( QUrlQuery & query) const
overridevirtual

Implements QGeoRouteParserOsrmV5Extension.

Definition at line 37 of file qgeoroutingmanagerenginemapbox.cpp.

References QString::isEmpty(), m_accessToken, QLocale::MetricSystem, and QLocale::system().

+ Here is the call graph for this function:

◆ updateSegment()

void QGeoRouteParserOsrmV5ExtensionMapbox::updateSegment ( QGeoRouteSegment & segment,
const QJsonObject & step,
const QJsonObject & maneuver ) const
overridevirtual

Implements QGeoRouteParserOsrmV5Extension.

Definition at line 161 of file qgeoroutingmanagerenginemapbox.cpp.

References QMap< Key, T >::insert(), m_useMapboxTextInstructions, parseMapboxBannerInstructions(), parseMapboxVoiceInstructions(), QJsonValue::toString(), and QJsonObject::value().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_accessToken

QString QGeoRouteParserOsrmV5ExtensionMapbox::m_accessToken

Definition at line 27 of file qgeoroutingmanagerenginemapbox.cpp.

Referenced by updateQuery().

◆ m_useMapboxTextInstructions

bool QGeoRouteParserOsrmV5ExtensionMapbox::m_useMapboxTextInstructions = false

Definition at line 28 of file qgeoroutingmanagerenginemapbox.cpp.

Referenced by updateSegment().


The documentation for this class was generated from the following file: