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

WayPoint class specifies location of one point on map. More...

Public Member Functions

 WayPoint ()
 Class constructor. More...
 
 WayPoint (String str, int x, int y)
 Class constructor. More...
 
void SetLocation (int x, int y)
 Sets Position position of waypoint on map. More...
 
Position getLocation ()
 Gets the location. More...
 
String getStrAddress ()
 Gets the address. More...
 
String toString ()
 

Static Public Member Functions

static Bundle writeBundle (WayPoint wp)
 
static WayPoint readBundle (Bundle b)
 

Detailed Description

WayPoint class specifies location of one point on map.

It is used as a parameter determining target location in ApiNavigation#startNavigation(WayPoint, int, boolean, int) function.

Constructor & Destructor Documentation

WayPoint ( )

Class constructor.

Referenced by WayPoint.readBundle().

WayPoint ( String  str,
int  x,
int  y 
)

Class constructor.

Parameters
strAddress of waypoint.
xPosition class field which determines X coordinate (geographical longitude) of location in world degrees multiplied by 100 000.
yPosition class field which determines Y coordinate (geographical latitude) of location in world degrees multiplied by 100 000.

Member Function Documentation

Position getLocation ( )

Gets the location.

Returns
The Location. Position class defining a position of waypoint on map.

Referenced by WayPoint.writeBundle().

String getStrAddress ( )

Gets the address.

Returns
the address of waypoint

Referenced by WayPoint.writeBundle().

void SetLocation ( int  x,
int  y 
)

Sets Position position of waypoint on map.

Parameters
xPosition class field which determines X coordinate (geographical longitude) of location in world degrees multiplied by 100 000.
yPosition class field which determines Y coordinate (geographical latitude) of location in world degrees multiplied by 100 000.

References Position.setPosition().

String toString ( )
static Bundle writeBundle ( WayPoint  wp)
static