2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef _LOCATION_HERE_API_H_
17 #define _LOCATION_HERE_API_H_
19 #include <maps_plugin.h>
21 int HerePluginInit(maps_plugin_h *hPlugin);
23 int HerePluginShutdown(maps_plugin_h hPlugin);
25 int HerePluginSetProviderKey(const char* szKey);
27 int HerePluginGetProviderKey(char** szKey);
29 int HerePluginSetPreference(maps_preference_h hPref);
31 int HerePluginGetPreference(maps_preference_h *hPref);
33 int HerePluginGeocode(const char* szAddr,
34 maps_item_hashtable_h hPref, maps_service_geocode_cb pCbFunc,
35 void *pUserData, int *nReqId);
37 int HerePluginGeocodeByStructuredAddress(const maps_address_h hAddr,
38 maps_item_hashtable_h hPref, maps_service_geocode_cb pCbFunc,
39 void *pUserData, int *nReqId);
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);
45 int HerePluginReverseGeocode(double dLatitude, double dLongitude,
46 maps_item_hashtable_h hPref, maps_service_reverse_geocode_cb pCbFunc,
47 void *pUserData, int *nReqId);
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);
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);
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);
61 int HerePluginSearchPlaceDetails(const char* szUrl,
62 maps_item_hashtable_h hPref, maps_service_search_place_cb pCbFunc,
63 void * pUserData, int *nReqId);
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);
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);
73 int HerePluginCancelRequest(int nReqId);
75 #endif //_LOCATION_HERE_API_H_