CartoType iOS API 8.8-13-g03c6f7017
for development in Swift and Objective C for iOS and Mac OS
|
#import <CartoTypeRouter.h>
Instance Methods | |
(id) | - initWithRouteSegmentObject: |
(void) | - dealloc |
(CartoTypeFeatureInfo *) | - featureInfo |
(NSString *) | - name |
(NSString *) | - ref |
(double) | - distance |
(double) | - time |
(double) | - turnTime |
(CartoTypeTurnType) | - turnType |
(bool) | - isContinue |
(CartoTypeRoundaboutState) | - roundaboutState |
(double) | - turnAngle |
(int) | - exitNumber |
(int) | - choices |
(int) | - contourCount |
(int) | - pointCount: |
(CartoTypePathPoint) | - point:pointIndex: |
(int) | - section |
(int) | - contourCount |
(int) | - pointCount: |
(CartoTypePathPoint) | - point:pointIndex: |
A route segment. All segments except the first start at a turn (a junction).
- (int) choices |
Returns the number of choices at this turning if known; 0 if not known.
- (int) contourCount |
Returns the number of contours (sub-paths) in the path.
Reimplemented from <CartoTypePath>.
- (void) dealloc |
Destroys the object.
- (double) distance |
Returns the distance of the segment in meters.
- (int) exitNumber |
Returns the exit number, counting the current junction as 0, if the junction at the start of the segment is part of a roundabout.
- (CartoTypeFeatureInfo *) featureInfo |
Returns the road type of the object of which this segment is a part.
- (id) initWithRouteSegmentObject: | (void *) | aRouteSegmentObject |
Initializes a CartoTypeRouteSegment with a C++ route segment object; for internal use only.
- (bool) isContinue |
Returns true if this is a 'continue' turn, false if not.
- (NSString *) name |
Returns the standard name of the object of which this segment is a part.
- (CartoTypePathPoint) point: | (int) | aContourIndex | |
pointIndex: | (int) | aPointIndex | |
Returns a point, given its contour index and point index.
Reimplemented from <CartoTypePath>.
- (int) pointCount: | (int) | aContourIndex |
Returns the number of points in a certain contour.
Reimplemented from <CartoTypePath>.
- (NSString *) ref |
Returns the road reference of the object of which this segment is a part.
- (CartoTypeRoundaboutState) roundaboutState |
Returns the roundabout state.
- (int) section |
Returns the route section this route segment belongs to.
- (double) time |
Returns the estimated time taken to traverse the segment in seconds, including the turn time returned by the turnTime method.
- (double) turnAngle |
Returns the turn angle.
- (double) turnTime |
Returns the estimated time in seconds for the turn at the start of the segment; this is included in the value returned by the time method.
- (CartoTypeTurnType) turnType |
Returns the turn type.