Java SDK for 2D
 All Classes Namespaces Functions Variables Pages
ApiInfo Class Reference

Static Public Member Functions

static int getCurrentSpeedLimit (int maxTime) throws GeneralException
 Returns the speed limit of the current road. More...
 
static RouteInstruction getNextInstruction (int maxTime) throws GeneralException
 Returns the next turn instruction while navigating. More...
 

Member Function Documentation

static int getCurrentSpeedLimit ( int  maxTime) throws GeneralException
static

Returns the speed limit of the current road.

Parameters
maxTimeMaximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited.
Returns
the current speed limit
Exceptions
GeneralExceptionthe general exception

References Api.getInstance(), and Api.getService().

static RouteInstruction getNextInstruction ( int  maxTime) throws GeneralException
static

Returns the next turn instruction while navigating.

Parameters
maxTimeMaximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited.
Returns
Instruction RouteInstruction instance which contains information about next turn instruction on the route.
Exceptions
GeneralExceptionthe general exception

References Api.getInstance(), Api.getService(), and RouteInstruction.readBundle().