16 "https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve"));
61 query.addQueryItem(
QStringLiteral(
"directionsLengthUnits"), preferedDirectionsLengthUnits());
71 this, &GeoRoutingManagerEngineEsri::replyFinished);
73 this, &GeoRoutingManagerEngineEsri::replyError);
78void GeoRoutingManagerEngineEsri::replyFinished()
92QString GeoRoutingManagerEngineEsri::preferedDirectionLangage()
131 if (supportedLanguages.contains(country))
137QString GeoRoutingManagerEngineEsri::preferedDirectionsLengthUnits()
GeoRoutingManagerEngineEsri(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
virtual ~GeoRoutingManagerEngineEsri()
QGeoRouteReply * calculateRoute(const QGeoRouteRequest &request) override
void finished()
This signal is emitted when this reply has finished processing.
Error
Describes an error which prevented the completion of the operation.
void errorOccurred(QGeoRouteReply::Error error, const QString &errorString=QString())
This signal is emitted when an error has been detected in the processing of this reply.
QLocale::MeasurementSystem measurementSystem() const
Returns the measurement system used by this manager.
QLocale locale() const
Returns the locale used to hint to this routing manager about what language to use for addresses and ...
void errorOccurred(QGeoRouteReply *reply, QGeoRouteReply::Error error, const QString &errorString=QString())
This signal is emitted when an error has been detected in the processing of reply.
void finished(QGeoRouteReply *reply)
This signal is emitted when reply has finished processing.
Error
Describes an error related to the loading and setup of a service provider plugin.
T value(const Key &key, const T &defaultValue=T()) const
bool contains(const Key &key) const
The QNetworkAccessManager class allows the application to send network requests and receive replies.
QNetworkReply * get(const QNetworkRequest &request)
Posts a request to obtain the contents of the target request and returns a new QNetworkReply object o...
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
void setHeader(KnownHeaders header, const QVariant &value)
Sets the value of the known header header to be value, overriding any previously set headers.
void setUrl(const QUrl &url)
Sets the URL this network request is referring to be url.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
\macro QT_RESTRICTED_CAST_FROM_ASCII
QByteArray toLatin1() const &
void clear()
Clears the contents of the string and makes it null.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setQuery(const QString &query, ParsingMode mode=TolerantMode)
Sets the query string of the URL to query.
QString toString() const
Returns the variant as a QString if the variant has a userType() including, but not limited to:
static const QString kParamUserAgent(kPrefixEsri+QStringLiteral("useragent"))
static const QString kParamUserAgent(kPrefixEsri+QStringLiteral("useragent"))
static const QString kParamToken(kPrefixEsri+QStringLiteral("token"))
static const QString kUrlRouting(QStringLiteral("https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve"))
static QT_BEGIN_NAMESPACE const QString kPrefixEsri(QStringLiteral("esri."))
Combined button and popup list for selecting options.
#define QByteArrayLiteral(str)
DBusConnection const char DBusError * error
#define QStringLiteral(str)
QUrl url("example.com")
[constructor-url-reference]
QNetworkRequest request(url)
\inmodule QtCore \reentrant