CartoType iOS API 7.8.2, 2022-03-25
for development in Swift and Objective C for iOS and Mac OS
Public Attributes | List of all members
CartoTypeNearestSegmentinfo Struct Reference

#include <CartoTypeRouter.h>

Public Attributes

int iSegmentIndex
 
int iLineIndex
 
CartoTypePoint iNearestPoint
 
double iDistanceToRoute
 
double iDistanceAlongRoute
 
double iDistanceAlongSegment
 
double iTimeAlongRoute
 
double iTimeAlongSegment
 
double iHeading
 

Detailed Description

Information about the nearest route segment to a point.

Member Data Documentation

◆ iDistanceAlongRoute

double CartoTypeNearestSegmentinfo::iDistanceAlongRoute

The distance of the nearest point along the route in meters.

◆ iDistanceAlongSegment

double CartoTypeNearestSegmentinfo::iDistanceAlongSegment

The distance within the current segment in meters.

◆ iDistanceToRoute

double CartoTypeNearestSegmentinfo::iDistanceToRoute

The distance from the other point to iNearestPoint in meters.

◆ iHeading

double CartoTypeNearestSegmentinfo::iHeading

The heading of the nearest line as a map angle taken anti-clockwise from rightwards.

◆ iLineIndex

int CartoTypeNearestSegmentinfo::iLineIndex

The index of the line within the segment's path: line N goes from point N to point N + 1.

◆ iNearestPoint

CartoTypePoint CartoTypeNearestSegmentinfo::iNearestPoint

The point in the segment's path nearest to the other point, in map coordinates.

◆ iSegmentIndex

int CartoTypeNearestSegmentinfo::iSegmentIndex

The index of the segment in the CartoTypeRoute object, or -1 if there were no segments.

◆ iTimeAlongRoute

double CartoTypeNearestSegmentinfo::iTimeAlongRoute

The estimated time of the nearest point, along the route, in seconds.

◆ iTimeAlongSegment

double CartoTypeNearestSegmentinfo::iTimeAlongSegment

The estimated time within the current segment, in seconds.


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