summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/mapbox/qgeoroutereplymapbox.cpp
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-08-18 21:51:49 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-08-27 14:37:42 +0000
commita011969f842d662b593e6b33c09dedd90c82de9c (patch)
treeb01b95240e34f58d06d5e3f47a56a107389d399f /src/plugins/geoservices/mapbox/qgeoroutereplymapbox.cpp
parent0a6315b7a2a00d56a101c4a2ea165242d356e024 (diff)
downloadqtlocation-a011969f842d662b593e6b33c09dedd90c82de9c.tar.gz
Set the request into QGeoRoute results in osm, mapbox plugins
Change-Id: Iec8d1cb9ad369fe765e34bdcff2512e2726797ad Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/geoservices/mapbox/qgeoroutereplymapbox.cpp')
-rw-r--r--src/plugins/geoservices/mapbox/qgeoroutereplymapbox.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/geoservices/mapbox/qgeoroutereplymapbox.cpp b/src/plugins/geoservices/mapbox/qgeoroutereplymapbox.cpp
index c5f9d38c..8b0772ad 100644
--- a/src/plugins/geoservices/mapbox/qgeoroutereplymapbox.cpp
+++ b/src/plugins/geoservices/mapbox/qgeoroutereplymapbox.cpp
@@ -127,6 +127,13 @@ void QGeoRouteReplyMapbox::networkReplyFinished()
QByteArray routeReply = reply->readAll();
QGeoRouteReply::Error error = parser->parseReply(routes, errorString, routeReply);
+ // Setting the request into the result
+ for (QGeoRoute &route : routes) {
+ route.setRequest(request());
+ for (QGeoRoute &leg: route.routeLegs()) {
+ leg.setRequest(request());
+ }
+ }
QVariantMap metadata;
metadata["osrm.reply-json"] = routeReply;