CartoType iOS API 9.0-11-g64131709d
for development in Swift and Objective C for iOS and Mac OS
Loading...
Searching...
No Matches
CtNearestSegmentinfo Struct Reference

#include <CartoTypeRouter.h>

Public Attributes

int segmentIndex
 
int lineIndex
 
CtPoint nearestPoint
 
double distanceToRoute
 
double distanceAlongRoute
 
double distanceAlongSegment
 
double timeAlongRoute
 
double timeAlongSegment
 
double heading
 

Detailed Description

Information about the nearest route segment to a point.

Member Data Documentation

◆ distanceAlongRoute

double CtNearestSegmentinfo::distanceAlongRoute

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

◆ distanceAlongSegment

double CtNearestSegmentinfo::distanceAlongSegment

The distance within the current segment in meters.

◆ distanceToRoute

double CtNearestSegmentinfo::distanceToRoute

The distance from the other point to iNearestPoint in meters.

◆ heading

double CtNearestSegmentinfo::heading

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

◆ lineIndex

int CtNearestSegmentinfo::lineIndex

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

◆ nearestPoint

CtPoint CtNearestSegmentinfo::nearestPoint

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

◆ segmentIndex

int CtNearestSegmentinfo::segmentIndex

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

◆ timeAlongRoute

double CtNearestSegmentinfo::timeAlongRoute

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

◆ timeAlongSegment

double CtNearestSegmentinfo::timeAlongSegment

The estimated time within the current segment, in seconds.


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