summaryrefslogtreecommitdiff
path: root/src/location/maps
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-01-10 12:22:51 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-01-11 14:42:24 +0000
commitd1e4004466fea876d8da78b4764ca23d525cec86 (patch)
tree1a7ad0d2e47b5feb0b926928e0e34bf83d2817e3 /src/location/maps
parenta511cdcc0f47f3c9254e361c6cc7e4ea6f98529f (diff)
downloadqtlocation-d1e4004466fea876d8da78b4764ca23d525cec86.tar.gz
Fix OSRMv5 support to Waypoints bearing
OSRM API require one bearing per waypoint, or none at all. Change-Id: If83552a231b7f434a4944e02cdcfcbf552bca31f Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/maps')
-rw-r--r--src/location/maps/qgeorouteparserosrmv5.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/location/maps/qgeorouteparserosrmv5.cpp b/src/location/maps/qgeorouteparserosrmv5.cpp
index e47901b7..83419b20 100644
--- a/src/location/maps/qgeorouteparserosrmv5.cpp
+++ b/src/location/maps/qgeorouteparserosrmv5.cpp
@@ -982,6 +982,8 @@ QUrl QGeoRouteParserOsrmV5Private::requestUrl(const QGeoRouteRequest &request, c
if (meta.contains(QStringLiteral("bearing"))) {
qreal bearing = meta.value(QStringLiteral("bearing")).toDouble();
bearings.append(QString::number(int(bearing))).append(QLatin1Char(',')).append(QStringLiteral("90")); // 90 is the angle of maneuver allowed.
+ } else {
+ bearings.append(QStringLiteral("0,180")); // 180 here means anywhere
}
}
++notFirst;