[Interest] routing directions from mapboxgl

Marek.FloriaƄczyk marek.florianczyk at gmail.com
Tue Jul 10 12:54:23 CEST 2018


Hi all,

I can't make mapbox plugin to return route directions in any language except English, eg. 
I'm trying Deutsch, I can set locales property of the plugin or add PluginParameters.
plugin: Plugin {
    name: "mapbox"
    locales:"de_DE"
	  PluginParameter {
        name: "language"
        value: "de"
    }
}

According to mapbox docs 
https://www.mapbox.com/api-documentation/#retrieve-directions
There is query parameter "language" but no matter what I set in QML, this parameter seems 
to be omitted by RouteQuery, what I get from debug is:

QUrl("https://api.mapbox.com/directions/v5/mapbox/driving/
21.1610200,52.1978600;21.1795630,52.1951690?
overview=full&steps=true&geometries=polyline6&alternatives=true&bearings=0,180;0,180&
access_token=my_token&voice_instructions=true&banner_instructions=true")

So if I can't pass language parameter in query, I can't get localized instructions.
I was testing on Qt 5.10 and 5.11.0 on Linux 64Bit 
Can someone help please ?

Best Regards
Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180710/3db0a2c9/attachment.html>


More information about the Interest mailing list