Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
1.2.x
-
None
-
N950
Description
Requesting a rout via QGeoRoutingManager fails with language set to QLocale::C.
This might no be a Qt specific bug but a bug I the navteq service used by the routing plugin.
Resulting error:
<e:Error xmlns:e="http://www.navteq.com/lbsp/Errors/1" type="ApplicationError" subtype="InvalidInputData">
<Details>
Expected format: a single language subtag composed of 2 or 3 letters potentially followed by extended language subtag separated by hyphen and composed of 2 or 3 letters
</Details>
<AdditionalData key="language">C</AdditionalData>
</e:Error>
A simple workaround:
if(m_routingManager->locale().language() == QLocale::C)
m_routingManager->setLocale(QLocale(QLocale::English));