CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoTypeCore::VehicleType Class Reference

#include <cartotype_navigation.h>

Public Member Functions

bool operator== (const VehicleType &aOther) const
 
bool ObeysOneWay () const
 
bool WalkingAllowed () const
 
bool CyclingAllowed () const
 
void Normalize ()
 

Public Attributes

uint32_t AccessFlags = FeatureInfo::KRouteAccessMotorVehicleFlag | FeatureInfo::KRouteAccessWrongWayFlag
 
double Weight = 0
 
double AxleLoad = 0
 
double DoubleAxleLoad = 0
 
double TripleAxleLoad = 0
 
double Height = 0
 
double Width = 0
 
double Length = 0
 
bool HazMat = false
 

Detailed Description

A vehicle type used in routing.

Member Function Documentation

◆ CyclingAllowed()

bool CartoTypeCore::VehicleType::CyclingAllowed ( ) const
inline

True if cycling (access to cycle routes) is allowed.

◆ Normalize()

void CartoTypeCore::VehicleType::Normalize ( )
inline

Normalizes the vehicle type: ensures that the 'other acccess' flag is set if and only if vehicle details are given, and that weights and dimensions are non-negative.

◆ ObeysOneWay()

bool CartoTypeCore::VehicleType::ObeysOneWay ( ) const
inline

True if this vehicle type obeys one-way restrictions. Pedestrian types usually do not.

◆ operator==()

bool CartoTypeCore::VehicleType::operator== ( const VehicleType aOther) const
inline

The equality operator.

◆ WalkingAllowed()

bool CartoTypeCore::VehicleType::WalkingAllowed ( ) const
inline

True if walking (access to pedestrian routes) is allowed.

Member Data Documentation

◆ AccessFlags

uint32_t CartoTypeCore::VehicleType::AccessFlags = FeatureInfo::KRouteAccessMotorVehicleFlag | FeatureInfo::KRouteAccessWrongWayFlag

Flags taken from FeatureInfo indicating the vehicle type. Arcs with restrictions matching any of these flags will not be taken.

◆ AxleLoad

double CartoTypeCore::VehicleType::AxleLoad = 0

The vehicle's axle load in metric tons. Values of zero or less mean 'unknown'.

◆ DoubleAxleLoad

double CartoTypeCore::VehicleType::DoubleAxleLoad = 0

The vehicle's double axle load in metric tons. Values of zero or less mean 'unknown'.

◆ HazMat

bool CartoTypeCore::VehicleType::HazMat = false

True if the vehicle is carrying hazardous materials.

◆ Height

double CartoTypeCore::VehicleType::Height = 0

The vehicle's height in meters. Values of zero or less mean 'unknown'.

◆ Length

double CartoTypeCore::VehicleType::Length = 0

The vehicle's length in meters. Values of zero or less mean 'unknown'.

◆ TripleAxleLoad

double CartoTypeCore::VehicleType::TripleAxleLoad = 0

The vehicle's triple axle weight in metric tons. Values of zero or less mean 'unknown'.

◆ Weight

double CartoTypeCore::VehicleType::Weight = 0

The vehicle's weight in metric tons. Values of zero or less mean 'unknown'.

◆ Width

double CartoTypeCore::VehicleType::Width = 0

The vehicle's width in meters. Values of zero or less mean 'unknown'.


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