Poi class is used to add POIs to Favorites and custom POI category. More...
Public Member Functions | |
| Poi () | |
| Class constructor. | |
| Poi (Position pos, String cat, String name, String address, boolean searchAddr) | |
| Class constructor. | |
| Poi (int x, int y, String cat, String name, String address, boolean searchAddr) | |
| Class constructor. | |
| boolean | isSearchAddress () |
| void | setSearchAddress (boolean searchAddr) |
| String | getAddress () |
| Returns POI address in "ISO,city,street,house number" format. | |
| void | setAddress (String addr) |
| Set a string to POI address in "ISO,city,street,house number" format. | |
| String | getCategory () |
| Returns POI category. | |
| void | setCategory (String cat) |
| Set a string to POI category. | |
| String | getName () |
| Returns POI name which is shown in POI list. | |
| void | setName (String name) |
| Sets POI name which is shown in POI list. | |
| Position | getLocation () |
| Returns POI location on map. | |
| void | setLocation (int x, int y) |
| Sets POI location on map. | |
| 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 readBundle(), and writeBundle().
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. |
| address | the address string |
| 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 writeBundle().
| String getCategory | ( | ) |
| Position getLocation | ( | ) |
| String getName | ( | ) |
Returns POI name which is shown in POI list.
Referenced by writeBundle().
| boolean isSearchAddress | ( | ) |
Notes:
Possible values are:
Referenced by writeBundle().
|
static |
References Poi().
Referenced by ApiPoi.findNearbyPoi(), ApiPoi.findNearbyPoiList(), 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 |
References Poi(), getAddress(), getCategory(), getLocation(), getName(), isSearchAddress(), and Position.toArray().
Referenced by ApiPoi.addPoi(), and ApiPoi.deletePoi().