CartoType Android API 8.8-7-gb35e4dc71
for Java development on Android
|
Public Member Functions | |
native FeatureInfo | featureInfo () |
native String | name () |
native String | ref () |
native double | distance () |
native double | time () |
native double | turnTime () |
native int | turnType () |
native boolean | isContinue () |
native int | roundaboutState () |
native double | turnAngle () |
native int | exitNumber () |
native int | choices () |
native int | section () |
int | contourCount () |
native int | pointCount (int aContourIndex) |
native PathPoint | point (int aContourIndex, int aPointIndex) |
boolean | isClosed () |
int | contourCount () |
int | pointCount (int aContourIndex) |
PathPoint | point (int aContourIndex, int aPointIndex) |
boolean | isClosed () |
Information about a route segment.
native int com.cartotype.RouteSegment.choices | ( | ) |
Gets the number of choices at this turning if known; 0 if not known.
int com.cartotype.RouteSegment.contourCount | ( | ) |
Gets the number of contours (sub-paths). It is always 1 for this class.
Implements com.cartotype.Path.
native double com.cartotype.RouteSegment.distance | ( | ) |
Gets the distance in metres.
native int com.cartotype.RouteSegment.exitNumber | ( | ) |
Gets the exit number, counting the current junction as 0, if this junction is part of a roundabout.
native FeatureInfo com.cartotype.RouteSegment.featureInfo | ( | ) |
Gets the feature info (road type, level, bridge, tunnel, etc.) of the object of which this segment is a part..
boolean com.cartotype.RouteSegment.isClosed | ( | ) |
Returns true if the path is closed.
Implements com.cartotype.Path.
native boolean com.cartotype.RouteSegment.isContinue | ( | ) |
Returns true if this is a 'continue' turn, false if not.
native String com.cartotype.RouteSegment.name | ( | ) |
Gets the road name of the segment.
native PathPoint com.cartotype.RouteSegment.point | ( | int | aContourIndex, |
int | aPointIndex | ||
) |
Gets a point given its contour and point indexes.
Implements com.cartotype.Path.
native int com.cartotype.RouteSegment.pointCount | ( | int | aContourIndex | ) |
Gets the number of points in a contour.
Implements com.cartotype.Path.
native String com.cartotype.RouteSegment.ref | ( | ) |
Gets the road reference of segment.
native int com.cartotype.RouteSegment.roundaboutState | ( | ) |
Gets the roundabout state as defined in the Turn class.
native int com.cartotype.RouteSegment.section | ( | ) |
Gets the section this segment belongs to.
native double com.cartotype.RouteSegment.time | ( | ) |
Gets the estimated time in seconds taken to traverse the segment, including the turn time returned by getTurnTime().
native double com.cartotype.RouteSegment.turnAngle | ( | ) |
Gets the turn angle.
native double com.cartotype.RouteSegment.turnTime | ( | ) |
Gets the estimated time in seconds taken by the turn at the start of the segment; this is included in the value returned by getTime().
native int com.cartotype.RouteSegment.turnType | ( | ) |
Gets the turn type as defined in the Turn class.