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

#include <cartotype_navigation.h>

Public Member Functions

void WriteAsXml (OutputStream &aOutput) const
 

Public Attributes

uint32_t VehicleTypes = FeatureInfo::KRouteAccessVehicle
 
double Speed = 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 CartoTypeCore::TrafficInfo::WriteAsXml ( OutputStream aOutput) const

Writes this object in XML as a TrafficInfo element.

Member Data Documentation

◆ KNoSpeedLimit

constexpr double CartoTypeCore::TrafficInfo::KNoSpeedLimit = 255
staticconstexpr

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

◆ Speed

double CartoTypeCore::TrafficInfo::Speed = KNoSpeedLimit

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

◆ VehicleTypes

uint32_t CartoTypeCore::TrafficInfo::VehicleTypes = FeatureInfo::KRouteAccessVehicle

Vehicle types affected by this information, taken from the FeatureInfo bit definitions; use FeatureInfo::KRouteAccessVehicle to select all vehicle types.


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