WayPoint class specifies location of one point on map.
More...
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.
◆ WayPoint() [1/3]
◆ WayPoint() [2/3]
Class constructor.
- Parameters
-
str | Address of waypoint. |
x | Position class field which determines X coordinate (geographical longitude) of location in world degrees multiplied by 100 000. |
y | Position class field which determines Y coordinate (geographical latitude) of location in world degrees multiplied by 100 000. |
◆ WayPoint() [3/3]
WayPoint |
( |
String | str, |
|
|
int | x, |
|
|
int | y, |
|
|
String | customAddress ) |
Class constructor.
- Parameters
-
str | Address of waypoint. |
x | Position class field which determines X coordinate (geographical longitude) of location in world degrees multiplied by 100 000. |
y | Position class field which determines Y coordinate (geographical latitude) of location in world degrees multiplied by 100 000. |
customAddress | Custom address name that will be used as a location name for waypoint Will also get voiced upon arriving in finish Maximum address name size is 255 characters, the rest will be cut off |
◆ getCustomAddress()
String getCustomAddress |
( |
| ) |
|
◆ getLocation()
◆ getStrAddress()
◆ readBundle()
◆ setCustomAddress()
void setCustomAddress |
( |
String | customAddress | ) |
|
Sets the custom address string.
- Parameters
-
customAddress | custom address string |
◆ SetLocation()
void SetLocation |
( |
int | x, |
|
|
int | y ) |
Sets Position
position of waypoint on map.
- Parameters
-
x | Position class field which determines X coordinate (geographical longitude) of location in world degrees multiplied by 100 000. |
y | Position class field which determines Y coordinate (geographical latitude) of location in world degrees multiplied by 100 000. |
References Position.setPosition().
◆ toString()
◆ writeBundle()
static Bundle writeBundle |
( |
WayPoint | wp | ) |
|
|
static |