Tizen Native API
5.0
|
This provides APIs related to Address information used in Geocoding and Reverse Geocoding.
Functions | |
int | maps_address_create (maps_address_h *address) |
Creates a new address handle. | |
int | maps_address_destroy (maps_address_h address) |
Destroys the address handle and releases all its resources. | |
int | maps_address_clone (const maps_address_h origin, maps_address_h *cloned) |
Clones the address handle. | |
int | maps_address_get_building_number (const maps_address_h address, char **building_number) |
Gets the building number of the address handle. | |
int | maps_address_get_street (const maps_address_h address, char **street) |
Gets the street name of the address handle. | |
int | maps_address_get_district (const maps_address_h address, char **district) |
Gets the district name of the address handle. | |
int | maps_address_get_city (const maps_address_h address, char **city) |
Gets the city name of the address handle. | |
int | maps_address_get_state (const maps_address_h address, char **state) |
Gets the state name of the address handle. | |
int | maps_address_get_country (const maps_address_h address, char **country) |
Gets the country name of the address handle. | |
int | maps_address_get_country_code (const maps_address_h address, char **country_code) |
Gets the country code of the address handle. | |
int | maps_address_get_county (const maps_address_h address, char **county) |
Gets the county of the address handle. | |
int | maps_address_get_postal_code (const maps_address_h address, char **postal_code) |
Gets the postal code of the address handle. | |
int | maps_address_get_freetext (const maps_address_h address, char **freetext) |
Gets the free text of the address handle. | |
int | maps_address_set_building_number (maps_address_h address, const char *building_number) |
Sets the building number of the address handle. | |
int | maps_address_set_street (maps_address_h address, const char *street) |
Sets the street name of the address handle. | |
int | maps_address_set_district (maps_address_h address, const char *district) |
Sets the district name of the address handle. | |
int | maps_address_set_city (maps_address_h address, const char *city) |
Sets the city name of the address handle. | |
int | maps_address_set_state (maps_address_h address, const char *state) |
Sets the state name of the address handle. | |
int | maps_address_set_country (maps_address_h address, const char *country) |
Sets the country name of the address handle. | |
int | maps_address_set_country_code (maps_address_h address, const char *country_code) |
Sets the country code of the address handle. | |
int | maps_address_set_county (maps_address_h address, const char *county) |
Sets the county of the address handle. | |
int | maps_address_set_postal_code (maps_address_h address, const char *postal_code) |
Sets the postal code of the address handle. | |
int | maps_address_set_freetext (maps_address_h address, const char *freetext) |
Sets the free text of the address handle. | |
int | maps_address_list_create (maps_address_list_h *address_list) |
Creates an address list having a set of addresses. | |
int | maps_address_list_append (maps_address_list_h address_list, maps_address_h address) |
Appends an address to an address list. | |
int | maps_address_list_remove (maps_address_list_h address_list, maps_address_h address) |
Removes an address from an address list. | |
int | maps_address_list_get_length (maps_address_list_h address_list, int *length) |
Gets the number of elements in an address list. | |
int | maps_address_list_foreach (maps_address_list_h address_list, maps_address_cb callback, void *user_data) |
Retrieves all addresses by invoking a specific callback for each address of address list. | |
int | maps_address_list_destroy (maps_address_list_h address_list) |
Frees all of the memory used by an address list. | |
Typedefs | |
typedef void * | maps_address_h |
The address handle. | |
typedef void * | maps_address_list_h |
The address list handle. | |
typedef bool(* | maps_address_cb )(int index, maps_address_h address, void *user_data) |
Called iteratively to get address information. |
typedef bool(* maps_address_cb)(int index, maps_address_h address, void *user_data) |
Called iteratively to get address information.
[in] | index | The index of iteration |
[in] | address | The address handle |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef void* maps_address_h |
The address handle.
The address handle can be obtained via calling of maps_address_create().
typedef void* maps_address_list_h |
The address list handle.
The address list handle can be obtained via calling of maps_address_list_create().
int maps_address_clone | ( | const maps_address_h | origin, |
maps_address_h * | cloned | ||
) |
Clones the address handle.
This function clones the address handle origin and all its resources.
Address handle origin may be created using maps_address_create().
[in] | origin | The original address handle |
[out] | cloned | A cloned address 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_address_create | ( | maps_address_h * | address | ) |
Creates a new address handle.
This function creates a new address handle and allocates all needed resources.
[out] | address | The address 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_address_destroy | ( | maps_address_h | address | ) |
Destroys the address handle and releases all its resources.
This function destroys the address handle and releases all its resources.
[in] | address | The address 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_address_get_building_number | ( | const maps_address_h | address, |
char ** | building_number | ||
) |
Gets the building number of the address handle.
This function gets the building number of the address handle.
[in] | address | The address handle |
[out] | building_number | The building number of the address 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_address_get_city | ( | const maps_address_h | address, |
char ** | city | ||
) |
Gets the city name of the address handle.
This function gets the city name of the address handle.
[in] | address | The address handle |
[out] | city | The city name of the address 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_address_get_country | ( | const maps_address_h | address, |
char ** | country | ||
) |
Gets the country name of the address handle.
This function gets the country name of the address handle.
[in] | address | The address handle |
[out] | country | The country name of the address 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_address_get_country_code | ( | const maps_address_h | address, |
char ** | country_code | ||
) |
Gets the country code of the address handle.
This function gets the country code of the address handle.
[in] | address | The address handle |
[out] | country_code | The country code of the address 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_address_get_county | ( | const maps_address_h | address, |
char ** | county | ||
) |
Gets the county of the address handle.
This function gets the county of the address handle.
[in] | address | The address handle |
[out] | county | The county of the address 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_address_get_district | ( | const maps_address_h | address, |
char ** | district | ||
) |
Gets the district name of the address handle.
This function gets the district name of the address handle.
[in] | address | The address handle |
[out] | district | The district name of the address 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_address_get_freetext | ( | const maps_address_h | address, |
char ** | freetext | ||
) |
Gets the free text of the address handle.
This function gets the free text of the address handle.
[in] | address | The address handle |
[out] | freetext | The free text of the address 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_address_get_postal_code | ( | const maps_address_h | address, |
char ** | postal_code | ||
) |
Gets the postal code of the address handle.
This function gets the postal code of the address handle.
[in] | address | The address handle |
[out] | postal_code | The postal code of the address 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_address_get_state | ( | const maps_address_h | address, |
char ** | state | ||
) |
Gets the state name of the address handle.
This function gets the state name of the address handle.
[in] | address | The address handle |
[out] | state | The state name of the address 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_address_get_street | ( | const maps_address_h | address, |
char ** | street | ||
) |
Gets the street name of the address handle.
This function gets the street name of the address handle.
[in] | address | The address handle |
[out] | street | The street name of the address 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_address_list_append | ( | maps_address_list_h | address_list, |
maps_address_h | address | ||
) |
Appends an address to an address list.
[in] | address_list | The address list handle |
[in] | address | The address handle |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_OUT_OF_MEMORY | Out of memory |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_address_list_create | ( | maps_address_list_h * | address_list | ) |
Creates an address list having a set of addresses.
[out] | address_list | The address list handle |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_OUT_OF_MEMORY | Out of memory |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_address_list_destroy | ( | maps_address_list_h | address_list | ) |
Frees all of the memory used by an address list.
[in] | address_list | The address 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_address_list_foreach | ( | maps_address_list_h | address_list, |
maps_address_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all addresses by invoking a specific callback for each address of address list.
[in] | address_list | The address list handle |
[in] | callback | The iteration callback |
[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_SUPPORTED | Not supported |
int maps_address_list_get_length | ( | maps_address_list_h | address_list, |
int * | length | ||
) |
Gets the number of elements in an address list.
[in] | address_list | The address list handle |
[out] | length | The number of elements in the address list |
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_address_list_remove | ( | maps_address_list_h | address_list, |
maps_address_h | address | ||
) |
Removes an address from an address list.
[in] | address_list | The address list handle |
[in] | address | The address 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_address_set_building_number | ( | maps_address_h | address, |
const char * | building_number | ||
) |
Sets the building number of the address handle.
This function sets the building number of the address handle.
[in] | address | The address handle |
[in] | building_number | The building number to be set |
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_address_set_city | ( | maps_address_h | address, |
const char * | city | ||
) |
Sets the city name of the address handle.
This function sets the city name of the address handle.
[in] | address | The address handle |
[in] | city | The city name to be set |
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_address_set_country | ( | maps_address_h | address, |
const char * | country | ||
) |
Sets the country name of the address handle.
This function sets the country name of the address handle.
[in] | address | The address handle |
[in] | country | The country name to be set |
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_address_set_country_code | ( | maps_address_h | address, |
const char * | country_code | ||
) |
Sets the country code of the address handle.
This function sets the country code of the address handle.
[in] | address | The address handle |
[in] | country_code | The country code to be set |
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_address_set_county | ( | maps_address_h | address, |
const char * | county | ||
) |
Sets the county of the address handle.
This function sets the county of the address handle.
[in] | address | The address handle |
[in] | county | The county to be set |
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_address_set_district | ( | maps_address_h | address, |
const char * | district | ||
) |
Sets the district name of the address handle.
This function sets the district name of the address handle.
[in] | address | The address handle |
[in] | district | The district name to be set |
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_address_set_freetext | ( | maps_address_h | address, |
const char * | freetext | ||
) |
Sets the free text of the address handle.
This function sets the free text of the address handle.
[in] | address | The address handle |
[in] | freetext | The free text to be set |
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_address_set_postal_code | ( | maps_address_h | address, |
const char * | postal_code | ||
) |
Sets the postal code of the address handle.
This function sets the postal code of the address handle.
[in] | address | The address handle |
[in] | postal_code | The postal code to be set |
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_address_set_state | ( | maps_address_h | address, |
const char * | state | ||
) |
Sets the state name of the address handle.
This function sets the state name of the address handle.
[in] | address | The address handle |
[in] | state | The state name to be set |
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_address_set_street | ( | maps_address_h | address, |
const char * | street | ||
) |
Sets the street name of the address handle.
This function sets the street name of the address handle.
[in] | address | The address handle |
[in] | street | The street name to be set |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |