diff options
-rw-r--r-- | src/location/maps/qgeorouteparserosrmv5.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/location/maps/qgeorouteparserosrmv5.cpp b/src/location/maps/qgeorouteparserosrmv5.cpp index 275da2c3..39910229 100644 --- a/src/location/maps/qgeorouteparserosrmv5.cpp +++ b/src/location/maps/qgeorouteparserosrmv5.cpp @@ -48,6 +48,7 @@ #include <QtCore/QJsonArray> #include <QtCore/QUrlQuery> #include <QtPositioning/private/qlocationutils_p.h> +#include <QtPositioning/qgeopath.h> QT_BEGIN_NAMESPACE @@ -996,6 +997,7 @@ QGeoRouteReply::Error QGeoRouteParserOsrmV5Private::parseReply(QList<QGeoRoute> route.setTravelTime(travelTime); if (!path.isEmpty()) { route.setPath(path); + route.setBounds(QGeoPath(path).boundingGeoRectangle()); route.setFirstRouteSegment(segments.first()); } route.setRouteLegs(routeLegs); |