|
Tizen Native API
5.0
|
This provides APIs related to Place information, used in Place Discovery and Search.
Functions | |
| int | maps_place_destroy (maps_place_h place) |
| Destroys the place handle and releases all its resources. | |
| int | maps_place_clone (const maps_place_h origin, maps_place_h *cloned) |
| Clones the place handle. | |
| int | maps_place_get_id (const maps_place_h place, char **id) |
| Gets the place ID. | |
| int | maps_place_get_name (const maps_place_h place, char **name) |
| Gets the place name. | |
| int | maps_place_get_uri (const maps_place_h place, char **uri) |
| Gets the place view URI. | |
| int | maps_place_get_location (const maps_place_h place, maps_coordinates_h *location) |
| Gets the place location. | |
| int | maps_place_get_distance (const maps_place_h place, int *distance) |
| Gets the place distance from the center of the location. | |
| int | maps_place_get_address (const maps_place_h place, maps_address_h *address) |
| Gets the place address. | |
| int | maps_place_get_rating (const maps_place_h place, maps_place_rating_h *rating) |
| Gets the place rating. | |
| int | maps_place_foreach_property (const maps_place_h place, maps_place_properties_cb callback, void *user_data) |
| Retrieves all properties. | |
| int | maps_place_foreach_category (const maps_place_h place, maps_place_categories_cb callback, void *user_data) |
| Retrieves all categories. | |
| int | maps_place_foreach_attribute (const maps_place_h place, maps_place_attributes_cb callback, void *user_data) |
| Retrieves all attributes. | |
| int | maps_place_foreach_contact (const maps_place_h place, maps_place_contacts_cb callback, void *user_data) |
| Retrieves all contacts. | |
| int | maps_place_foreach_editorial (const maps_place_h place, maps_place_editorials_cb callback, void *user_data) |
| Retrieves all editorials. | |
| int | maps_place_foreach_image (const maps_place_h place, maps_place_images_cb callback, void *user_data) |
| Retrieves all images. | |
| int | maps_place_foreach_review (const maps_place_h place, maps_place_reviews_cb callback, void *user_data) |
| Retrieves all reviews. | |
| int | maps_place_get_supplier_link (const maps_place_h place, maps_place_link_object_h *supplier) |
| Gets the place supplier link. | |
| int | maps_place_get_related_link (const maps_place_h place, maps_place_link_object_h *related) |
| Gets the place related link. | |
| int | maps_place_list_foreach (const maps_place_list_h place_list, maps_place_cb callback, void *user_data) |
| Retrieves all places. | |
| int | maps_place_list_destroy (maps_place_list_h place_list) |
| Frees all of the memory used by a place list. | |
Typedefs | |
| typedef void * | maps_place_h |
| The Place handle. | |
| typedef void * | maps_place_list_h |
| The Place list handle. | |
| typedef bool(* | maps_place_properties_cb )(int index, int total, char *key, void *value, void *user_data) |
| Called when requesting the list of Place Properties. | |
| typedef bool(* | maps_place_categories_cb )(int index, int total, maps_place_category_h category, void *user_data) |
| Called when requesting the list of Place Categories. | |
| typedef bool(* | maps_place_attributes_cb )(int index, int total, maps_place_attribute_h attribute, void *user_data) |
| Called when requesting the list of Place Attributes. | |
| typedef bool(* | maps_place_contacts_cb )(int index, int total, maps_place_contact_h contact, void *user_data) |
| Called when requesting the list of Place Contacts. | |
| typedef bool(* | maps_place_editorials_cb )(int index, int total, maps_place_editorial_h editorial, void *user_data) |
| Called when requesting the list of Place Editorial. | |
| typedef bool(* | maps_place_images_cb )(int index, int total, maps_place_image_h image, void *user_data) |
| Called when requesting the list of Place Image. | |
| typedef bool(* | maps_place_reviews_cb )(int index, int total, maps_place_review_h review, void *user_data) |
| Called when requesting the list of Place Review. | |
| typedef bool(* | maps_place_cb )(int index, maps_place_h place, void *user_data) |
| Called when requesting the list of Place. | |
| typedef bool(* maps_place_attributes_cb)(int index, int total, maps_place_attribute_h attribute, void *user_data) |
Called when requesting the list of Place Attributes.
This callback is invoked while iterating through the list of Place Attributes.
| [in] | index | The current index of attribute |
| [in] | total | The total amount of attributes |
| [in] | attribute | The place attribute handle |
| [in] | user_data | The user data passed from the maps_place_foreach_attribute() |
true to continue with the next iteration of the loop,false to break out of the loop | typedef bool(* maps_place_categories_cb)(int index, int total, maps_place_category_h category, void *user_data) |
Called when requesting the list of Place Categories.
This callback is invoked while iterating through the list of Place Categories.
| [in] | index | The current index of category |
| [in] | total | The total amount of categories |
| [in] | category | The place category handle |
| [in] | user_data | The user data passed from maps_place_foreach_category() |
true to continue with the next iteration of the loop,false to break out of the loop | typedef bool(* maps_place_cb)(int index, maps_place_h place, void *user_data) |
Called when requesting the list of Place.
This callback is invoked while iterating through the list of Place.
| [in] | index | The current index of review |
| [in] | place | The place handle |
| [in] | user_data | The user data passed from the maps_place_list_foreach() |
true to continue with the next iteration of the loop, false to break out of the loop | typedef bool(* maps_place_contacts_cb)(int index, int total, maps_place_contact_h contact, void *user_data) |
Called when requesting the list of Place Contacts.
This callback is invoked while iterating through the list of Place Contacts.
| [in] | index | The current index of contact |
| [in] | total | The total amount of contacts |
| [in] | contact | The place contact handle |
| [in] | user_data | The user data passed from the maps_place_foreach_contact() |
true to continue with the next iteration of the loop,false to break out of the loop | typedef bool(* maps_place_editorials_cb)(int index, int total, maps_place_editorial_h editorial, void *user_data) |
Called when requesting the list of Place Editorial.
This callback is invoked while iterating through the list of Place Editorials.
| [in] | index | The current index of editorial |
| [in] | total | The total amount of editorials |
| [in] | editorial | The place editorial handle |
| [in] | user_data | The user data passed from the maps_place_foreach_editorial() |
true to continue with the next iteration of the loop,false to break out of the loop | typedef void* maps_place_h |
The Place handle.
The handle of Place instance.
| typedef bool(* maps_place_images_cb)(int index, int total, maps_place_image_h image, void *user_data) |
Called when requesting the list of Place Image.
This callback is invoked while iterating through the list of Place Images.
| [in] | index | The current index of image |
| [in] | total | The total amount of images |
| [in] | image | The place image handle |
| [in] | user_data | The user data passed from the maps_place_foreach_image() |
true to continue with the next iteration of the loop,false to break out of the loop | typedef void* maps_place_list_h |
The Place list handle.
The handle of Place list instance.
| typedef bool(* maps_place_properties_cb)(int index, int total, char *key, void *value, void *user_data) |
Called when requesting the list of Place Properties.
This callback is invoked while iterating through the list of Place Properties.
| [in] | index | The current index of property |
| [in] | total | The total amount of properties |
| [in] | key | The key of property |
| [in] | value | The value of property |
| [in] | user_data | The user data passed from maps_place_foreach_property() |
true to continue with the next iteration of the loop,false to break out of the loop | typedef bool(* maps_place_reviews_cb)(int index, int total, maps_place_review_h review, void *user_data) |
Called when requesting the list of Place Review.
This callback is invoked while iterating through the list of Place Reviews.
| [in] | index | The current index of review |
| [in] | total | The total amount of reviews |
| [in] | review | The place review handle |
| [in] | user_data | The user data passed from the maps_place_foreach_review() |
true to continue with the next iteration of the loop,false to break out of the loop | int maps_place_clone | ( | const maps_place_h | origin, |
| maps_place_h * | cloned | ||
| ) |
Clones the place handle.
This function clones the place handle origin and all its resources.
| [in] | origin | The original place handle |
| [out] | cloned | A cloned place handle |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_OUT_OF_MEMORY | Out of memory |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_destroy | ( | maps_place_h | place | ) |
Destroys the place handle and releases all its resources.
This function destroys the place handle and releases all its resources.
| [in] | place | The place handle to destroy |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_foreach_attribute | ( | const maps_place_h | place, |
| maps_place_attributes_cb | callback, | ||
| void * | user_data | ||
| ) |
Retrieves all attributes.
This function retrieves all place attributes.
| [in] | place | The place handle |
| [in] | callback | The callback function to invoke |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_FOUND | Result not found |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_foreach_category | ( | const maps_place_h | place, |
| maps_place_categories_cb | callback, | ||
| void * | user_data | ||
| ) |
Retrieves all categories.
This function retrieves all place categories.
| [in] | place | The place handle |
| [in] | callback | The callback function to invoke |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_FOUND | Result not found |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_foreach_contact | ( | const maps_place_h | place, |
| maps_place_contacts_cb | callback, | ||
| void * | user_data | ||
| ) |
Retrieves all contacts.
This function retrieves all place contacts.
| [in] | place | The place handle |
| [in] | callback | The callback function to invoke |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_FOUND | Result not found |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_foreach_editorial | ( | const maps_place_h | place, |
| maps_place_editorials_cb | callback, | ||
| void * | user_data | ||
| ) |
Retrieves all editorials.
This function retrieves all place editorials.
| [in] | place | The place handle |
| [in] | callback | The callback function to invoke |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_FOUND | Result not found |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_foreach_image | ( | const maps_place_h | place, |
| maps_place_images_cb | callback, | ||
| void * | user_data | ||
| ) |
Retrieves all images.
This function retrieves all place images.
| [in] | place | The place handle |
| [in] | callback | The callback function to invoke |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_FOUND | Result not found |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_foreach_property | ( | const maps_place_h | place, |
| maps_place_properties_cb | callback, | ||
| void * | user_data | ||
| ) |
Retrieves all properties.
This function retrieves all place properties.
| [in] | place | The place handle |
| [in] | callback | The callback function to invoke |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_FOUND | Result not found |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_foreach_review | ( | const maps_place_h | place, |
| maps_place_reviews_cb | callback, | ||
| void * | user_data | ||
| ) |
Retrieves all reviews.
This function retrieves all place reviews.
| [in] | place | The place handle |
| [in] | callback | The callback function to invoke |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_FOUND | Result not found |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_get_address | ( | const maps_place_h | place, |
| maps_address_h * | address | ||
| ) |
Gets the place address.
This function gets the place address.
| [in] | place | The place handle |
| [out] | address | The place address |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_get_distance | ( | const maps_place_h | place, |
| int * | distance | ||
| ) |
Gets the place distance from the center of the location.
This function gets the place distance from the center of the location.
| [in] | place | The place handle |
| [out] | distance | The place distance in meters |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_get_id | ( | const maps_place_h | place, |
| char ** | id | ||
| ) |
Gets the place ID.
This function gets the place ID.
| [in] | place | The place handle |
| [out] | id | The place ID |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_get_location | ( | const maps_place_h | place, |
| maps_coordinates_h * | location | ||
| ) |
Gets the place location.
This function gets the place location.
| [in] | place | The place handle |
| [out] | location | The place location |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_get_name | ( | const maps_place_h | place, |
| char ** | name | ||
| ) |
Gets the place name.
This function gets the place name.
| [in] | place | The place handle |
| [out] | name | The place name |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_get_rating | ( | const maps_place_h | place, |
| maps_place_rating_h * | rating | ||
| ) |
Gets the place rating.
This function gets the place rating.
| [in] | place | The place handle |
| [out] | rating | The place rating handle |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_get_related_link | ( | const maps_place_h | place, |
| maps_place_link_object_h * | related | ||
| ) |
Gets the place related link.
This function gets the place related link.
| [in] | place | The place handle |
| [out] | related | The place related link |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_get_supplier_link | ( | const maps_place_h | place, |
| maps_place_link_object_h * | supplier | ||
| ) |
Gets the place supplier link.
This function gets the place supplier link.
| [in] | place | The place handle |
| [out] | supplier | The place supplier link |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_get_uri | ( | const maps_place_h | place, |
| char ** | uri | ||
| ) |
Gets the place view URI.
This function gets the place view URI.
| [in] | place | The place handle |
| [out] | uri | The place view URI |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_list_destroy | ( | maps_place_list_h | place_list | ) |
Frees all of the memory used by a place list.
| [in] | place_list | The place list handle |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |
| int maps_place_list_foreach | ( | const maps_place_list_h | place_list, |
| maps_place_cb | callback, | ||
| void * | user_data | ||
| ) |
Retrieves all places.
This function retrieves all places.
| [in] | place_list | The place list handle |
| [in] | callback | The callback function to invoke |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | MAPS_ERROR_NONE | Successful |
| MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
| MAPS_ERROR_NOT_FOUND | Result not found |
| MAPS_ERROR_NOT_SUPPORTED | Not supported |