QGeoRoute Class

The QGeoRoute class represents a route between two points. More...

Header: #include <QGeoRoute>
qmake: QT += location
Since: Qt 5.6
Inherited By:

QGeoRouteLeg

This class was introduced in Qt 5.6.

Detailed Description

A QGeoRoute object contains high level information about a route, such as the length the route, the estimated travel time for the route, and enough information to render a basic image of the route on a map.

The QGeoRoute object also contains a list of QGeoRouteSegment objecs which describe subsections of the route in greater detail.

Routing information is normally requested using QGeoRoutingManager::calculateRoute(), which returns a QGeoRouteReply instance. If the operation is completed successfully the routing information can be accessed with QGeoRouteReply::routes()

See also QGeoRoutingManager.