upload tizen1.0 source
[platform/core/location/lbs-location.git] / location / map-service / map-internal.h
1 /*
2  * libslp-location
3  *
4  * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
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>
8  *
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
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
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.
20  */
21
22 #ifndef __MAP_INTERNAL_H__
23 #define __MAP_INTERNAL_H__
24
25 #include "location-types.h"
26 #include "location-ielement.h"
27
28 /**
29  * @file map-internal.h
30  * @brief This file contains the internal definitions and structures related to geocode.
31  */
32
33 G_BEGIN_DECLS
34
35 int map_service_get_geocode (LocationIElement *self, const LocationAddress *address, GList **position_list, GList **accuracy_list);
36
37 int map_service_get_geocode_freeform (LocationIElement *self, const gchar  *address, GList **position_list, GList **accuracy_list);
38
39 int map_service_get_reversegeocode (LocationIElement *self, const LocationPosition *position, LocationAddress **address, LocationAccuracy **accuracy);
40
41 int map_service_get_geocode_async (LocationIElement *self, LocationAddress *address, LocationPositionCB callback, gpointer userdata);
42
43 int map_service_get_geocode_freeform_async (LocationIElement *self, const gchar *address, LocationPositionCB callback, gpointer userdata);
44
45 int map_service_get_reversegeocode_async (LocationIElement *self, const LocationPosition *position, LocationAddressCB callback, gpointer userdata);
46
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);
51
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);
56
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);
61
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);
66
67 int map_service_cancel_poi_request (LocationIElement *self, guint req_id);
68
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);
73
74 int map_service_cancel_route_request (LocationIElement *self, guint req_id);
75
76 gboolean map_service_is_supported_map_provider_capability (LocationIElement *self, LocationMapServiceType type);
77
78 int map_service_get_map_provider_capability_key (LocationIElement *self, LocationMapServiceType type, GList **key);
79
80 G_END_DECLS
81
82 #endif