CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_navigation.h>
Public Member Functions | |
void | WriteAsXml (MOutputStream &aOutput, const CProjection &aProjection) const |
std::unique_ptr< CRouteSegment > | Copy () const |
Public Attributes | |
TRoadType | iRoadType |
double | iMaxSpeed |
CString | iName |
CString | iRef |
double | iDistance |
double | iTime |
double | iTurnTime |
COnCurveContour | iPath |
int32_t | iSection |
TTurn | iTurn |
bool | iRestricted |
Information about a route segment.
std::unique_ptr< CRouteSegment > CartoType::CRouteSegment::Copy | ( | ) | const |
Creates a copy of this route segment.
void CartoType::CRouteSegment::WriteAsXml | ( | MOutputStream & | aOutput, |
const CProjection & | aProjection | ||
) | const |
Writes a route segment in XML as a segment element. Uses aProjection to convert the points to latitude and longitude.
double CartoType::CRouteSegment::iDistance |
The distance in metres.
double CartoType::CRouteSegment::iMaxSpeed |
The maximum legal speed in kilometres per hour. A value of zero means there is no known speed limit, or the standard speed limit for the type of road applies.
CString CartoType::CRouteSegment::iName |
The standard name of the object of which this segment is a part.
COnCurveContour CartoType::CRouteSegment::iPath |
The path of this segment in map units.
CString CartoType::CRouteSegment::iRef |
The road reference of the object of which this segment is a part.
bool CartoType::CRouteSegment::iRestricted |
True if this segment is restricted: for example, a private access road.
TRoadType CartoType::CRouteSegment::iRoadType |
The road type of the object of which this segment is a part.
int32_t CartoType::CRouteSegment::iSection |
The section number. Routes are divided into sections between waypoints. A simple route has one section, a route with an intermediate waypoint has two sections, and so on. Sections are numbered from zero upwards.
double CartoType::CRouteSegment::iTime |
The estimated time in seconds, including iTurnTime, taken to traverse the segment.
TTurn CartoType::CRouteSegment::iTurn |
Information about how to navigate the junction at the start of this segment.
double CartoType::CRouteSegment::iTurnTime |
The estimated time in seconds taken to navigate the junction at the start of the segment.