ipoi.ice
3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
module POI {
struct poi_info_t
{
int id; //poi id
float lng;
float lat;
int citycode;
int type;
string name;
string addr;
string tel;
int weight;
int distance;
};
sequence<poi_info_t> poi_info_seq_t;
sequence<int> poi_type_seq_t;
enum POI_INDEX_TYPE_CONSTANTS
{
emIndexName,
emIndexAddr,
emIndexCustom,
index_type_count,
};
struct geopoint
{
float lng;
float lat;
};
struct geocoding_result
{
int level;
int confidence;
geopoint pt;
};
/*
* POI search
*/
interface IPOISearchFTR
{
/*
input:
emIndexType
key
citycode
limit
output:
a list of poi
*/
int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, string key, int citycode, int limit, out poi_info_seq_t arrPoiInfo);
/*
input:
emIndexType
key
citycode
limit
a list of type
output:
a list of poi
*/
int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, string key, int citycode, poi_type_seq_t arrType, int limit,
out poi_info_seq_t arrPoiInfo);
/*
input:
emIndexType
key
citycode
limit
a list of type
lng lat :pos
maxDis:distance
output:
a list of poi
*/
int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, string key, poi_type_seq_t arrType, geopoint pt, int maxDis, int limit,
out poi_info_seq_t arrPoiInfo);
/*
input:
key
region city
limit
output:
a list of poi
*/
int poi_search_by_key_cityname(string key, string cityname, int limit, out poi_info_seq_t arrPoiInfo);
/*
input:
key
citycode
limit
省内查询
output:
a list of poi
*/
int poi_search_by_key_citycode(string key, int citycode, int limit, out poi_info_seq_t arrPoiInfo);
/*
地址解析
input:
string strGeopointDescription
output:
geocoding_result rst
*/
int Geocoding(string strAddress, out geocoding_result rst);
}; // interface IPOISearchFTR
interface IPOISearchNear
{
/*
input:
ptLL
ptRR
a list of type
numLimit
output:
a list of poi
*/
int poi_search_by_rect(geopoint ptLL,geopoint ptRR,poi_type_seq_t arrType,int numLimit,out poi_info_seq_t arrPoiInfo);
/*
input:
pt
maxDis
a list of type
numLimit
output:
a list of poi
*/
int poi_search_by_circle(geopoint pt,int maxDis,poi_type_seq_t arrType,int numLimit,out poi_info_seq_t arrPoiInfo);
/*
input:
citycode
limit
a list of type
output:
a list of poi
*/
int poi_search_by_city(int citycode,poi_type_seq_t arrType,int limit,out poi_info_seq_t arrPoiInfo);
/*
逆地址解析
input:
geopoint pt
output:
string strGeopointDescription
*/
int ReverseGeocoding(geopoint pt,out string strGeopointDescription);
// 逆地址解析, 格式:广东省广州市天河区国际康体贸易中心附近
int ReverseGeocoding2(geopoint pt, out string strGeopointDescription);
}; // interface IPOISearchFTR
}; // module