Route Class Reference
Container for a single route.
More...
#include <route.h>
List of all members.
Detailed Description
Container for a single route.
Contains all data for a single route including route geometry points (a.k.a track points) and route segments.
- Author:
- Sami Rämö - sami.ramo@ixonos.com
Member Function Documentation
void Route::appendGeometryPoint |
( |
const GeoCoordinate & |
geometryPoint |
) |
|
Append geometry point (a.k.a track point) of the route.
Appending must be done in order starting from the beginning of the route.
- Parameters:
-
| geometryPoint | Geometry point |
Append a route segment to the route.
Appending must be done in order starting from the beginning of the route.
- Parameters:
-
| segment | Route segment object |
const QString & Route::endPointName |
( |
|
) |
const |
Getter for route end point name.
- Returns:
- Name of the end point (or empty QString)
Get list of geometry points.
- Returns:
- Reference to list of geometry points
Get list of route segments.
- Returns:
- Reference to list of route segments
void Route::setEndPointName |
( |
const QString & |
endPoint |
) |
|
Set name of the route end point.
- Parameters:
-
| endPoint | Name of the end point |
void Route::setStartPointName |
( |
const QString & |
startPoint |
) |
|
Set name of the route start point.
- Parameters:
-
| startPoint | Name of the route start point |
void Route::setTotalDistance |
( |
int |
meters |
) |
|
Set total distance of the route.
- Parameters:
-
| meters | Total distance of the route in meters |
void Route::setTotalTime |
( |
int |
seconds |
) |
|
Set estimated total travel time of the route.
- Parameters:
-
| seconds | Estimated total travel time |
const QString & Route::startPointName |
( |
|
) |
const |
Getter for route start point name.
- Returns:
- Name of the start point (or empty QString)
int Route::totalDistance |
( |
|
) |
const |
Getter for total route distance.
- Returns:
- Total route distance in meters
int Route::totalTime |
( |
|
) |
const |
Getter for estimated travel time.
- Returns:
- Estimated travel time in seconds
The documentation for this class was generated from the following files:
- src/routing/route.h
- src/routing/route.cpp