MAPS_LOGD("Place Result limit :: %d", place_req->num_res);
- char *categoryName = NULL;
+ char *categoryId = NULL;
char *searchKeyword = NULL;
maps_place_category_h category = NULL;
maps_place_filter_get_keyword(filter, &searchKeyword);
if (category) {
- maps_place_category_get_name(category, &categoryName);
+ maps_place_category_get_id(category, &categoryId);
maps_place_category_destroy(category);
}
- if (categoryName)
- place_req->categories = g_strdup_printf("%s", categoryName);
+ if (categoryId)
+ place_req->categories = g_strdup_printf("%s", categoryId);
if (searchKeyword)
place_req->search_string = g_strdup_printf("%s", searchKeyword);
- if (!searchKeyword && !categoryName) {
+ if (!searchKeyword && !categoryId) {
g_free(calldata_place);
calldata_place = NULL;
g_free(place_req);
searchKeyword = NULL;
}
- if (categoryName) {
- g_free(categoryName);
- categoryName = NULL;
+ if (categoryId) {
+ g_free(categoryId);
+ categoryId = NULL;
}
MAPS_LOGD(">>>>>>>> Place search categories :: %s <<<<<<<<<", place_req->categories);
MAPS_LOGD("Place Result limit :: %d", place_req->num_res);
- char *categoryName = NULL;
+ char *categoryId = NULL;
char *searchKeyword = NULL;
maps_place_category_h category = NULL;
maps_place_filter_get_keyword(filter, &searchKeyword);
if (category) {
- maps_place_category_get_name(category, &categoryName);
+ maps_place_category_get_id(category, &categoryId);
maps_place_category_destroy(category);
}
- if (categoryName)
- place_req->categories = g_strdup_printf("%s", categoryName);
+ if (categoryId)
+ place_req->categories = g_strdup_printf("%s", categoryId);
if (searchKeyword)
place_req->search_string = g_strdup_printf("%s", searchKeyword);
- if (!searchKeyword && !categoryName) {
+ if (!searchKeyword && !categoryId) {
g_free(calldata_place);
calldata_place = NULL;
g_free(place_req);
searchKeyword = NULL;
}
- if (categoryName) {
- g_free(categoryName);
- categoryName = NULL;
+ if (categoryId) {
+ g_free(categoryId);
+ categoryId = NULL;
}
MAPS_LOGD(">>>>>>>> Place search categories :: %s <<<<<<<<<", place_req->categories);
MAPS_LOGD("Place Result limit :: %d", place_req->num_res);
- char *categoryName = NULL;
+ char *categoryId = NULL;
char *searchKeyword = NULL;
maps_place_category_h category = NULL;
maps_place_filter_get_keyword(filter, &searchKeyword);
if (category) {
- maps_place_category_get_name(category, &categoryName);
+ maps_place_category_get_id(category, &categoryId);
maps_place_category_destroy(category);
}
- if (categoryName)
- place_req->categories = g_strdup_printf("%s", categoryName);
+ if (categoryId)
+ place_req->categories = g_strdup_printf("%s", categoryId);
if (searchKeyword)
place_req->search_string = g_strdup_printf("%s", searchKeyword);
- if (!searchKeyword && !categoryName) {
+ if (!searchKeyword && !categoryId) {
g_free(calldata_place);
calldata_place = NULL;
g_free(place_req);
searchKeyword = NULL;
}
- if (categoryName) {
- g_free(categoryName);
- categoryName = NULL;
+ if (categoryId) {
+ g_free(categoryId);
+ categoryId = NULL;
}
MAPS_LOGD(">>>>>>>> Place search categories :: %s <<<<<<<<<", place_req->categories);
MAPS_LOGD("Place Result limit :: %d", place_req->num_res);
- char *categoryName = NULL;
+ char *categoryId = NULL;
maps_place_category_h category = NULL;
maps_place_filter_get_category(filter, &category);
if (category) {
- maps_place_category_get_name(category, &categoryName);
+ maps_place_category_get_id(category, &categoryId);
maps_place_category_destroy(category);
}
- if (categoryName)
- place_req->categories = g_strdup_printf("%s", categoryName);
+ if (categoryId)
+ place_req->categories = g_strdup_printf("%s", categoryId);
if (address)
place_req->search_string = g_strdup_printf("%s", address);
- if (!address && !categoryName) {
+ if (!address && !categoryId) {
g_free(calldata_place);
calldata_place = NULL;
g_free(place_req);
return MAPS_ERROR_INVALID_PARAMETER;
}
- if (categoryName) {
- g_free(categoryName);
- categoryName = NULL;
+ if (categoryId) {
+ g_free(categoryId);
+ categoryId = NULL;
}
MAPS_LOGD(">>>>>>>> Place search categories :: %s <<<<<<<<<", place_req->categories);