EXPORT_API int maps_plugin_search_route(const maps_coordinates_h origin,
const maps_coordinates_h destination, maps_preference_h preference,
maps_service_search_route_cb callback, void *user_data, int *request_id) {
- MAPS_LOGD(">>>>> START maps_plugin_search_route: request_id=%d", *request_id);
-
if (!origin || !destination || !callback || !request_id)
return MAPS_ERROR_INVALID_PARAMETER;
+ MAPS_LOGD(">>>>> START maps_plugin_search_route: request_id=%d", *request_id);
+
callback_info_route *calldata_route = (callback_info_route *)g_malloc0(sizeof(callback_info_route));
if (calldata_route == NULL)
MAPS_PRINT_ERROR_CODE_RETURN(MAPS_ERROR_OUT_OF_MEMORY);