diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-11-28 11:28:08 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-11-29 23:02:30 +0000 |
commit | e080395b0288e1b68f557b5a343d1cff0b5024df (patch) | |
tree | 409a6678729c7468b980f9225c593688ce952b48 /src/location | |
parent | fe821df2179d496a3ffc853076e9c62f96abde2a (diff) | |
download | qtlocation-e080395b0288e1b68f557b5a343d1cff0b5024df.tar.gz |
Return UTurnLeft instead of Right in osrmV5
Since Right Hand Traffic is in use in most countries, it makes sense to
return UTurnLeft instead of Right.
This should be possibly made Locale-specific, in the future.
Change-Id: Ib580d9ae0a9278809c77750ca9791b3aaacc974d
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location')
-rw-r--r-- | src/location/maps/qgeorouteparserosrmv5.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeorouteparserosrmv5.cpp b/src/location/maps/qgeorouteparserosrmv5.cpp index 38eeb243..e232f3d4 100644 --- a/src/location/maps/qgeorouteparserosrmv5.cpp +++ b/src/location/maps/qgeorouteparserosrmv5.cpp @@ -782,7 +782,7 @@ static QGeoManeuver::InstructionDirection instructionDirection(const QJsonObject else if (modifier == QLatin1String("slight right")) return QGeoManeuver::DirectionLightRight; else if (modifier == QLatin1String("uturn")) - return QGeoManeuver::DirectionUTurnRight; + return QGeoManeuver::DirectionUTurnLeft; // This should rather be country-specific. In UK, f.ex. one should rather UTurn Right else if (modifier == QLatin1String("left")) return QGeoManeuver::DirectionLeft; else if (modifier == QLatin1String("sharp left")) |