CartoType Android API 8.8-7-gb35e4dc71
for Java development on Android
Public Member Functions | List of all members
com.cartotype.RouteSegment Class Reference
Inheritance diagram for com.cartotype.RouteSegment:
com.cartotype.Path

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 ()
 

Detailed Description

Information about a route segment.

Member Function Documentation

◆ choices()

native int com.cartotype.RouteSegment.choices ( )

Gets the number of choices at this turning if known; 0 if not known.

◆ contourCount()

int com.cartotype.RouteSegment.contourCount ( )

Gets the number of contours (sub-paths). It is always 1 for this class.

Implements com.cartotype.Path.

◆ distance()

native double com.cartotype.RouteSegment.distance ( )

Gets the distance in metres.

◆ exitNumber()

native int com.cartotype.RouteSegment.exitNumber ( )

Gets the exit number, counting the current junction as 0, if this junction is part of a roundabout.

◆ featureInfo()

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..

◆ isClosed()

boolean com.cartotype.RouteSegment.isClosed ( )

Returns true if the path is closed.

Implements com.cartotype.Path.

◆ isContinue()

native boolean com.cartotype.RouteSegment.isContinue ( )

Returns true if this is a 'continue' turn, false if not.

◆ name()

native String com.cartotype.RouteSegment.name ( )

Gets the road name of the segment.

◆ point()

native PathPoint com.cartotype.RouteSegment.point ( int  aContourIndex,
int  aPointIndex 
)

Gets a point given its contour and point indexes.

Implements com.cartotype.Path.

◆ pointCount()

native int com.cartotype.RouteSegment.pointCount ( int  aContourIndex)

Gets the number of points in a contour.

Implements com.cartotype.Path.

◆ ref()

native String com.cartotype.RouteSegment.ref ( )

Gets the road reference of segment.

◆ roundaboutState()

native int com.cartotype.RouteSegment.roundaboutState ( )

Gets the roundabout state as defined in the Turn class.

◆ section()

native int com.cartotype.RouteSegment.section ( )

Gets the section this segment belongs to.

◆ time()

native double com.cartotype.RouteSegment.time ( )

Gets the estimated time in seconds taken to traverse the segment, including the turn time returned by getTurnTime().

◆ turnAngle()

native double com.cartotype.RouteSegment.turnAngle ( )

Gets the turn angle.

◆ turnTime()

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().

◆ turnType()

native int com.cartotype.RouteSegment.turnType ( )

Gets the turn type as defined in the Turn class.


The documentation for this class was generated from the following file: