summaryrefslogtreecommitdiff
path: root/src/mapquest/mapquest_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapquest/mapquest_api.h')
-rw-r--r--src/mapquest/mapquest_api.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/mapquest/mapquest_api.h b/src/mapquest/mapquest_api.h
new file mode 100644
index 0000000..479e306
--- /dev/null
+++ b/src/mapquest/mapquest_api.h
@@ -0,0 +1,68 @@
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _MAPQUEST_API_H_
+#define _MAPQUEST_API_H_
+
+#include "mapquest_types.h"
+#include <tizen_type.h>
+
+/**
+ * @ingroup MAPQUEST_ENGINE_MODULE
+ * @defgroup MAPQUEST_ENGINE_API_MODULE
+ *
+ * @file mapquest_api.h
+ * @brief This file contains the MapQuest engine API's that should be called by the plugin
+ *
+ * @addtogroup MAPQUEST_ENGINE_MODULE
+ * @{
+ * @brief This provides APIs related to MapQuest engine.
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /* Callbacks */
+typedef void (*mapquest_geocode_cb) (mapquest_error_e result, int request_id, GList *co_ordinates, void *user_data);
+
+typedef void (*mapquest_reverse_geocode_cb) (mapquest_error_e result, int request_id, mapquest_address_resp_s *address, void *user_data);
+
+typedef void (*mapquest_place_search_cb) (mapquest_error_e result, int request_id, GList *places, void *user_data);
+
+typedef void (*mapquest_route_cb) (mapquest_error_e result, int request_id, mapquest_route_resp_s *route_info, void *user_data);
+
+typedef void (*mapquest_maptile_cb) (mapquest_error_e result, int request_id, char *buffer, void *user_data);
+
+int mapquest_init();
+
+int mapquest_shutdown();
+
+int mapquest_geocode(mapquest_geocode_req_s *req_details, mapquest_geocode_cb callback, int request_id, void *user_data);
+
+int mapquest_cancel_request(int request_id);
+
+int mapquest_reverse_geocode(mapquest_revgeocode_req_s *req_details, mapquest_reverse_geocode_cb callback, int request_id, void *user_data);
+
+int mapquest_search_place(mapquest_search_req_s *req_details, mapquest_place_search_cb callback, int request_id, void *user_data);
+
+int mapquest_start_route(mapquest_route_req_s *req_details, mapquest_route_cb callback, int request_id, void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _MAPQUEST_API_H_ */