CartoType Android API 7.8.2, 2022-03-25
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 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 ()
 

Detailed Description

Information about a route segment.

Member Function Documentation

◆ getChoices()

native int com.cartotype.RouteSegment.getChoices ( )

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

◆ getContinue()

native boolean com.cartotype.RouteSegment.getContinue ( )

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

◆ getContourCount()

int com.cartotype.RouteSegment.getContourCount ( )

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

Implements com.cartotype.Path.

◆ getDistance()

native double com.cartotype.RouteSegment.getDistance ( )

Gets the distance in metres.

◆ getExitNumber()

native int com.cartotype.RouteSegment.getExitNumber ( )

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

◆ getMaxSpeed()

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.

◆ getName()

native String com.cartotype.RouteSegment.getName ( )

Gets the road name of the segment.

◆ getPoint()

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.

◆ getPointCount()

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

Gets the number of points in a contour.

Implements com.cartotype.Path.

◆ getRef()

native String com.cartotype.RouteSegment.getRef ( )

Gets the road reference of segment.

◆ getRoadType()

native int com.cartotype.RouteSegment.getRoadType ( )

Gets the road type of the object of which this segment is a part.

◆ getRoundaboutState()

native int com.cartotype.RouteSegment.getRoundaboutState ( )

Gets the roundabout state as defined in the Turn class.

◆ getSection()

native int com.cartotype.RouteSegment.getSection ( )

Gets the section this segment belongs to.

◆ getTime()

native double com.cartotype.RouteSegment.getTime ( )

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

◆ getTurnAngle()

native double com.cartotype.RouteSegment.getTurnAngle ( )

Gets the turn angle.

◆ getTurnTime()

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

◆ getTurnType()

native int com.cartotype.RouteSegment.getTurnType ( )

Gets the turn type as defined in the Turn class.

◆ isClosed()

boolean com.cartotype.RouteSegment.isClosed ( )

Returns true if the path is closed.

Implements com.cartotype.Path.


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