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 __LOCATION_MAP_TYPES_H__
23 #define __LOCATION_MAP_TYPES_H__
26 #include <glib-object.h>
27 #include <location-types.h>
32 * @file location-map-types.h
33 * @brief This file contains the Location related structure, enumeration, and asynchronous function definitions.
34 * @addtogroup LocationFW
36 * @defgroup LocationMapTypes Location Map Types
37 * @brief This sub module provides structure, enumeration, and asynchronous function definitions.
38 * @addtogroup LocationMapTypes
43 MAP_SERVICE_PREF_LANGUAGE,
44 MAP_SERVICE_PREF_DISTANCE_UNIT,
46 MAP_SERVICE_PREF_PROPERTY,
48 MAP_SERVICE_GEOCODE_TYPE,
49 MAP_SERVICE_REVERSE_GEOCODE_TYPE,
52 MAP_SERVICE_POI_SEARCH_BY_ADDRESS,
53 MAP_SERVICE_POI_SEARCH_BY_FREEFORM_ADDRESS,
54 MAP_SERVICE_POI_SEARCH_BY_CIRCLE_BOUNDARY,
55 MAP_SERVICE_POI_SEARCH_BY_RECT_BOUNDARY,
56 MAP_SERVICE_POI_SEARCH_BY_POLYGON_BOUNDARY,
57 MAP_SERVICE_POI_PREF_SORT_BY,
58 MAP_SERVICE_POI_PREF_PROPERTY,
59 MAP_SERVICE_POI_FILTER,
60 MAP_SERVICE_POI_FILTER_CATEGORY,
62 MAP_SERVICE_ROUTE_REQUEST_FREEFORM_ADDR_TO_AVOID,
63 MAP_SERVICE_ROUTE_REQUEST_STRUCTED_ADDR_TO_AVOID,
64 MAP_SERVICE_ROUTE_REQUEST_CIRCLE_AREA_TO_AVOID,
65 MAP_SERVICE_ROUTE_REQUEST_RECT_AREA_TO_AVOID,
66 MAP_SERVICE_ROUTE_REQUEST_POLYGON_AREA_TO_AVOID,
67 MAP_SERVICE_ROUTE_REQUEST_FEATURE_TO_AVOID,
68 MAP_SERVICE_ROUTE_PREF_TYPE,
69 MAP_SERVICE_ROUTE_PREF_TRANSPORT_MODE,
70 MAP_SERVICE_ROUTE_PREF_GEOMETRY_BOUNDING_BOX,
71 MAP_SERVICE_ROUTE_PREF_GEOMETRY_RETRIEVAL,
72 MAP_SERVICE_ROUTE_PREF_INSTRUCTION_GEOMETRY,
73 MAP_SERVICE_ROUTE_PREF_INSTRUCTION_BOUNDING_BOX,
74 MAP_SERVICE_ROUTE_PREF_INSTRUCTION_RETRIEVAL,
75 MAP_SERVICE_ROUTE_PREF_REALTIME_TRAFFIC,
76 MAP_SERVICE_ROUTE_PREF_PROPERTY,
77 MAP_SERVICE_ROUTE_DISTANCE_UNIT,
78 MAP_SERVICE_ROUTE_PROPERTY,
79 MAP_SERVICE_ROUTE_SEGMENT_PROPERTY,
80 MAP_SERVICE_ROUTE_STEP_PROPERTY,
83 } LocationMapServiceType;
86 * @brief Location Map Object redefined by GObject.
88 typedef GObject LocationMapObject;
91 * @brief This represents address information such as building number, street name, etc.
93 typedef struct _LocationAddress LocationAddress;
96 * @brief This represents a structure of Location Map Preference.
98 typedef struct _LocationMapPref LocationMapPref;
101 * @brief This represents a structure of Location POI filter.
103 typedef struct _LocationPOIFilter LocationPOIFilter;
106 * @brief This represents a structure of Location POI preference.
108 typedef struct _LocationPOIPreference LocationPOIPreference;
111 * @brief This represents a structure of Landmark information.
113 typedef struct _LocationLandmark LocationLandmark;
116 * @brief This represents a structure of Landmark Url.
118 typedef struct _LocationLandmarkUrl LocationLandmarkUrl;
121 * @brief This represents a structure of Location route preference.
123 typedef struct _LocationRoutePreference LocationRoutePreference;
126 * @brief This represents a structure of Location route.
128 typedef struct _LocationRoute LocationRoute;
131 * @brief This represents a structure of Location route segment.
133 typedef struct _LocationRouteSegment LocationRouteSegment;
136 * @brief This represents a structure of Location route step.
138 typedef struct _LocationRouteStep LocationRouteStep;
141 * @brief This represents callback function which will be called to give position information.
143 typedef void (*LocationPositionCB)(LocationError error, GList *position_list, GList *accuracy_list, gpointer userdata);
146 * @brief This represents callback function which will be called to give address information.
148 typedef void (*LocationAddressCB)(LocationError error, LocationAddress *address, LocationAccuracy *acc, gpointer userdata);
151 * @brief This represents callback function which will be called to give POI information.
153 typedef void (*LocationPOICB)(LocationError error, guint req_id, GList *landmark_list, gchar *error_code, gchar *error_msg, gpointer userdata);
156 * @brief This represents callback function which will be called to give Route information.
158 typedef void (*LocationRouteCB)(LocationError error, guint req_id, GList *route_list, gchar *error_code, gchar *error_msg, gpointer userdata);
166 #endif /* __LOCATION_MAP_TYPES_H__ */