CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CartoType::CTrafficInfo Class Reference

#include <cartotype_navigation.h>

Public Member Functions

void WriteAsXml (MOutputStream &aOutput) const

Public Attributes

uint32_t iVehicleTypes = KArcAllVehicles
double iSpeed = KNoSpeedLimit

Static Public Attributes

static constexpr double KNoSpeedLimit = 255

Detailed Description

Traffic information. This information is normally used in combination with a location reference.

Member Function Documentation

◆ WriteAsXml()

void CartoType::CTrafficInfo::WriteAsXml ( MOutputStream aOutput) const

Writes this object in XML as a TrafficInfo element.

Member Data Documentation

◆ iSpeed

double CartoType::CTrafficInfo::iSpeed = KNoSpeedLimit

Permitted or expected speed in kph: KNoSpeedLimit or greater means no speed limit; 0 or less means the route is forbidden.

◆ iVehicleTypes

uint32_t CartoType::CTrafficInfo::iVehicleTypes = KArcAllVehicles

Vehicle types affected by this information, taken from the KArc... bit definitions; use KArcAllVehicles to select all vehicle types.

◆ KNoSpeedLimit

constexpr double CartoType::CTrafficInfo::KNoSpeedLimit = 255

Speeds of this value or greater mean there is no speed limit.

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