Is there any method to know the Country which is driving on left or right?(QtLocation)

Description

We use QtLocation to make a navigation application.

We find there is a difference bettown the left-driving and right-driving country when come across an U-trun. In UK, f.ex. one should rather UTurn Right, but  in USA, one should rather UTurn Left. 

It is a static number in the current qt source. qtlocation/src/location/maps/qgeorouteparserosrmv5.cpp                                          static QGeoManeuver::InstructionDirection instructionDirection(const QJsonObject &maneuver) 

else if (modifier == QLatin1String("uturn")) return QGeoManeuver::DirectionUTurnRight;

So,is there any method to know the current Country which is driving on left or right?

 

 

Environment

None

Activity

Tasuku SuzukiDecember 28, 2018 at 3:18 PM

Upstream now supports it here https://codereview.qt-project.org/247835

Please backport the commit onto the Qt in AGL

Tasuku SuzukiDecember 11, 2018 at 6:14 AM

Wrote a request in the upstream project - https://bugreports.qt.io/browse/QTBUG-72462

Fixed

Details

Assignee

Reporter

Components

Affects versions

Due date

Priority

Created November 9, 2018 at 5:47 AM
Updated January 23, 2019 at 3:21 AM
Resolved January 2, 2019 at 9:27 AM