CartoType Android API 7.8.2, 2022-03-25
for Java development on Android
|
Public Member Functions | |
native int | getRoadType () |
native double | getMaxSpeed () |
native String | getName () |
native String | getRef () |
native double | getDistance () |
native double | getTime () |
native double | getTurnTime () |
native int | getTurnType () |
native boolean | getContinue () |
native int | getRoundaboutState () |
native double | getTurnAngle () |
native int | getExitNumber () |
native int | getChoices () |
native int | getSection () |
int | getContourCount () |
native int | getPointCount (int aContourIndex) |
native void | getPoint (int aContourIndex, int aPointIndex, PathPoint aPoint) |
boolean | isClosed () |
int | getContourCount () |
int | getPointCount (int aContourIndex) |
void | getPoint (int aContourIndex, int aPointIndex, PathPoint aPoint) |
boolean | isClosed () |
Information about a route segment.
native int com.cartotype.RouteSegment.getChoices | ( | ) |
Gets the number of choices at this turning if known; 0 if not known.
native boolean com.cartotype.RouteSegment.getContinue | ( | ) |
Returns true if this is a 'continue' turn, false if not.
int com.cartotype.RouteSegment.getContourCount | ( | ) |
Gets the number of contours (sub-paths). It is always 1 for this class.
Implements com.cartotype.Path.
native double com.cartotype.RouteSegment.getDistance | ( | ) |
Gets the distance in metres.
native int com.cartotype.RouteSegment.getExitNumber | ( | ) |
Gets the exit number, counting the current junction as 0, if this junction is part of a roundabout.
native double com.cartotype.RouteSegment.getMaxSpeed | ( | ) |
Gets the maximum legal speed (speed limit) for this segment, in kilometres per hour, or zero if no information is available.
native String com.cartotype.RouteSegment.getName | ( | ) |
Gets the road name of the segment.
native void com.cartotype.RouteSegment.getPoint | ( | int | aContourIndex, |
int | aPointIndex, | ||
PathPoint | aPoint | ||
) |
Gets a point given its contour and point indexes.
Implements com.cartotype.Path.
native int com.cartotype.RouteSegment.getPointCount | ( | int | aContourIndex | ) |
Gets the number of points in a contour.
Implements com.cartotype.Path.
native String com.cartotype.RouteSegment.getRef | ( | ) |
Gets the road reference of segment.
native int com.cartotype.RouteSegment.getRoadType | ( | ) |
Gets the road type of the object of which this segment is a part.
native int com.cartotype.RouteSegment.getRoundaboutState | ( | ) |
Gets the roundabout state as defined in the Turn class.
native int com.cartotype.RouteSegment.getSection | ( | ) |
Gets the section this segment belongs to.
native double com.cartotype.RouteSegment.getTime | ( | ) |
Gets the estimated time in seconds taken to traverse the segment, including the turn time returned by getTurnTime().
native double com.cartotype.RouteSegment.getTurnAngle | ( | ) |
Gets the turn angle.
native double com.cartotype.RouteSegment.getTurnTime | ( | ) |
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.getTurnType | ( | ) |
Gets the turn type as defined in the Turn class.
boolean com.cartotype.RouteSegment.isClosed | ( | ) |
Returns true if the path is closed.
Implements com.cartotype.Path.