libosmscout
0.1
|
#include <RouteDescription.h>
Public Types | |
enum | Move { sharpLeft, left, slightlyLeft, straightOn, slightlyRight, right, sharpRight } |
Public Member Functions | |
DirectionDescription (double turnAngle, double curveAngle) | |
Move | GetCurve () const |
double | GetCurveAngle () const |
std::string | GetDebugString () const override |
Move | GetTurn () const |
double | GetTurnAngle () const |
![]() | |
virtual | ~Description ()=default |
Describes the turn and the curve while getting from the previous node to the next node via the current node.
The turn is the angle between the incoming way (previous node and current node) and the outgoing way (current node and next node) at the given node.
The curve is a heuristic measurement that not only take the next node of the target way into account (which could only the start of a slight curve) but tries to determine the last node of the curve and this gives a better description of the curve the vehicle needs to take.
osmscout::RouteDescription::DirectionDescription::DirectionDescription | ( | double | turnAngle, |
double | curveAngle | ||
) |
|
inline |
|
inline |
|
overridevirtual |
Implements osmscout::RouteDescription::Description.
|
inline |
|
inline |