/[zanavi_public1]/navit/navit/search.h
ZANavi

Contents of /navit/navit/search.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27 - (show annotations) (download)
Mon Apr 9 21:27:36 2012 UTC (12 years ago) by zoff99
File MIME type: text/plain
File size: 2727 byte(s)
lots of new stuff, tranlsations, bug fixes ...
1 /**
2 * Navit, a modular navigation system.
3 * Copyright (C) 2005-2008 Navit Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public License
7 * version 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef NAVIT_SEARCH_H
21 #define NAVIT_SEARCH_H
22
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27 struct search_list_common
28 {
29 void *parent;
30 struct item unique, item;
31 int selected;
32 struct pcoord *c;
33 char *town_name;
34 char *district_name;
35 char *postal;
36 char *postal_mask;
37 char *county_name;
38 };
39
40 struct search_list_country
41 {
42 struct search_list_common common;
43 char *car;
44 char *iso2;
45 char *iso3;
46 char *name;
47 char *flag;
48 };
49
50 struct search_list_town
51 {
52 struct search_list_common common;
53 struct item itemt;
54 char *county;
55 };
56
57 struct search_list_street
58 {
59 struct search_list_common common;
60 char *name;
61 };
62
63 struct search_list_house_number
64 {
65 struct search_list_common common;
66 char *house_number;
67 int interpolation;
68 };
69
70 struct search_list_result
71 {
72 int id;
73 struct pcoord *c;
74 struct search_list_country *country;
75 struct search_list_town *town;
76 struct search_list_street *street;
77 struct search_list_house_number *house_number;
78 };
79
80 /* prototypes */
81 struct attr;
82 struct mapset;
83 struct search_list;
84 struct search_list_result;
85 struct jni_object;
86 struct search_list *search_list_new(struct mapset *ms);
87 void search_list_search(struct search_list *this_, struct attr *search_attr,
88 int partial);
89 char *search_postal_merge(char *mask, char *new_);
90 char *search_postal_merge_replace(char *mask, char *new_);
91 struct search_list_common *search_list_select(struct search_list *this_,
92 enum attr_type attr_type, int id, int mode);
93 struct search_list_result *search_list_get_result(struct search_list *this_);
94 void search_list_destroy(struct search_list *this_);
95 void search_init(void);
96 GList * search_by_address(GList *result_list, struct mapset *ms, char *addr,
97 int partial, struct jni_object *jni, int search_country_flags,
98 char *search_country_string);
99 void search_full_world(char *addr, int partial, int search_order,
100 struct jni_object *jni, struct coord_geo *search_center,
101 int search_radius);
102
103 /* end of prototypes */
104 #ifdef __cplusplus
105 }
106 #endif
107
108 #endif
109

   
Visit the ZANavi Wiki