4 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Youngae Kang <youngae.kang@samsung.com>, Yunhan Kim <yhan.kim@samsung.com>,
7 * Genie Kim <daejins.kim@samsung.com>, Minjune Kim <sena06.kim@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
22 #ifndef __MAP_INTERNAL_H__
23 #define __MAP_INTERNAL_H__
25 #include "location-types.h"
26 #include "location-ielement.h"
29 * @file map-internal.h
30 * @brief This file contains the internal definitions and structures related to geocode.
35 int map_service_get_geocode (LocationIElement *self, const LocationAddress *address, GList **position_list, GList **accuracy_list);
37 int map_service_get_geocode_freeform (LocationIElement *self, const gchar *address, GList **position_list, GList **accuracy_list);
39 int map_service_get_reversegeocode (LocationIElement *self, const LocationPosition *position, LocationAddress **address, LocationAccuracy **accuracy);
41 int map_service_get_geocode_async (LocationIElement *self, LocationAddress *address, LocationPositionCB callback, gpointer userdata);
43 int map_service_get_geocode_freeform_async (LocationIElement *self, const gchar *address, LocationPositionCB callback, gpointer userdata);
45 int map_service_get_reversegeocode_async (LocationIElement *self, const LocationPosition *position, LocationAddressCB callback, gpointer userdata);
47 int map_service_search_poi (LocationIElement *self,
48 const LocationPOIFilter *filter, const LocationPosition *position,
49 const LocationPreference *svc_pref, const LocationPOIPreference *pref,
50 LocationPOICB cb, const gpointer user_data, guint * req_id);
52 int map_service_search_poi_by_area (LocationIElement *self,
53 const LocationPOIFilter *filter, const LocationBoundary *boundary,
54 const LocationPreference *svc_pref, const LocationPOIPreference *pref,
55 LocationPOICB cb, const gpointer user_data, guint * req_id);
57 int map_service_search_poi_by_address (LocationIElement *self,
58 const LocationPOIFilter *filter, const LocationAddress *address,
59 const LocationPreference *svc_pref, const LocationPOIPreference *pref,
60 LocationPOICB cb, const gpointer user_data, guint * req_id);
62 int map_service_search_poi_by_freeform (LocationIElement *self,
63 const LocationPOIFilter * filter, const gchar *freeform,
64 const LocationPreference *svc_pref, const LocationPOIPreference *pref,
65 LocationPOICB cb, const gpointer user_data, guint *req_id);
67 int map_service_cancel_poi_request (LocationIElement *self, guint req_id);
69 int map_service_request_route (LocationIElement *self,
70 const LocationPosition *origin, const LocationPosition *destination, GList *waypoint,
71 const LocationPreference *svc_pref, const LocationRoutePreference *pref,
72 LocationRouteCB cb, const gpointer user_data, guint * req_id);
74 int map_service_cancel_route_request (LocationIElement *self, guint req_id);
76 gboolean map_service_is_supported_map_provider_capability (LocationIElement *self, LocationMapServiceType type);
78 int map_service_get_map_provider_capability_key (LocationIElement *self, LocationMapServiceType type, GList **key);