tizen 2.4 release
[framework/location/maps-plugin-here.git] / src / here / here_api.h
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef _LOCATION_HERE_API_H_
17 #define _LOCATION_HERE_API_H_
18
19 #include <maps_plugin.h>
20
21 int HerePluginInit(maps_plugin_h *hPlugin);
22
23 int HerePluginShutdown(maps_plugin_h hPlugin);
24
25 int HerePluginSetProviderKey(const char* szKey);
26
27 int HerePluginGetProviderKey(char** szKey);
28
29 int HerePluginSetPreference(maps_preference_h hPref);
30
31 int HerePluginGetPreference(maps_preference_h *hPref);
32
33 int HerePluginGeocode(const char* szAddr,
34         maps_item_hashtable_h hPref, maps_service_geocode_cb pCbFunc,
35         void *pUserData, int *nReqId);
36
37 int HerePluginGeocodeByStructuredAddress(const maps_address_h hAddr,
38         maps_item_hashtable_h hPref, maps_service_geocode_cb pCbFunc,
39         void *pUserData, int *nReqId);
40
41 int HerePluginGeocodeInsideArea(const char* szAddr, maps_area_h hArea,
42         maps_item_hashtable_h hPref, maps_service_geocode_cb pCbFunc,
43         void *pUserData, int *nReqId);
44
45 int HerePluginReverseGeocode(double dLatitude, double dLongitude,
46         maps_item_hashtable_h hPref, maps_service_reverse_geocode_cb pCbFunc,
47         void *pUserData, int *nReqId);
48
49 int HerePluginSearchPlace(maps_coordinates_h hPos, int nDistance,
50         maps_item_hashtable_h hPref, maps_place_filter_h hFilter, maps_service_search_place_cb pCbFunc,
51         void * pUserData, int *nReqId);
52
53 int HerePluginSearchPlaceByArea(maps_area_h hArea,
54         maps_item_hashtable_h hPref, maps_place_filter_h hFilter, maps_service_search_place_cb pCbFunc,
55         void * pUserData, int *nReqId);
56
57 int HerePluginSearchPlaceByAddress(const char* szAddr, maps_area_h hArea,
58         maps_item_hashtable_h hPref, maps_place_filter_h hFilter, maps_service_search_place_cb pCbFunc,
59         void * pUserData, int *nReqId);
60
61 int HerePluginSearchPlaceDetails(const char* szUrl,
62         maps_item_hashtable_h hPref, maps_service_search_place_cb pCbFunc,
63         void * pUserData, int *nReqId);
64
65 int HerePluginSearchRoute(maps_coordinates_h hOrigin, maps_coordinates_h hDestination,
66         maps_item_hashtable_h hPref, maps_service_search_route_cb pCbFunc,
67         void *pUserData, int *nReqId);
68
69 int HerePluginSearchRouteWaypoints(const maps_coordinates_h* hWaypointList, int nWaypointNum,
70         maps_item_hashtable_h hPref, maps_service_search_route_cb pCbFunc,
71         void* pUserData, int *nReqId);
72
73 int HerePluginCancelRequest(int nReqId);
74
75 #endif //_LOCATION_HERE_API_H_