The class is used with the search operations on POIs on route. More...
Public Member Functions | |
PoiOnRoute () | |
Class constructor. More... | |
PoiOnRoute (int x, int y, String cat, String name, String address, int timeRemaining, int distanceRemaining) | |
String | getCategory () |
Returns POI category. More... | |
void | setCategory (String cat) |
Set a string to POI category. More... | |
String | getName () |
Returns POI name which is shown in POI list. More... | |
void | setName (String name) |
Sets POI name which is shown in POI list. More... | |
Position | getLocation () |
Returns POI location on map. More... | |
String | getAddress () |
Returns POI address in one string format. More... | |
void | setAddress (String strAddress) |
void | setLocation (int x, int y) |
Sets POI location on map. More... | |
int | getTimeRemaining () |
Returns the time in seconds to reach the poi from the current position following the calculated route. More... | |
void | setTimeRemaining (int timeRemaining) |
int | getDistanceRemaining () |
Returns the distance in meters to reach the poi from the current position following the calculated route. More... | |
void | setDistanceRemaining (int distanceRemaining) |
String | toString () |
Static Public Member Functions | |
static Bundle | writeBundle (PoiOnRoute poi) |
static PoiOnRoute | readBundle (Bundle b) |
The class is used with the search operations on POIs on route.
PoiOnRoute | ( | ) |
Class constructor.
Referenced by PoiOnRoute.readBundle().
PoiOnRoute | ( | int | x, |
int | y, | ||
String | cat, | ||
String | name, | ||
String | address, | ||
int | timeRemaining, | ||
int | distanceRemaining | ||
) |
String getAddress | ( | ) |
Returns POI address in one string format.
Referenced by PoiOnRoute.writeBundle().
String getCategory | ( | ) |
int getDistanceRemaining | ( | ) |
Returns the distance in meters to reach the poi from the current position following the calculated route.
Referenced by PoiOnRoute.writeBundle().
Position getLocation | ( | ) |
String getName | ( | ) |
Returns POI name which is shown in POI list.
Referenced by PoiOnRoute.writeBundle().
int getTimeRemaining | ( | ) |
Returns the time in seconds to reach the poi from the current position following the calculated route.
Referenced by PoiOnRoute.writeBundle().
|
static |
References PoiOnRoute.PoiOnRoute().
Referenced by ApiPoi.getPoiOnRoute().
void setAddress | ( | String | strAddress | ) |
void setCategory | ( | String | cat | ) |
Set a string to POI category.
cat | String of POI category name. |
void setDistanceRemaining | ( | int | distanceRemaining | ) |
void setLocation | ( | int | x, |
int | y | ||
) |
Sets POI location on map.
x | Determines X coordinate (geographical longitude) of location in world degrees multiplied by 100 000. |
y | Determines Y coordinate (geographical latitude) of location in world degrees multiplied by 100 000. |
void setName | ( | String | name | ) |
Sets POI name which is shown in POI list.
name | POI name which is shown in POI list. |
void setTimeRemaining | ( | int | timeRemaining | ) |
String toString | ( | ) |
|
static |