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::RouteParam Class Reference

#include <cartotype_navigation.h>

Public Member Functions

void Read (InputStream &aInput)
 
void Write (OutputStream &aOutput) const
 

Public Attributes

uint32_t ProfileIndex = 0
 
RouteProfile Profile
 
std::vector< RoutePointInternalPointArray
 
uint32_t Iterations = 0
 
bool Best = false
 
bool StartFixed = true
 
bool EndFixed = true
 
bool SnapToNodes = false
 
bool InferHeading = true
 

Static Public Attributes

static constexpr uint32_t KSerializationVersion = 1
 

Detailed Description

Parameters for creating a route.

Member Function Documentation

◆ Read()

void CartoTypeCore::RouteParam::Read ( InputStream aInput)

Reads this object from an input stream.

◆ Write()

void CartoTypeCore::RouteParam::Write ( OutputStream aOutput) const

Writes this object to an output stream.

Member Data Documentation

◆ Best

bool CartoTypeCore::RouteParam::Best = false

If true, calculate the best route through the points, rather than a route through the points in order.

◆ EndFixed

bool CartoTypeCore::RouteParam::EndFixed = true

If true, and if Best is true, the route always ends at the last point in RoutePointArray.

◆ InferHeading

bool CartoTypeCore::RouteParam::InferHeading = true

If true, infer the heading at intermediate points in a route with more than two points.

◆ Iterations

uint32_t CartoTypeCore::RouteParam::Iterations = 0

The number of iterations to be used when calculating a best route. If zero, a default value is used.

◆ KSerializationVersion

constexpr uint32_t CartoTypeCore::RouteParam::KSerializationVersion = 1
staticconstexpr

The version of the format in which this class is serialized. Bump this number when changing the class or any of its components.

◆ PointArray

std::vector<RoutePointInternal> CartoTypeCore::RouteParam::PointArray

The waypoints.

◆ Profile

RouteProfile CartoTypeCore::RouteParam::Profile

The route profile is used if the router allows profiles to be set.

◆ ProfileIndex

uint32_t CartoTypeCore::RouteParam::ProfileIndex = 0

The profile index is used if there are built-in route profiles.

◆ SnapToNodes

bool CartoTypeCore::RouteParam::SnapToNodes = false

If true, snap points to nearest nodes (junctions) before calculating the route.

◆ StartFixed

bool CartoTypeCore::RouteParam::StartFixed = true

If true, and if Best is true, the route always starts at the first point in RoutePointArray.


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