summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeorouteparserosrmv5.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a map plugin parameter to decide U-Turn directionTasuku Suzuki2018-12-261-5/+11
| | | | | | | | | | | When "uturn" comes from OSRM, Qt returns UTurnLeft since Right Hand Traffic is in use in most countries. This commit allows qml to set traffic side to return correct u-turn direction. Task-number: QTBUG-72462 Change-Id: Ifaa002b063159b4e4ee563d007721ba7a4a587a4 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Set bounds in qgeorouteparserosrmv5.cppPaolo Angelelli2018-09-131-0/+2
| | | | | | | | This has been missing until now. Change-Id: Ida8f7aa0d14e549d1ad1a04a85d096ff5801b71e Reviewed-by: BogDan Vatra <bogdan@kdab.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add support for route legsPaolo Angelelli2018-08-241-15/+43
| | | | | | | | | | | | | | | | | | This patch adds support for route legs, that are the portions of a route between one waypoint and the next. QGeoRouteLeg in particular can be seen as an API addition to QGeoRoute in that it uses and exposes additional methods added to QGeoRoutePrivate but not used in QGeoRoute. Currently the request for legs is set to be the same as the request for the entire route. Finding the related bounding waypoints has to be done programmatically using the legIndex property. Change-Id: If462b1dc6348be16dc96b167db5500f079fe0a64 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Support Mapbox Directions API voice & banner instructionsBruno de Oliveira Abinader2018-04-111-50/+60
| | | | | | Change-Id: I89f4f9940c2a9a862ffaec066e5a7841bc00bd05 Reviewed-by: Bruno de Oliveira Abinader <brunoabinader@gmail.com> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Add OSRM's {leg,step}_index extra attribute to QGeoManeuverBruno de Oliveira Abinader2018-04-091-4/+10
| | | | | Change-Id: I3f6fd2e29a9689baa9db3efbbcc17242925484db Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Request 6-digit precision from OSRM geometriesBruno de Oliveira Abinader2018-04-061-3/+3
| | | | | | | | | | Having an additional digit provides extra detail and can return more accurate results along a path e.g. at the equator, six digits gives 10cm of precision, while five digits yields about a meter. Change-Id: Iec93ac77edbc0b355edee6e4184f1f8f8002e98a Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix warning: usage of deprecated QString()Paolo Angelelli2018-03-161-1/+6
| | | | | Change-Id: I584483bfce276132f167f2344ea731bb9d6da894 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Merge remote-tracking branch 'origin/5.10' into 5.11Liang Qi2018-02-191-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/location/declarativemaps/qdeclarativegeomap.cpp src/location/maps/qgeomap.cpp src/location/maps/qgeomap_p_p.h src/location/maps/qgeorouteparserosrmv5.cpp src/location/maps/qgeotiledmap.cpp src/positioning/positioning.pro Change-Id: I42f8b176a8f3e824c7fe5b067a958735173f0dbb
| * Increase lat/lon precision in OSRMv5::requestUrlPaolo Angelelli2018-01-091-1/+1
| | | | | | | | | | Change-Id: I1ca0565640c639419796cf32d8cefea99bd21a88 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Replace Q_DECL_OVERRIDE with overrideKevin Funk2018-02-051-2/+2
| | | | | | | | | | Change-Id: Iaa670de181255ea570fcf7bcbe465987ef7fc2fc Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | Fix OSRMv5 support to Waypoints bearingPaolo Angelelli2018-01-111-0/+2
| | | | | | | | | | | | | | OSRM API require one bearing per waypoint, or none at all. Change-Id: If83552a231b7f434a4944e02cdcfcbf552bca31f Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Support waypoints bearing in the OSRM backendPaolo Angelelli2017-12-051-2/+16
| | | | | | | | | | Change-Id: Ifbb365c316d5999a182d30d162325bee4030bd21 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Make OSRM backend return extended attributes for maneuversPaolo Angelelli2017-12-011-0/+8
| | | | | | | | | | Change-Id: Ib3644a48fa009b689c0f1f57952e5f2a4356dc6e Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Return UTurnLeft instead of Right in osrmV5Paolo Angelelli2017-11-291-1/+1
| | | | | | | | | | | | | | | | | | 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>
* | Unify OSRM backends for OSM and Mapbox pluginsPaolo Angelelli2017-11-291-5/+24
|/ | | | | | | | | | | | This patch unifies the OSRM backend in both the OSM and Mapbox plugins, adding some extra functionalities to QGeoRouteParserOsrmV5 to handle the extra osrm-text-instructions information coming from the Mapbox servers. It also adds a plugin parameter to let the user choose whether to use the server's text instructions or the plugin-generated ones. Change-Id: Id7ce73f4285e2e7db6872f40d72c0610847fce91 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* OsrmV5: Point translators to github project with translationsFriedemann Kleint2017-02-151-0/+1
| | | | | | | Add a Linguist comment containing the URL. Change-Id: Ied8e23b0fd7e645d4c6b1a1fa2f0d0d7de4530f8 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QGeoRouteParserOsrmV5: Split messagesFriedemann Kleint2017-02-131-5/+3
| | | | | | | | | Split message into distinct messages depending on argument as adding up the message may not grammatically work in all languages. Change-Id: I0c173461968834e5a42714838294596988965dc1 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Fix stringsJarek Kobus2017-01-091-4/+4
| | | | | | Change-Id: I3148a5379561eb9d741fadfc6e6f6976a117d1c5 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add OSRMv5 support in osm pluginPaolo Angelelli2016-10-061-0/+979
This patch adds support for the OSRMv5 protocol (the only one currently available on the OSRM demo server router.project.osrm.org). Support for the old v4 protocol is retained, in case of users who supply their own osm.routing.host parameter pointing at a self hosted OSRMv4 server. The support for OSRMv4 and v5 has been moved away from the osm plugin and into the location module because this should be used in the mapbox plugin in a subsequent patch (the routing support in the mapbox plugin currently uses the text direction coming from the server, which does not support i18n) Task-number: QTBUG-56119 Change-Id: Id30fd536c7fd434011795f643221f55becfc9e18 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>