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

#include <RoutePostprocessor.h>

Classes

class  CrossingWaysPostprocessor
 Places a crossing ways description as a description of the name of all ways crossing the given node. More...
 
class  DestinationPostprocessor
 Evaluates destination tags, hinting at the destination of a way. More...
 
class  DirectionPostprocessor
 Places a turn description for every node. More...
 
class  DistanceAndTimePostprocessor
 Calculates the overall running distance and time for each node. More...
 
class  InstructionPostprocessor
 Generates drive instructions. More...
 
class  MaxSpeedPostprocessor
 
class  MotorwayJunctionPostprocessor
 Adds driving hint based on motorway_junction tags. More...
 
class  Postprocessor
 
class  StartPostprocessor
 Places the given description at the start node. More...
 
class  TargetPostprocessor
 Places the given description at the target node. More...
 
class  WayNamePostprocessor
 Places a name description as way description. More...
 
class  WayTypePostprocessor
 Places a name description as way description. More...
 

Public Types

typedef std::shared_ptr
< InstructionPostprocessor
InstructionPostprocessorRef
 
typedef std::shared_ptr
< Postprocessor
PostprocessorRef
 

Public Member Functions

bool CanUseBackward (const DatabaseId &dbId, Id fromNodeId, const ObjectFileRef &object) const
 
bool CanUseForward (const DatabaseId &dbId, Id fromNodeId, const ObjectFileRef &object) const
 
AreaRef GetArea (const DBFileOffset &offset) const
 
GeoCoord GetCoordinates (const RouteDescription::Node &node, size_t nodeIndex) const
 
RouteDescription::DestinationDescriptionRef GetDestination (const RouteDescription::Node &node) const
 
uint8_t GetMaxSpeed (const RouteDescription::Node &node) const
 
RouteDescription::NameDescriptionRef GetNameDescription (const RouteDescription::Node &node) const
 
RouteDescription::NameDescriptionRef GetNameDescription (const DatabaseId dbId, const ObjectFileRef &object) const
 
RouteDescription::NameDescriptionRef GetNameDescription (const DatabaseId dbId, const Area &area) const
 
RouteDescription::NameDescriptionRef GetNameDescription (const DatabaseId dbId, const Way &way) const
 
Id GetNodeId (const RouteDescription::Node &node) const
 
size_t GetNodeIndex (const RouteDescription::Node &node, Id nodeId) const
 
double GetTime (DatabaseId dbId, const Area &area, double deltaDistance) const
 
double GetTime (DatabaseId dbId, const Way &way, double deltaDistance) const
 
WayRef GetWay (const DBFileOffset &offset) const
 
bool IsBackwardPath (const ObjectFileRef &object, size_t fromNodeIndex, size_t toNodeIndex) const
 
bool IsBridge (const RouteDescription::Node &node) const
 
bool IsForwardPath (const ObjectFileRef &object, size_t fromNodeIndex, size_t toNodeIndex) const
 
bool IsMotorway (const RouteDescription::Node &node) const
 
bool IsMotorwayLink (const RouteDescription::Node &node) const
 
bool IsNodeStartOrEndOfObject (const RouteDescription::Node &node, const ObjectFileRef &object) const
 
bool IsRoundabout (const RouteDescription::Node &node) const
 
bool LoadJunction (DatabaseId database, GeoCoord coord, std::string junctionRef, std::string junctionName) const
 
bool PostprocessRouteDescription (RouteDescription &description, std::map< DatabaseId, RoutingProfileRef > &profiles, std::map< DatabaseId, DatabaseRef > &databases, std::list< PostprocessorRef > processors, std::set< std::string > motorwayTypeNames=std::set< std::string >(), std::set< std::string > motorwayLinkTypeNames=std::set< std::string >(), std::set< std::string > junctionTypeNames=std::set< std::string >())
 
 RoutePostprocessor ()
 

Member Typedef Documentation

Constructor & Destructor Documentation

osmscout::RoutePostprocessor::RoutePostprocessor ( )

Member Function Documentation

bool osmscout::RoutePostprocessor::CanUseBackward ( const DatabaseId dbId,
Id  fromNodeId,
const ObjectFileRef object 
) const
bool osmscout::RoutePostprocessor::CanUseForward ( const DatabaseId dbId,
Id  fromNodeId,
const ObjectFileRef object 
) const
RouteDescription::NameDescriptionRef osmscout::RoutePostprocessor::GetNameDescription ( const DatabaseId  dbId,
const ObjectFileRef object 
) const
RouteDescription::NameDescriptionRef osmscout::RoutePostprocessor::GetNameDescription ( const DatabaseId  dbId,
const Area area 
) const
RouteDescription::NameDescriptionRef osmscout::RoutePostprocessor::GetNameDescription ( const DatabaseId  dbId,
const Way way 
) const
double osmscout::RoutePostprocessor::GetTime ( DatabaseId  dbId,
const Area area,
double  deltaDistance 
) const
double osmscout::RoutePostprocessor::GetTime ( DatabaseId  dbId,
const Way way,
double  deltaDistance 
) const
bool osmscout::RoutePostprocessor::IsBackwardPath ( const ObjectFileRef object,
size_t  fromNodeIndex,
size_t  toNodeIndex 
) const
bool osmscout::RoutePostprocessor::IsForwardPath ( const ObjectFileRef object,
size_t  fromNodeIndex,
size_t  toNodeIndex 
) const
bool osmscout::RoutePostprocessor::PostprocessRouteDescription ( RouteDescription description,
std::map< DatabaseId, RoutingProfileRef > &  profiles,
std::map< DatabaseId, DatabaseRef > &  databases,
std::list< PostprocessorRef processors,
std::set< std::string >  motorwayTypeNames = std::set<std::string>(),
std::set< std::string >  motorwayLinkTypeNames = std::set<std::string>(),
std::set< std::string >  junctionTypeNames = std::set<std::string>() 
)

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