Add support for route legs
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>
| commit | 0a6315b7a2a00d56a101c4a2ea165242d356e024 |
| parent | 34ee76720ee09ac692ea149ce44413cb5c0c7b99 |
| author | Paolo Angelelli <paolo.angelelli@qt.io> |
| committer | Paolo Angelelli <paolo.angelelli@qt.io> |
| commit time | Fri, 24 Aug 2018 11:54:22 +0000 |
- M src/imports/location/location.cpp
- M src/location/declarativemaps/qdeclarativegeoroute.cpp
- M src/location/declarativemaps/qdeclarativegeoroute_p.h
- M src/location/maps/qgeoroute.cpp
- M src/location/maps/qgeoroute.h
- M src/location/maps/qgeoroute_p.h
- M src/location/maps/qgeorouteparserosrmv5.cpp
- M src/location/maps/qgeoroutesegment.cpp
- M src/location/maps/qgeoroutesegment.h
- M src/location/maps/qgeoroutesegment_p.h