Poi class is used to add POIs to Favorites and custom POI category. More...
Public Member Functions | |
Poi () | |
Class constructor. More... | |
Poi (Position pos, String cat, String name, String address, boolean searchAddr) | |
Class constructor. More... | |
Poi (int x, int y, String cat, String name, String address, boolean searchAddr) | |
Class constructor. More... | |
boolean | isSearchAddress () |
void | setSearchAddress (boolean searchAddr) |
String | getAddress () |
Returns POI address in "ISO,city,street,house number" format. More... | |
void | setAddress (String addr) |
Set a string to POI address in "ISO,city,street,house number" format. More... | |
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... | |
void | setLocation (int x, int y) |
Sets POI location on map. More... | |
String | toString () |
Static Public Member Functions | |
static Bundle | writeBundle (Poi poi) |
static Poi | readBundle (Bundle b) |
Poi class is used to add POIs to Favorites and custom POI category.
It is also used during retrieving items lists of these categories.
Poi | ( | ) |
Class constructor.
Referenced by Poi.readBundle().
Class constructor.
pos | Position class determining POI location on map. |
cat | Name of custom POI category. POI is member of this category. |
name | POI name which is shown in POI list. |
address | POI address in "ISO,city,street,house number" format. |
searchAddr | Flag determining whether function searches for address when adding POI. |
Poi | ( | int | x, |
int | y, | ||
String | cat, | ||
String | name, | ||
String | address, | ||
boolean | searchAddr | ||
) |
Class constructor.
x | coordinate of Position class determining POI location on map. |
y | coordinate of Position class determining POI location on map. |
cat | Name of custom POI category. POI is member of this category. |
name | POI name which is shown in POI list. |
searchAddr | Flag determining whether function searches for address when adding POI. |
String getAddress | ( | ) |
Returns POI address in "ISO,city,street,house number" format.
Referenced by Poi.writeBundle().
String getCategory | ( | ) |
Position getLocation | ( | ) |
String getName | ( | ) |
Returns POI name which is shown in POI list.
Referenced by Poi.writeBundle().
boolean isSearchAddress | ( | ) |
Notes:
Possible values are:
Referenced by Poi.writeBundle().
|
static |
References Poi.Poi().
Referenced by ApiPoi.findNearbyPoi(), ApiPoi.findNearbyPoiList(), ApiFavorites.getFavoritesList(), and ApiPoi.getPoiList().
void setAddress | ( | String | addr | ) |
Set a string to POI address in "ISO,city,street,house number" format.
addr | String to POI address in "ISO,city,street,house number" format. |
void setCategory | ( | String | cat | ) |
Set a string to POI category.
cat | String of POI category name. |
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 setSearchAddress | ( | boolean | searchAddr | ) |
Notes:
Possible values are:
searchAddr | Flag determining whether function searches for address when adding POI. |
String toString | ( | ) |
|
static |