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

(0e69850e51d9c8aacbf5bfc37f5f085f5e48f0cb)

#include <QtCore/private/qohoslogger_p.h>
#include <QtCore/qjsonarray.h>
#include <QtCore/qjsondocument.h>
#include <QtCore/qjsonobject.h>
#include <QtCore/qurl.h>
#include <QtLocation/QGeoRouteReply>
#include <QtLocation/QGeoRouteRequest>
#include <QtNetwork/qnetworkaccessmanager.h>
#include <QtNetwork/qnetworkreply.h>
#include <QtNetwork/qnetworkrequest.h>
#include <QtPositioning/qgeocoordinate.h>
#include <bitset>
#include <qgeoroutereplyohosmapkit.h>
#include <qgeoroutingmanagerengineohosmapkit.h>
#include <qohosmapkitcommon.h>
Include dependency graph for qgeoroutingmanagerengineohosmapkit.cpp:

Go to the source code of this file.

Classes

class  QT_BEGIN_NAMESPACE::QGeoRoutingManagerEngineOhosMapKit

Namespaces

namespace  QT_BEGIN_NAMESPACE
 Combined button and popup list for selecting options.

Enumerations

enum class  QT_BEGIN_NAMESPACE::RestApiRoutingPolicy {
  QT_BEGIN_NAMESPACE::Fast = 0 , QT_BEGIN_NAMESPACE::AvoidToolRoads = 1 << 0 , QT_BEGIN_NAMESPACE::AvoidHighways = 1 << 1 , QT_BEGIN_NAMESPACE::ShortDistance = 1 << 2 ,
  QT_BEGIN_NAMESPACE::AvoidFerries = 1 << 3 , QT_BEGIN_NAMESPACE::AvoidCongestedRoads = 1 << 4 , QT_BEGIN_NAMESPACE::PrioritizeMainRoads = 1 << 5 , QT_BEGIN_NAMESPACE::SelectRoutesIntelligently = 1 << 6 ,
  QT_BEGIN_NAMESPACE::PrioritizeHighways = 1 << 7 , QT_BEGIN_NAMESPACE::TakeRoutesChangingTheLeast = 1 << 8 , QT_BEGIN_NAMESPACE::Fast = 0 , QT_BEGIN_NAMESPACE::AvoidToolRoads = 1 << 0 ,
  QT_BEGIN_NAMESPACE::AvoidHighways = 1 << 1 , QT_BEGIN_NAMESPACE::ShortDistance = 1 << 2 , QT_BEGIN_NAMESPACE::AvoidFerries = 1 << 3 , QT_BEGIN_NAMESPACE::AvoidCongestedRoads = 1 << 4 ,
  QT_BEGIN_NAMESPACE::PrioritizeMainRoads = 1 << 5 , QT_BEGIN_NAMESPACE::SelectRoutesIntelligently = 1 << 6 , QT_BEGIN_NAMESPACE::PrioritizeHighways = 1 << 7 , QT_BEGIN_NAMESPACE::TakeRoutesChangingTheLeast = 1 << 8
}
enum class  QT_BEGIN_NAMESPACE::RestApiRoutingPolicy {
  QT_BEGIN_NAMESPACE::Fast = 0 , QT_BEGIN_NAMESPACE::AvoidToolRoads = 1 << 0 , QT_BEGIN_NAMESPACE::AvoidHighways = 1 << 1 , QT_BEGIN_NAMESPACE::ShortDistance = 1 << 2 ,
  QT_BEGIN_NAMESPACE::AvoidFerries = 1 << 3 , QT_BEGIN_NAMESPACE::AvoidCongestedRoads = 1 << 4 , QT_BEGIN_NAMESPACE::PrioritizeMainRoads = 1 << 5 , QT_BEGIN_NAMESPACE::SelectRoutesIntelligently = 1 << 6 ,
  QT_BEGIN_NAMESPACE::PrioritizeHighways = 1 << 7 , QT_BEGIN_NAMESPACE::TakeRoutesChangingTheLeast = 1 << 8 , QT_BEGIN_NAMESPACE::Fast = 0 , QT_BEGIN_NAMESPACE::AvoidToolRoads = 1 << 0 ,
  QT_BEGIN_NAMESPACE::AvoidHighways = 1 << 1 , QT_BEGIN_NAMESPACE::ShortDistance = 1 << 2 , QT_BEGIN_NAMESPACE::AvoidFerries = 1 << 3 , QT_BEGIN_NAMESPACE::AvoidCongestedRoads = 1 << 4 ,
  QT_BEGIN_NAMESPACE::PrioritizeMainRoads = 1 << 5 , QT_BEGIN_NAMESPACE::SelectRoutesIntelligently = 1 << 6 , QT_BEGIN_NAMESPACE::PrioritizeHighways = 1 << 7 , QT_BEGIN_NAMESPACE::TakeRoutesChangingTheLeast = 1 << 8
}

Functions

bool QT_BEGIN_NAMESPACE::isSingleTravelMode (QGeoRouteRequest::TravelModes modes)
QJsonArray QT_BEGIN_NAMESPACE::createRestApiAvoidArray (const QGeoRouteRequest &request)
QJsonArray QT_BEGIN_NAMESPACE::createWaypointsJsonArray (const QList< QGeoCoordinate > &waypoints)
QByteArray QT_BEGIN_NAMESPACE::createRouteRequestBody (const QGeoRouteRequest &request)
QGeoRoutingManagerEnginemakeQGeoRoutingManagerEngineOhosMapKit (const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString)

Variables

const QString QT_BEGIN_NAMESPACE::routingApiBasePath = QLatin1String("https://mapapi.cloud.huawei.com/mapApi/v1/routeService/")
const QHash< QGeoRouteRequest::TravelModes, QUrlQT_BEGIN_NAMESPACE::routingApiUrl

Function Documentation

◆ makeQGeoRoutingManagerEngineOhosMapKit()

QGeoRoutingManagerEngine * makeQGeoRoutingManagerEngineOhosMapKit ( const QVariantMap & parameters,
QGeoServiceProvider::Error * error,
QString * errorString )

Definition at line 229 of file qgeoroutingmanagerengineohosmapkit.cpp.