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

Profile that defines costs base of the time the traveling device needs for a certain way resulting in the fastest path chosen (cost=distance/speedForWayType). More...

#include <RoutingProfile.h>

+ Inheritance diagram for osmscout::FastestPathRoutingProfile:

Public Member Functions

 FastestPathRoutingProfile (const TypeConfigRef &typeConfig)
 
double GetCosts (const RouteNode &currentNode, const std::vector< ObjectVariantData > &objectVariantData, size_t pathIndex) const
 
double GetCosts (const Area &area, double distance) const
 
double GetCosts (const Way &way, double distance) const
 
double GetCosts (double distance) const
 
- Public Member Functions inherited from osmscout::AbstractRoutingProfile
 AbstractRoutingProfile (const TypeConfigRef &typeConfig)
 
void AddType (const TypeInfoRef &type, double speed)
 
bool CanUse (const RouteNode &currentNode, const std::vector< ObjectVariantData > &objectVariantData, size_t pathIndex) const
 
bool CanUse (const Area &area) const
 
bool CanUse (const Way &way) const
 
bool CanUseBackward (const Way &way) const
 
bool CanUseForward (const Way &way) const
 
double GetCostLimitDistance () const
 
double GetCostLimitFactor () const
 
double GetTime (const Area &area, double distance) const
 
double GetTime (const Way &way, double distance) const
 
Vehicle GetVehicle () const
 
void ParametrizeForBicycle (const TypeConfig &typeConfig, double maxSpeed)
 
bool ParametrizeForCar (const TypeConfig &typeConfig, const std::map< std::string, double > &speedMap, double maxSpeed)
 
void ParametrizeForFoot (const TypeConfig &typeConfig, double maxSpeed)
 
void SetCostLimitDistance (double costLimitDistance)
 seet SetCostLimitFactor() More...
 
void SetCostLimitFactor (double costLimitFactor)
 The router tries to minimize the actual costs of the route. More...
 
void SetVehicle (Vehicle vehicle)
 
void SetVehicleMaxSpeed (double maxSpeed)
 
- Public Member Functions inherited from osmscout::RoutingProfile
virtual ~RoutingProfile ()
 

Additional Inherited Members

- Protected Attributes inherited from osmscout::AbstractRoutingProfile
AccessFeatureValueReader accessReader
 
double costLimitDistance
 
double costLimitFactor
 
double maxSpeed
 
MaxSpeedFeatureValueReader maxSpeedReader
 
double minSpeed
 
std::vector< double > speeds
 
TypeConfigRef typeConfig
 
Vehicle vehicle
 
double vehicleMaxSpeed
 
uint8_t vehicleRouteNodeBit
 

Detailed Description

Profile that defines costs base of the time the traveling device needs for a certain way resulting in the fastest path chosen (cost=distance/speedForWayType).

Constructor & Destructor Documentation

osmscout::FastestPathRoutingProfile::FastestPathRoutingProfile ( const TypeConfigRef typeConfig)

Member Function Documentation

double osmscout::FastestPathRoutingProfile::GetCosts ( const RouteNode currentNode,
const std::vector< ObjectVariantData > &  objectVariantData,
size_t  pathIndex 
) const
inlinevirtual
double osmscout::FastestPathRoutingProfile::GetCosts ( const Area &  area,
double  distance 
) const
inlinevirtual
double osmscout::FastestPathRoutingProfile::GetCosts ( const Way &  way,
double  distance 
) const
inlinevirtual
double osmscout::FastestPathRoutingProfile::GetCosts ( double  distance) const
inlinevirtual

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