Add pref's properties
[framework/location/libdecarta.git] / location_module / location_decarta.h
1 /*
2  * libdecarta
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 __LOCATION_DECARTA_H__
23 #define __LOCATION_DECARTA_H__
24
25 #include <location-types.h>
26
27 #define DEFAULT_ROUTE_RESOLUTION (0.01)
28
29 typedef struct{
30         LocationPositionCB pos_cb;
31         LocationAddressCB addr_cb;
32         LocationPOICB poi_cb;
33         LocationRouteCB route_cb;
34         DecartaHandle *handle;
35         gpointer userdata;
36         gpointer userdata2;
37         gpointer userdata3;
38 } DecartaData;
39
40 // used to pass the data to idle_callback in async request
41 typedef struct{
42         DecartaPosition *pos;
43         DecartaAddress *addr;
44         DecartaDirectoryRequest *dir_request;
45         DecartaRouteRequest *route_request;
46
47         DecartaReverseGeocodeCB reverse_geocode_cb;
48         DecartaGeocodeCB geocode_cb;
49         DecartaDirectoryCB dir_cb;
50         DecartaRouteCB route_cb;
51
52         void *decarta_data;
53         guint request_id;
54 } decarta_IdleData;
55
56 gchar *key_lang[] = {
57         "KR",
58         "EN"
59 };
60
61 gchar *key_property[] = {
62         "ID",
63         "PASSWORD"
64 };
65
66 gchar *key_country[] = {
67         "ko",
68         "us"
69 };
70
71 gchar *key_dist[] = {
72         "MI",
73         "M",
74         "KM",
75         "YD"
76 };
77
78 gchar *key_poi_sort[] = {
79         "Distance",
80         "Name"
81 };
82
83 gchar *key_poi_prop[] = {
84         "Distance",
85         "LandmarkType",
86         "LandmarkName"
87 };
88
89 gchar *key_poi_filter[] = {
90         "POIName",
91         "KEYWORD",
92         "CATEGORY"
93 };
94
95 gchar *key_poi_filter_category[] = {
96         "restaurant",
97         "cafe"
98 };
99
100 gchar *key_route_type[] = {
101         "FASTEST",
102         "SHORTEST",
103         "PEDESTRIAN",
104         "AVOID_FREEWAYS",
105         "NO_FREEWAYS",
106         "MORE_FREEWAYS",
107         "IGNORE_PIPES",
108         "EASY"
109 };
110
111 gchar *key_route_trans_mode[] = {
112         "Vehicle",
113         "Pedestrian"
114 };
115
116 gchar *key_route_feature_to_avoid[] = {
117         "TOLL WAYS",
118         "BRIDGES"
119 };
120
121 #endif
122
123
124