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

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

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

◆ Move

Enumerator
sharpLeft 
left 
slightlyLeft 
straightOn 
slightlyRight 
right 
sharpRight 

Constructor & Destructor Documentation

◆ DirectionDescription()

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

Member Function Documentation

◆ GetCurve()

Move osmscout::RouteDescription::DirectionDescription::GetCurve ( ) const
inline

◆ GetCurveAngle()

double osmscout::RouteDescription::DirectionDescription::GetCurveAngle ( ) const
inline

◆ GetDebugString()

std::string osmscout::RouteDescription::DirectionDescription::GetDebugString ( ) const
overridevirtual

◆ GetTurn()

Move osmscout::RouteDescription::DirectionDescription::GetTurn ( ) const
inline

◆ GetTurnAngle()

double osmscout::RouteDescription::DirectionDescription::GetTurnAngle ( ) const
inline

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