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