CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#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 |
A vehicle type used in routing.
|
inline |
True if cycling (access to cycle routes) is allowed.
|
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.
|
inline |
True if this vehicle type obeys one-way restrictions. Pedestrian types usually do not.
|
inline |
The equality operator.
|
inline |
True if walking (access to pedestrian routes) is allowed.
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.
double CartoTypeCore::VehicleType::AxleLoad = 0 |
The vehicle's axle load in metric tons. Values of zero or less mean 'unknown'.
double CartoTypeCore::VehicleType::DoubleAxleLoad = 0 |
The vehicle's double axle load in metric tons. Values of zero or less mean 'unknown'.
bool CartoTypeCore::VehicleType::HazMat = false |
True if the vehicle is carrying hazardous materials.
double CartoTypeCore::VehicleType::Height = 0 |
The vehicle's height in meters. Values of zero or less mean 'unknown'.
double CartoTypeCore::VehicleType::Length = 0 |
The vehicle's length in meters. Values of zero or less mean 'unknown'.
double CartoTypeCore::VehicleType::TripleAxleLoad = 0 |
The vehicle's triple axle weight in metric tons. Values of zero or less mean 'unknown'.
double CartoTypeCore::VehicleType::Weight = 0 |
The vehicle's weight in metric tons. Values of zero or less mean 'unknown'.
double CartoTypeCore::VehicleType::Width = 0 |
The vehicle's width in meters. Values of zero or less mean 'unknown'.