CartoType iOS API 9.0-11-g64131709d
for development in Swift and Objective C for iOS and Mac OS
|
#include <CartoTypeRouter.h>
Public Attributes | |
int | segmentIndex |
int | lineIndex |
CtPoint | nearestPoint |
double | distanceToRoute |
double | distanceAlongRoute |
double | distanceAlongSegment |
double | timeAlongRoute |
double | timeAlongSegment |
double | heading |
Information about the nearest route segment to a point.
double CtNearestSegmentinfo::distanceAlongRoute |
The distance of the nearest point along the route in meters.
double CtNearestSegmentinfo::distanceAlongSegment |
The distance within the current segment in meters.
double CtNearestSegmentinfo::distanceToRoute |
The distance from the other point to iNearestPoint in meters.
double CtNearestSegmentinfo::heading |
The heading of the nearest line as a map angle taken anti-clockwise from rightwards.
int CtNearestSegmentinfo::lineIndex |
The index of the line within the segment's path: line N goes from point N to point N + 1.
CtPoint CtNearestSegmentinfo::nearestPoint |
The point in the segment's path nearest to the other point, in map coordinates.
int CtNearestSegmentinfo::segmentIndex |
The index of the segment in the CtRoute object, or -1 if there were no segments.
double CtNearestSegmentinfo::timeAlongRoute |
The estimated time of the nearest point, along the route, in seconds.
double CtNearestSegmentinfo::timeAlongSegment |
The estimated time within the current segment, in seconds.