libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::RouteDescription::DirectionDescription Class Reference

Describes the turn and the curve while getting from the previous node to the next node via the current node. More...

#include <Route.h>

+ Inheritance diagram for osmscout::RouteDescription::DirectionDescription:

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
 
Move GetTurn () const
 
double GetTurnAngle () const
 
- Public Member Functions inherited from osmscout::RouteDescription::Description
virtual ~Description ()
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator
sharpLeft 
left 
slightlyLeft 
straightOn 
slightlyRight 
right 
sharpRight 

Constructor & Destructor Documentation

osmscout::RouteDescription::DirectionDescription::DirectionDescription ( double  turnAngle,
double  curveAngle 
)

Member Function Documentation

Move osmscout::RouteDescription::DirectionDescription::GetCurve ( ) const
inline
double osmscout::RouteDescription::DirectionDescription::GetCurveAngle ( ) const
inline
std::string osmscout::RouteDescription::DirectionDescription::GetDebugString ( ) const
virtual
Move osmscout::RouteDescription::DirectionDescription::GetTurn ( ) const
inline
double osmscout::RouteDescription::DirectionDescription::GetTurnAngle ( ) const
inline

The documentation for this class was generated from the following files: