Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
open-platform-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a72b9e2e
authored
Dec 21, 2020
by
fz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.controller层包装完毕
2.完成ice的dist功能对接 3.部分无公用的返回实体类修改为map
1 parent
d05e3c87
Hide whitespace changes
Inline
Side-by-side
Showing
65 changed files
with
6316 additions
and
349 deletions
src/main/java/com/glsx/controller/OpenApiController.java
src/main/java/com/glsx/ice/iceClient/IceDistrictClient.java
src/main/java/com/glsx/ice/iceClient/IceHDaoGpsClient.java
src/main/java/com/glsx/ice/iceClient/IcePoiSearchClient.java
src/main/java/com/glsx/ice/iceClient/IceRtMileStatClient.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_Geocoding.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_poi_search_by_key.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_poi_search_by_key_and_type.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_poi_search_by_key_citycode.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_poi_search_by_key_cityname.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_poi_search_by_key_type_near.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchNear_ReverseGeocoding.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchNear_ReverseGeocoding2.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchNear_poi_search_by_circle.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchNear_poi_search_by_city.java
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchNear_poi_search_by_rect.java
src/main/java/com/glsx/ice/poisearch/IPOISearchFTR.java
src/main/java/com/glsx/ice/poisearch/IPOISearchFTRHolder.java
src/main/java/com/glsx/ice/poisearch/IPOISearchFTRPrx.java
src/main/java/com/glsx/ice/poisearch/IPOISearchFTRPrxHelper.java
src/main/java/com/glsx/ice/poisearch/IPOISearchFTRPrxHolder.java
src/main/java/com/glsx/ice/poisearch/IPOISearchNear.java
src/main/java/com/glsx/ice/poisearch/IPOISearchNearHolder.java
src/main/java/com/glsx/ice/poisearch/IPOISearchNearPrx.java
src/main/java/com/glsx/ice/poisearch/IPOISearchNearPrxHelper.java
src/main/java/com/glsx/ice/poisearch/IPOISearchNearPrxHolder.java
src/main/java/com/glsx/ice/poisearch/POI_INDEX_TYPE_CONSTANTS.java
src/main/java/com/glsx/ice/poisearch/POI_INDEX_TYPE_CONSTANTSHolder.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTRDel.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTRDelD.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTRDelM.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTRDisp.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTROperations.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTROperationsNC.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearDel.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearDelD.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearDelM.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearDisp.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearOperations.java
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearOperationsNC.java
src/main/java/com/glsx/ice/poisearch/geocoding_result.java
src/main/java/com/glsx/ice/poisearch/geocoding_resultHolder.java
src/main/java/com/glsx/ice/poisearch/geopoint.java
src/main/java/com/glsx/ice/poisearch/geopointHolder.java
src/main/java/com/glsx/ice/poisearch/poi_info_seq_tHelper.java
src/main/java/com/glsx/ice/poisearch/poi_info_seq_tHolder.java
src/main/java/com/glsx/ice/poisearch/poi_info_t.java
src/main/java/com/glsx/ice/poisearch/poi_info_tHolder.java
src/main/java/com/glsx/ice/poisearch/poi_type_seq_tHelper.java
src/main/java/com/glsx/ice/poisearch/poi_type_seq_tHolder.java
src/main/java/com/glsx/model/BO/DistBO.java → src/main/java/com/glsx/model/BO/CoordTransForMapBo.java
src/main/java/com/glsx/model/BO/DeviceMonthBo.java
src/main/java/com/glsx/model/BO/DeviceStayBo.java
src/main/java/com/glsx/model/BO/GeocodeBO.java
src/main/java/com/glsx/model/DTO/BaiduGaodeMapDTO.java
src/main/java/com/glsx/model/DTO/BaseMapModelDTO.java
src/main/java/com/glsx/model/DTO/DailyRecordDTO.java
src/main/java/com/glsx/model/DTO/FirstGpsRecordDto.java
src/main/java/com/glsx/model/DTO/GaodeMapDTO.java
src/main/java/com/glsx/model/DTO/GpsRecordDto.java
src/main/java/com/glsx/model/DTO/JourneyRecordDTO.java
src/main/java/com/glsx/model/DTO/LatestGpsRecordDto.java
src/main/java/com/glsx/model/DTO/TotalMIleRecordDTO.java
src/main/java/com/glsx/service/OpenApiService.java
src/main/java/com/glsx/service/impl/OpenApiServiceImpl.java
src/main/java/com/glsx/controller/OpenApiController.java
View file @
a72b9e2
...
@@ -155,22 +155,102 @@ public class OpenApiController {
...
@@ -155,22 +155,102 @@ public class OpenApiController {
return
Result
.
ok
().
data
(
recentBsRecords
);
return
Result
.
ok
().
data
(
recentBsRecords
);
}
}
/*
* 地图坐标校偏
*/
@PostMapping
(
"coordTransForMap"
)
public
Result
getCoordTransForMap
(
@RequestBody
CoordTransForMapBo
coordTransForMapBo
){
Map
<
String
,
Object
>
res
=
openApiService
.
getCoordTransForMap
(
coordTransForMapBo
);
return
Result
.
ok
().
data
(
res
);
}
/*
/*
* 通过经纬度查询所属行政区域
* 通过经纬度查询所属行政区域
*/
*/
@PostMapping
(
"distInfoByPos"
)
@PostMapping
(
"distInfoByPos"
)
public
Result
getDistInfoByPos
(
@RequestBody
DistBO
mapModel
){
public
Result
getDistInfoByPos
(
@RequestBody
BaseMapModel
mapModel
){
DistInfoDto
distInfo
=
openApiService
.
getDistInfoByPos
(
mapModel
);
DistInfoDto
distInfo
=
openApiService
.
getDistInfoByPos
(
mapModel
);
return
Result
.
ok
().
data
(
distInfo
);
return
Result
.
ok
().
data
(
distInfo
);
}
}
/*
/*
* 通过经纬度查询所属省份城市区域
()
* 通过经纬度查询所属省份城市区域
*/
*/
@PostMapping
(
"distDetailByPos"
)
@PostMapping
(
"distDetailByPos"
)
public
Result
getDistDetailByPos
(
@RequestBody
DistBO
mapModel
){
public
Result
getDistDetailByPos
(
@RequestBody
BaseMapModel
mapModel
){
DistDetilDto
distDetail
=
openApiService
.
getDistDetailByPos
(
mapModel
);
DistDetilDto
distDetail
=
openApiService
.
getDistDetailByPos
(
mapModel
);
return
Result
.
ok
().
data
(
distDetail
);
return
Result
.
ok
().
data
(
distDetail
);
}
}
/*
* 通过地址解析经纬度
*/
@PostMapping
(
"geocoding"
)
public
Result
getGeocoding
(
@RequestBody
GeocodeBO
geocodeBO
){
Map
<
String
,
Object
>
map
=
openApiService
.
getGeocoding
(
geocodeBO
);
return
Result
.
ok
().
data
(
map
);
}
/*
* 通过逆地址解析
*/
@PostMapping
(
"reverseGeocoding"
)
public
Result
getReverseGeocoding
(
@RequestBody
BaseMapModel
mapModel
){
Map
<
String
,
Object
>
map
=
openApiService
.
getReverseGeocoding
(
mapModel
);
return
Result
.
ok
().
data
(
map
);
}
/*
* 根据某段时间轨迹计算行程
*/
@PostMapping
(
"journeyByGpsRecords"
)
public
Result
getJourneyByGpsRecords
(
@RequestBody
GpsBsRecordsBo
gpsBsRecordsBo
){
Map
<
String
,
Object
>
map
=
openApiService
.
getJourneyByGpsRecords
(
gpsBsRecordsBo
);
return
Result
.
ok
().
data
(
map
);
}
/*
* 根据某段时间轨迹行程记录
*/
@PostMapping
(
"journeyRecords"
)
public
Result
getJourneyRecords
(
@RequestBody
GpsBsRecordsBo
gpsBsRecordsBo
){
Map
<
String
,
Object
>
map
=
openApiService
.
getJourneyRecords
(
gpsBsRecordsBo
);
return
Result
.
ok
().
data
(
map
);
}
/*
* 根据某段时间日里程记录
*/
@PostMapping
(
"dailyMileageRecords"
)
public
Result
getDailyMileageRecords
(
@RequestBody
GpsBsRecordsBo
gpsBsRecordsBo
){
Map
<
String
,
Object
>
map
=
openApiService
.
getDailyMileageRecords
(
gpsBsRecordsBo
);
return
Result
.
ok
().
data
(
map
);
}
/*
* 查询设备总里程记录
*/
@PostMapping
(
"totalMileageRecords"
)
public
Result
getTotalMileageRecords
(
@RequestBody
DeviceStatusBo
deviceStatusBo
){
Map
<
String
,
Object
>
map
=
openApiService
.
getTotalMileageRecords
(
deviceStatusBo
);
return
Result
.
ok
().
data
(
map
);
}
/*
* 按月获取常驻地信息
*/
@PostMapping
(
"monthResideRecords"
)
public
Result
getMonthResideRecords
(
@RequestBody
DeviceMonthBo
deviceMonthBo
){
Map
<
String
,
Object
>
map
=
openApiService
.
getMonthResideRecords
(
deviceMonthBo
);
return
Result
.
ok
().
data
(
map
);
}
/*
* 查询设备停留点记录
*/
@PostMapping
(
"deviceStayRecords"
)
public
Result
getDeviceStayRecords
(
@RequestBody
DeviceStayBo
deviceStayBo
){
Map
<
String
,
Object
>
map
=
openApiService
.
getDeviceStayRecords
(
deviceStayBo
);
return
Result
.
ok
().
data
(
map
);
}
}
}
src/main/java/com/glsx/ice/iceClient/IceDistrictClient.java
View file @
a72b9e2
package
com
.
glsx
.
ice
.
iceClient
;
package
com
.
glsx
.
ice
.
iceClient
;
import
Ice.StringHolder
;
import
com.glsx.config.SystemProperty
;
import
com.glsx.config.SystemProperty
;
import
com.glsx.ice.DISTRICT.IDistrictFinderPrx
;
import
com.glsx.ice.DISTRICT.IDistrictFinderPrx
;
import
com.glsx.ice.DISTRICT.IDistrictFinderPrxHelper
;
import
com.glsx.ice.DISTRICT.IDistrictFinderPrxHelper
;
import
com.glsx.model.BO.DistBO
;
import
com.glsx.model.DTO.BsRecordDto
;
import
com.glsx.model.DTO.DistDetilDto
;
import
com.glsx.model.DTO.DistDetilDto
;
import
com.glsx.model.DTO.DistInfoDto
;
import
com.glsx.model.DTO.DistInfoDto
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.List
;
@Slf4j
@Slf4j
public
class
IceDistrictClient
{
public
class
IceDistrictClient
{
static
String
url
=
SystemProperty
.
getProperty
(
"ice.districUrl"
);
static
String
url
=
SystemProperty
.
getProperty
(
"ice.districUrl"
);
...
...
src/main/java/com/glsx/ice/iceClient/IceHDaoGpsClient.java
View file @
a72b9e2
...
@@ -4,6 +4,7 @@ import com.glsx.config.SystemProperty;
...
@@ -4,6 +4,7 @@ import com.glsx.config.SystemProperty;
import
com.glsx.ice.HDaoGps.*
;
import
com.glsx.ice.HDaoGps.*
;
import
com.glsx.model.DTO.*
;
import
com.glsx.model.DTO.*
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -33,11 +34,11 @@ public class IceHDaoGpsClient {
...
@@ -33,11 +34,11 @@ public class IceHDaoGpsClient {
if
(
ret
)
{
if
(
ret
)
{
log
.
info
(
"===getLatestRGPSRecord:"
+
res
.
value
.
record
);
log
.
info
(
"===getLatestRGPSRecord:"
+
res
.
value
.
record
);
gpsRecord
=
new
LatestGpsRecordDto
();
gpsRecord
=
new
LatestGpsRecordDto
();
gpsRecord
.
setSn
(
sn
+
""
);
gpsRecord
.
setSn
(
sn
+
""
);
gpsRecord
.
setGlng
(
res
.
value
.
record
.
gLng
/
1000000
D
);
gpsRecord
.
setGlng
(
res
.
value
.
record
.
gLng
/
1000000
D
);
gpsRecord
.
setGlat
(
res
.
value
.
record
.
gLat
/
1000000
D
);
gpsRecord
.
setGlat
(
res
.
value
.
record
.
gLat
/
1000000
D
);
gpsRecord
.
setLng
(
res
.
value
.
record
.
lng
/
1000000
D
);
gpsRecord
.
setLng
(
res
.
value
.
record
.
lng
/
1000000
D
);
gpsRecord
.
setLat
(
res
.
value
.
record
.
lat
/
1000000
D
);
gpsRecord
.
setLat
(
res
.
value
.
record
.
lat
/
1000000
D
);
gpsRecord
.
setSpeed
(
res
.
value
.
record
.
speed
);
gpsRecord
.
setSpeed
(
res
.
value
.
record
.
speed
);
gpsRecord
.
setGpstime
(
res
.
value
.
record
.
gpsTime
);
gpsRecord
.
setGpstime
(
res
.
value
.
record
.
gpsTime
);
}
}
...
@@ -64,7 +65,7 @@ public class IceHDaoGpsClient {
...
@@ -64,7 +65,7 @@ public class IceHDaoGpsClient {
if
(
ret
)
{
if
(
ret
)
{
log
.
info
(
"===LatestBsRecord:"
+
res
.
value
.
record
);
log
.
info
(
"===LatestBsRecord:"
+
res
.
value
.
record
);
bsRecord
=
new
LatestBsRecordDto
();
bsRecord
=
new
LatestBsRecordDto
();
bsRecord
.
setSn
(
sn
+
""
);
bsRecord
.
setSn
(
sn
+
""
);
bsRecord
.
setGpstime
(
res
.
value
.
record
.
gpsTime
);
bsRecord
.
setGpstime
(
res
.
value
.
record
.
gpsTime
);
bsRecord
.
setMcc
(
res
.
value
.
record
.
mcc
);
bsRecord
.
setMcc
(
res
.
value
.
record
.
mcc
);
bsRecord
.
setMnc
(
res
.
value
.
record
.
mnc
);
bsRecord
.
setMnc
(
res
.
value
.
record
.
mnc
);
...
@@ -96,13 +97,13 @@ public class IceHDaoGpsClient {
...
@@ -96,13 +97,13 @@ public class IceHDaoGpsClient {
// 第2个参数:2: OBD; 4: DDbox(DVD) 5: Tracker 6: rearMirror 7: car recorder
// 第2个参数:2: OBD; 4: DDbox(DVD) 5: Tracker 6: rearMirror 7: car recorder
BatchGpsDevInfoResponseHolder
res
=
new
BatchGpsDevInfoResponseHolder
();
BatchGpsDevInfoResponseHolder
res
=
new
BatchGpsDevInfoResponseHolder
();
boolean
ret
=
false
;
boolean
ret
=
false
;
BatchGpsDevInfoRequest
req
=
new
BatchGpsDevInfoRequest
(
userIds
,
extraMapReq
,
seqNo
);
BatchGpsDevInfoRequest
req
=
new
BatchGpsDevInfoRequest
(
userIds
,
extraMapReq
,
seqNo
);
ret
=
prx
.
getDevicesGpsInfo
(
req
,
res
);
ret
=
prx
.
getDevicesGpsInfo
(
req
,
res
);
if
(
ret
)
{
if
(
ret
)
{
log
.
info
(
"===getDevicesGpsInfo:"
+
res
.
value
.
gpsDevInfos
);
log
.
info
(
"===getDevicesGpsInfo:"
+
res
.
value
.
gpsDevInfos
);
GpsDevInfo
[]
gpsDevInfos
=
res
.
value
.
gpsDevInfos
;
GpsDevInfo
[]
gpsDevInfos
=
res
.
value
.
gpsDevInfos
;
if
(
null
!=
gpsDevInfos
&&
gpsDevInfos
.
length
>
0
)
{
if
(
null
!=
gpsDevInfos
&&
gpsDevInfos
.
length
>
0
)
{
GpsDevInfo
gpsDevInfo
=
gpsDevInfos
[
0
];
GpsDevInfo
gpsDevInfo
=
gpsDevInfos
[
0
];
bsRecord
=
new
LatestGpsBsRecordDto
();
bsRecord
=
new
LatestGpsBsRecordDto
();
bsRecord
.
setGpstime
(
gpsDevInfo
.
record
.
gpsTime
);
bsRecord
.
setGpstime
(
gpsDevInfo
.
record
.
gpsTime
);
...
@@ -219,13 +220,13 @@ public class IceHDaoGpsClient {
...
@@ -219,13 +220,13 @@ public class IceHDaoGpsClient {
if
(
res
!=
null
&&
res
.
value
!=
null
&&
res
.
value
.
oprResult
==
0
)
{
if
(
res
!=
null
&&
res
.
value
!=
null
&&
res
.
value
.
oprResult
==
0
)
{
GpsRecord
[]
r
=
res
.
value
.
records
;
GpsRecord
[]
r
=
res
.
value
.
records
;
int
len
=
r
.
length
;
int
len
=
r
.
length
;
if
(
len
>
0
)
{
if
(
len
>
0
)
{
GpsRecord
gpsRecord
=
r
[
0
];
GpsRecord
gpsRecord
=
r
[
0
];
firstGpsRecordDto
=
new
FirstGpsRecordDto
();
firstGpsRecordDto
=
new
FirstGpsRecordDto
();
firstGpsRecordDto
.
setLat
(
gpsRecord
.
lat
/
1000000
D
);
firstGpsRecordDto
.
setLat
(
gpsRecord
.
lat
/
1000000
D
);
firstGpsRecordDto
.
setLng
(
gpsRecord
.
lng
/
1000000
D
);
firstGpsRecordDto
.
setLng
(
gpsRecord
.
lng
/
1000000
D
);
firstGpsRecordDto
.
setGlat
(
gpsRecord
.
gLat
/
1000000
D
);
firstGpsRecordDto
.
setGlat
(
gpsRecord
.
gLat
/
1000000
D
);
firstGpsRecordDto
.
setGlng
(
gpsRecord
.
gLng
/
1000000
D
);
firstGpsRecordDto
.
setGlng
(
gpsRecord
.
gLng
/
1000000
D
);
firstGpsRecordDto
.
setSpeed
(
gpsRecord
.
speed
);
firstGpsRecordDto
.
setSpeed
(
gpsRecord
.
speed
);
firstGpsRecordDto
.
setGpstime
(
gpsRecord
.
gpsTime
);
firstGpsRecordDto
.
setGpstime
(
gpsRecord
.
gpsTime
);
}
}
...
@@ -239,7 +240,7 @@ public class IceHDaoGpsClient {
...
@@ -239,7 +240,7 @@ public class IceHDaoGpsClient {
return
null
;
return
null
;
}
}
public
static
GpsRecordsDto
getRecentGpsRecords
(
long
sn
,
int
apType
,
int
reqCount
)
{
public
static
GpsRecordsDto
getRecentGpsRecords
(
long
sn
,
int
apType
,
int
reqCount
)
{
try
{
try
{
if
(
prx
==
null
)
{
if
(
prx
==
null
)
{
throw
new
Exception
(
"Invalid proxy"
);
throw
new
Exception
(
"Invalid proxy"
);
...
@@ -265,7 +266,7 @@ public class IceHDaoGpsClient {
...
@@ -265,7 +266,7 @@ public class IceHDaoGpsClient {
return
null
;
return
null
;
}
}
public
static
BsRecordsDto
getRecentBsRecords
(
long
sn
,
int
apType
,
int
reqCount
)
{
public
static
BsRecordsDto
getRecentBsRecords
(
long
sn
,
int
apType
,
int
reqCount
)
{
try
{
try
{
if
(
prx
==
null
)
{
if
(
prx
==
null
)
{
throw
new
Exception
(
"Invalid proxy"
);
throw
new
Exception
(
"Invalid proxy"
);
...
@@ -291,26 +292,52 @@ public class IceHDaoGpsClient {
...
@@ -291,26 +292,52 @@ public class IceHDaoGpsClient {
return
null
;
return
null
;
}
}
//todo 地图坐标校偏
public
static
BsRecordsDto
convGeoGps
(
long
sn
,
int
apType
,
int
reqCount
)
{
try
{
if
(
prx
==
null
)
{
throw
new
Exception
(
"Invalid proxy"
);
}
BsRecordsDto
bsRecordsDto
=
new
BsRecordsDto
();
RecentBsGetResponseHolder
res
=
new
RecentBsGetResponseHolder
(
new
RecentBsGetResponse
());
RecentBsGetRequest
req
=
new
RecentBsGetRequest
();
req
.
apType
=
apType
;
req
.
reqCount
=
reqCount
;
req
.
userID
=
sn
;
if
(
res
!=
null
&&
res
.
value
!=
null
&&
res
.
value
.
oprResult
==
0
)
{
BsRecord
[]
r
=
res
.
value
.
records
;
bsRecordsDto
.
setBsrecord
(
convertBsRecord
(
r
));
}
return
bsRecordsDto
;
}
catch
(
Ice
.
LocalException
e
)
{
log
.
error
(
"===getRecentBsRecords_ICE_EXCEP:"
+
e
.
getMessage
(),
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"===getRecentBsRecords_EXCEP:"
+
e
.
getMessage
(),
e
);
}
return
null
;
}
private
static
List
<
GpsRecordDto
>
convertGpsRecord
(
GpsRecord
[]
records
)
{
private
static
List
<
GpsRecordDto
>
convertGpsRecord
(
GpsRecord
[]
records
)
{
return
Arrays
.
stream
(
records
).
map
(
rec
->
{
return
Arrays
.
stream
(
records
).
map
(
rec
->
{
GpsRecordDto
g
=
new
GpsRecordDto
();
GpsRecordDto
g
=
new
GpsRecordDto
();
g
.
setGpstime
(
rec
.
gpsTime
);
g
.
setGpstime
(
rec
.
gpsTime
);
g
.
setAlt
(
rec
.
alt
);
g
.
setAlt
(
rec
.
alt
);
g
.
setDir
(
rec
.
dir
);
g
.
setDir
(
rec
.
dir
);
g
.
setSpeed
(
rec
.
speed
);
g
.
setSpeed
(
rec
.
speed
);
g
.
setLat
(
rec
.
lat
/
1000000
D
);
g
.
setLat
(
rec
.
lat
/
1000000
D
);
g
.
setLng
(
rec
.
lng
/
1000000
D
);
g
.
setLng
(
rec
.
lng
/
1000000
D
);
g
.
setGlat
(
rec
.
gLat
/
1000000
D
);
g
.
setGlat
(
rec
.
gLat
/
1000000
D
);
g
.
setGlng
(
rec
.
gLng
/
1000000
D
);
g
.
setGlng
(
rec
.
gLng
/
1000000
D
);
g
.
setBlat
(
rec
.
bLat
/
1000000
D
);
g
.
setBlat
(
rec
.
bLat
/
1000000
D
);
g
.
setBlng
(
rec
.
bLat
/
1000000
D
);
g
.
setBlng
(
rec
.
bLat
/
1000000
D
);
return
g
;
return
g
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
}
}
private
static
List
<
BsRecordDto
>
convertBsRecord
(
BsRecord
[]
records
){
private
static
List
<
BsRecordDto
>
convertBsRecord
(
BsRecord
[]
records
)
{
return
Arrays
.
stream
(
records
).
map
(
rec
->
{
return
Arrays
.
stream
(
records
).
map
(
rec
->
{
BsRecordDto
g
=
new
BsRecordDto
();
BsRecordDto
g
=
new
BsRecordDto
();
g
.
setGpstime
(
rec
.
gpsTime
);
g
.
setGpstime
(
rec
.
gpsTime
);
g
.
setMcc
(
rec
.
mcc
);
g
.
setMcc
(
rec
.
mcc
);
...
@@ -328,4 +355,5 @@ public class IceHDaoGpsClient {
...
@@ -328,4 +355,5 @@ public class IceHDaoGpsClient {
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
}
}
}
}
src/main/java/com/glsx/ice/iceClient/IcePoiSearchClient.java
View file @
a72b9e2
package
com
.
glsx
.
ice
.
iceClient
;
package
com
.
glsx
.
ice
.
iceClient
;
import
Ice.Communicator
;
import
Ice.Communicator
;
import
Ice.StringHolder
;
import
com.glsx.config.SystemProperty
;
import
com.glsx.config.SystemProperty
;
import
com.glsx.ice.poisearch.IPOISearchNearPrx
;
import
com.glsx.ice.poisearch.IPOISearchNearPrxHelper
;
import
com.glsx.ice.poisearch.geopoint
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.slf4j.Logger
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.LoggerFactory
;
/**
* 计算里程
* @author Administrator
*
*/
@Slf4j
@Slf4j
public
class
IcePoiSearchClient
{
public
class
IcePoiSearchClient
{
// ice接口服务器地址 ice.poisearch.interface.url=PoiSearchNear:default -h 47.107.239.127 -p 10081
// ice接口服务器地址
private
static
String
ICE_URL
=
SystemProperty
.
getProperty
(
"ice.poisearchUrl"
);
private
static
String
ICE_URL
=
SystemProperty
.
getProperty
(
"ice.poisearchUrl"
);
static
Communicator
ic
=
Ice
.
Util
.
initialize
();
static
Communicator
ic
=
Ice
.
Util
.
initialize
();
static
Ice
.
ObjectPrx
base
=
ic
.
stringToProxy
(
ICE_URL
).
ice_timeout
(
Integer
.
parseInt
(
SystemProperty
.
getProperty
(
"ice.connectTimeout"
)));
static
Ice
.
ObjectPrx
base
=
ic
.
stringToProxy
(
ICE_URL
).
ice_timeout
(
Integer
.
parseInt
(
SystemProperty
.
getProperty
(
"ice.connectTimeout"
)));
static
IPOISearchNearPrx
poiSearchNearPrx
=
IPOISearchNearPrxHelper
.
checkedCast
(
base
);
public
static
void
main
(
String
[]
args
)
throws
Exception
{
}
/**
/**
* 通过经纬度查询 地址信息
* 通过逆地址解析
*
* @param lat
* @param lat
* @param lng
* @param lng
* @return
* @return
*/
*/
//public static String mapGeoConvert(String lat, String
lng) {
public
static
String
getReverseGeocoding
(
float
lat
,
float
lng
)
{
//
String resultAddress = null;
String
resultAddress
=
null
;
//
//
//请求和响应对象
//请求和响应对象
//
geopoint ptCenterGeopoint = new geopoint();
geopoint
ptCenterGeopoint
=
new
geopoint
();
// ptCenterGeopoint.lng = Float.valueOf(lng)
;
ptCenterGeopoint
.
lng
=
lng
;
// ptCenterGeopoint.lat = Float.valueOf(lat)
;
ptCenterGeopoint
.
lat
=
lat
;
//
StringHolder poiSearchHolder = new StringHolder();
StringHolder
poiSearchHolder
=
new
StringHolder
();
//
try {
try
{
//
if (poiSearchNearPrx == null) {
if
(
poiSearchNearPrx
==
null
)
{
//
log.error("mapGeoConvert ice添加服务异常 servicePre is null");
log
.
error
(
"mapGeoConvert ice添加服务异常 servicePre is null"
);
//
return resultAddress;
return
resultAddress
;
//
}
}
// int geoRes = poiSearchNearPrx.ReverseGeocoding2
(ptCenterGeopoint, poiSearchHolder);
int
geoRes
=
poiSearchNearPrx
.
ReverseGeocoding
(
ptCenterGeopoint
,
poiSearchHolder
);
// if
(geoRes != 0) { // 结果为 0 表示调用成功
if
(
geoRes
!=
0
)
{
// 结果为 0 表示调用成功
//
return resultAddress;
return
resultAddress
;
//
}
}
//
// if (poiSearchHolder.value==
null
if
(
poiSearchHolder
.
value
==
null
//
|| StringUtils.isEmpty(poiSearchHolder.value)) {
||
StringUtils
.
isEmpty
(
poiSearchHolder
.
value
))
{
//
return resultAddress;
return
resultAddress
;
//
}
}
//
//
resultAddress = poiSearchHolder.value;
resultAddress
=
poiSearchHolder
.
value
;
//
} catch (Ice.LocalException e) {
}
catch
(
Ice
.
LocalException
e
)
{
//
log.error("mapGeoConvert ice localexception" + e.getMessage(), e);
log
.
error
(
"mapGeoConvert ice localexception"
+
e
.
getMessage
(),
e
);
//
} catch (Exception e) {
}
catch
(
Exception
e
)
{
//
log.error("mapGeoConvert ice exception" + e.getMessage(), e);
log
.
error
(
"mapGeoConvert ice exception"
+
e
.
getMessage
(),
e
);
//
}
}
//
log.info("mapGeoConvert ice添加接口调用结束");
log
.
info
(
"mapGeoConvert ice添加接口调用结束"
);
//
return resultAddress;
return
resultAddress
;
//
}
}
}
}
src/main/java/com/glsx/ice/iceClient/IceRtMileStatClient.java
View file @
a72b9e2
...
@@ -4,10 +4,11 @@ import Ice.Communicator;
...
@@ -4,10 +4,11 @@ import Ice.Communicator;
import
com.glsx.config.SystemProperty
;
import
com.glsx.config.SystemProperty
;
import
com.glsx.ice.HDaoMile.*
;
import
com.glsx.ice.HDaoMile.*
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.slf4j.Logger
;
import
lombok.val
;
import
org.slf4j.LoggerFactory
;
import
java.util.*
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.stream.Collectors
;
/**
/**
* 计算里程
* 计算里程
...
@@ -16,270 +17,173 @@ import java.util.Date;
...
@@ -16,270 +17,173 @@ import java.util.Date;
*/
*/
@Slf4j
@Slf4j
public
class
IceRtMileStatClient
{
public
class
IceRtMileStatClient
{
// ice接口服务器地址 ice.interface.url=FenceUpdate:default -h 192.168.3.153 -p
// ice接口服务器地址
// 10000
private
static
String
ICE_URL
=
SystemProperty
.
getProperty
(
"ice.mileUrl"
);
private
static
String
ICE_URL
=
SystemProperty
.
getProperty
(
"ice.mileUrl"
);
static
Communicator
ic
=
Ice
.
Util
.
initialize
();
static
Communicator
ic
=
Ice
.
Util
.
initialize
();
static
Ice
.
ObjectPrx
base
=
ic
.
stringToProxy
(
ICE_URL
).
ice_timeout
(
Integer
.
parseInt
(
SystemProperty
.
getProperty
(
"ice.connectTimeout"
)));
static
Ice
.
ObjectPrx
base
=
ic
.
stringToProxy
(
ICE_URL
).
ice_timeout
(
Integer
.
parseInt
(
SystemProperty
.
getProperty
(
"ice.connectTimeout"
)));
static
DaoMileServicePrx
daoMileService
=
DaoMileServicePrxHelper
.
checkedCast
(
base
);
static
DaoMileServicePrx
mileagePrx
=
DaoMileServicePrxHelper
.
checkedCast
(
base
);
//public static void main(String[] args) throws Exception {
// for(int i=0;i<100;i++)
// {
// IceRtMileStatClient.endEvent(6, DateUtils.parseDate("2016-04-19 14:00:00",new String[]{"yyyy-MM-dd HH:mm:ss"}), DateUtils.parseDate("2016-04-19 15:00:00",new String[]{"yyyy-MM-dd HH:mm:ss"}), 51002454);
// }
//}
/**
/**
* 通知服务方行程已开始
* 通过经纬度查询所属行政区域
* @param apType 2: OBD; 4: DDbox(DVD) 5: Tracker 6: rearMirror 7: car recorder
*
* @param beginTime 开始时间
* @param userId 嘀嘀号
* @return
* @return
*/
*/
public
static
boolean
beginEvent
(
int
apType
,
Date
beginTime
,
long
userId
)
{
public
static
Map
<
String
,
Object
>
getJourneyByGpsRecords
(
long
sn
,
int
dType
,
int
beginTime
,
int
endTime
)
{
DaoMileServicePrx
daoMileService
=
null
;
boolean
result
=
false
;
MileStatBeginRequest
req
=
new
MileStatBeginRequest
();
MileStatBeginResponseHolder
resp
=
new
MileStatBeginResponseHolder
(
new
MileStatBeginResponse
());
try
{
try
{
ic
=
Ice
.
Util
.
initialize
();
if
(
mileagePrx
==
null
)
{
Ice
.
ObjectPrx
base
=
ic
.
stringToProxy
(
ICE_URL
);
throw
new
Exception
(
"Invalid proxy"
);
daoMileService
=
DaoMileServicePrxHelper
.
checkedCast
(
base
);
if
(
daoMileService
==
null
)
{
log
.
error
(
"ice添加服务异常 数据:beginEvent "
+
userId
+
":"
+
beginTime
);
}
}
req
.
apType
=
apType
;
req
.
beginTime
=
new
Long
(
beginTime
.
getTime
()
/
1000
-
8
*
60
*
60
).
intValue
();
MileStatEndResponseHolder
res
=
new
MileStatEndResponseHolder
(
new
MileStatEndResponse
());
req
.
userID
=
userId
;
MileStatEndRequest
req
=
new
MileStatEndRequest
();
daoMileService
.
beginUserMileStat
(
req
,
resp
);
req
.
userID
=
sn
;
req
.
apType
=
dType
;
req
.
beginTime
=
beginTime
;
req
.
endTime
=
endTime
;
mileagePrx
.
endUserMileStat
(
req
,
res
);
Map
<
String
,
Object
>
map
=
null
;
if
(
res
!=
null
&&
res
.
value
!=
null
&&
res
.
value
.
oprResult
==
0
)
{
MileStatEndResponse
val
=
res
.
value
;
map
.
put
(
"sn"
,
sn
);
map
.
put
(
"mileage"
,
val
.
mileage
);
map
.
put
(
"start_gpsinfo"
,
convertGpsPos
(
val
.
beginPos
));
map
.
put
(
"end_gpsinfo"
,
convertGpsPos
(
val
.
endPos
));
map
.
put
(
"over80km_percent"
,
val
.
over80Percent
);
map
.
put
(
"over120km_percent"
,
val
.
over120Percent
);
map
.
put
(
"maxspeed"
,
val
.
maxSpeed
);
return
map
;
}
}
catch
(
Ice
.
LocalException
e
)
{
}
catch
(
Ice
.
LocalException
e
)
{
log
.
error
(
"i
ce添加服务异常 数据:beginEvent "
+
userId
+
":"
+
beginTime
,
e
);
log
.
error
(
"i
nvoke ice getJourneyByGpsRecords ICE_exception"
+
e
.
getMessage
()
,
e
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"ice添加服务异常 数据:beginEvent ice exception"
+
e
.
getMessage
(),
e
);
log
.
error
(
"invoke ice getJourneyByGpsRecords exception"
+
e
.
getMessage
(),
e
);
}
log
.
info
(
"ice添加接口调用结束"
);
if
(
resp
.
value
.
oprResult
==
0
)
{
return
true
;
}
}
return
false
;
return
null
;
}
}
/**
/**
* 获取行程里程
* 通过经纬度查询所属行政区域
* @param apType 2: OBD; 4: DDbox(DVD) 5: Tracker 6: rearMirror 7: car recorder
*
* @param beginTime 行程开始时间
* @return
* @param endTime 行程结束时间
*/
* @param userId 用户嘀嘀号
public
static
Map
<
String
,
Object
>
getJourneyRecords
(
long
sn
,
int
dType
,
java
.
util
.
Date
bgnDate
,
java
.
util
.
Date
endDate
)
{
* @return 85406
try
{
*/
if
(
mileagePrx
==
null
)
{
/*public static Journey endEvent(int apType, Date beginTime, Date endTime,
throw
new
Exception
(
"Invalid proxy"
);
long userId) {
}
// Communicator ic = null;
AsyncResult result = null;
GetJourneyRecordsResHolder
res
=
new
GetJourneyRecordsResHolder
(
new
GetJourneyRecordsRes
());
MileStatEndRequest req = new MileStatEndRequest();
GetJourneyRecordsReq
req
=
new
GetJourneyRecordsReq
();
MileStatEndResponseHolder res = new MileStatEndResponseHolder(new MileStatEndResponse());
req
.
userID
=
sn
;
boolean isSucc = true;
req
.
apType
=
dType
;
try {
// ic = Ice.Util.initialize();
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
bgnDate
);
//放入Date类型数据
if (daoMileService == null) {
com
.
glsx
.
ice
.
HDaoMile
.
Date
bdate
=
new
com
.
glsx
.
ice
.
HDaoMile
.
Date
(
calendar
.
get
(
Calendar
.
YEAR
),
calendar
.
get
(
Calendar
.
MONTH
),
calendar
.
get
(
Calendar
.
DATE
));
log.error("ice添加服务异常 数据:beginEvent " + userId + ":" + beginTime);
req
.
bgnDate
=
bdate
;
}
req.apType = apType;
calendar
.
setTime
(
endDate
);
//放入Date类型数据
req.beginTime = new Long(beginTime.getTime() / 1000).intValue();
com
.
glsx
.
ice
.
HDaoMile
.
Date
eDate
=
new
com
.
glsx
.
ice
.
HDaoMile
.
Date
(
calendar
.
get
(
Calendar
.
YEAR
),
calendar
.
get
(
Calendar
.
MONTH
),
calendar
.
get
(
Calendar
.
DATE
));
req.endTime = new Long(endTime.getTime() / 1000).intValue();
req
.
endDate
=
eDate
;
req.userID = userId;
req.bRetGpsTime = true;
log.warn("ice请求参数:" + req.toString());
daoMileService.endUserMileStat(req, res);
log.warn("ice返回参数:" + res.toString());
} catch (Ice.LocalException e) {
log.error("ice添加服务异常 数据:beginEvent " + userId + ":" + beginTime + " [exception:" +e.getMessage(), e);
e.printStackTrace();
isSucc = false;
} catch (Exception e1) {
log.error("ice请求处理异常 数据:beginEvent " + userId + ":" + beginTime, e1.getMessage());
isSucc = false;
e1.printStackTrace();
} finally {
// if (ic != null) {
// ic.destroy();
// }
}
log.info("ice添加接口调用结束");
mileagePrx
.
getJourneyRecords
(
req
,
res
);
if (isSucc && res.value != null && res.value.oprResult == 0) {
Map
<
String
,
Object
>
map
=
null
;
Journey journey = new Journey();
if
(
res
!=
null
&&
res
.
value
!=
null
&&
res
.
value
.
oprResult
==
0
)
{
MileStatEndResponse r = res.value;
JourneyRecord
[]
vals
=
res
.
value
.
jourRecords
;
journey.setMileage(new Double(r.mileage));
map
.
put
(
"sn"
,
sn
);
if (r.beginPos != null && !StringUtils.isEmpty(r.beginPos.addr)) {
journey.setBeginAddress(r.beginPos.addr);
List
<
Map
<
String
,
Object
>>
journeyrecords
=
Arrays
.
stream
(
vals
).
map
(
jrecord
->{
} else {
Map
<
String
,
Object
>
jmap
=
new
HashMap
<>();
journey.setBeginAddress("");
jmap
.
put
(
"bgntime"
,
jrecord
.
bgnTime
);
}
jmap
.
put
(
"endtime"
,
jrecord
.
endTime
);
journey.setBeginGpsLat(r.beginPos.lat / 1000000D + "");
jmap
.
put
(
"duration"
,
jrecord
.
duration
);
journey.setBeginGpsLon(r.beginPos.lng / 1000000D + "");
jmap
.
put
(
"bgnaddress"
,
jrecord
.
bgnAddress
);
journey.setBeginTime(beginTime);
jmap
.
put
(
"bgngps"
,
convertGpsLoc
(
jrecord
.
bgnGps
));
if (r.endPos != null && !StringUtils.isEmpty(r.endPos.addr)) {
jmap
.
put
(
"endaddress"
,
jrecord
.
endAddress
);
journey.setEndAddress(r.endPos.addr);
jmap
.
put
(
"endgps"
,
convertGpsLoc
(
jrecord
.
endGps
));
} else {
jmap
.
put
(
"mileage"
,
jrecord
.
mileage
);
journey.setEndAddress("");
return
jmap
;
}
}).
collect
(
Collectors
.
toList
());
journey.setEndGpsLat(r.endPos.lat / 1000000D + "");
map
.
put
(
"journeyrecords"
,
journeyrecords
);
journey.setEndGpsLon(r.endPos.lng / 1000000D + "");
return
map
;
journey.setMiddlePercent(new Double(r.over80Percent));
}
journey.setHighPercent(new Double(r.over120Percent));
journey.setFastSpeed(new Double(r.maxSpeed));
}
catch
(
Ice
.
LocalException
e
)
{
journey.setEndTime(endTime);
log
.
error
(
"invoke ice getJourneyRecords ICE_exception"
+
e
.
getMessage
(),
e
);
if(r.gpsBgnTime!=0 && r.gpsEndTime!=0)
}
catch
(
Exception
e
)
{
{
log
.
error
(
"invoke ice getJourneyRecords exception"
+
e
.
getMessage
(),
e
);
journey.setGpsTotalTime(r.gpsEndTime-r.gpsBgnTime);
}
}
return
null
;
if(r.gpsBgnTime!=0)
{
long bgnTimes = (long) (r.gpsBgnTime * 1000L);
journey.setGpsBeginTime(new Date(bgnTimes));
}
if(r.gpsEndTime!=0)
{
long endTimes = (long) (r.gpsEndTime * 1000L);
journey.setGpsEndTime(new Date(endTimes));
}
return journey;
} else {
Journey journey = new Journey();
journey.setMileage(0.0);
journey.setBeginAddress("");
journey.setBeginGpsLat("0");
journey.setBeginGpsLon("0");
journey.setBeginTime(beginTime);
journey.setEndAddress("");
journey.setEndGpsLat("0");
journey.setEndGpsLon("0");
journey.setGpsBeginTime(null);
journey.setGpsEndTime(null);
journey.setGpsTotalTime(0);
journey.setGpsTotalTime(0);
journey.setEndTime(endTime);
return journey;
}
}
}
public static Journey endEventByImei(int deviceType, Date beginTime, Date endTime, String sn) {
public
static
Map
<
String
,
Object
>
getDailyMileageRecords
(
long
sn
,
Integer
dType
,
java
.
util
.
Date
bgnDate
,
java
.
util
.
Date
endDate
)
{
MileStatEndRequest req = new MileStatEndRequest();
try
{
MileStatEndResponseHolder res = new MileStatEndResponseHolder(new MileStatEndResponse());
if
(
mileagePrx
==
null
)
{
throw
new
Exception
(
"Invalid proxy"
);
}
GetDailyMileRecordsResHolder
res
=
new
GetDailyMileRecordsResHolder
(
new
GetDailyMileRecordsRes
());
GetDailyMileRecordsReq
req
=
new
GetDailyMileRecordsReq
();
req
.
userID
=
sn
;
req
.
apType
=
dType
;
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
bgnDate
);
//放入Date类型数据
com
.
glsx
.
ice
.
HDaoMile
.
Date
bdate
=
new
com
.
glsx
.
ice
.
HDaoMile
.
Date
(
calendar
.
get
(
Calendar
.
YEAR
),
calendar
.
get
(
Calendar
.
MONTH
),
calendar
.
get
(
Calendar
.
DATE
));
req
.
bgnDate
=
bdate
;
calendar
.
setTime
(
endDate
);
//放入Date类型数据
com
.
glsx
.
ice
.
HDaoMile
.
Date
eDate
=
new
com
.
glsx
.
ice
.
HDaoMile
.
Date
(
calendar
.
get
(
Calendar
.
YEAR
),
calendar
.
get
(
Calendar
.
MONTH
),
calendar
.
get
(
Calendar
.
DATE
));
req
.
endDate
=
eDate
;
mileagePrx
.
getDailyMileageRecords
(
req
,
res
);
Map
<
String
,
Object
>
map
=
null
;
if
(
res
!=
null
&&
res
.
value
!=
null
&&
res
.
value
.
oprResult
==
0
)
{
DailyMileRecord
[]
vals
=
res
.
value
.
dailMileRecords
;
map
.
put
(
"sn"
,
sn
);
boolean isSucc = true;
List
<
Map
<
String
,
Object
>>
dailyrecords
=
Arrays
.
stream
(
vals
).
map
(
drecord
->{
try {
Map
<
String
,
Object
>
jmap
=
new
HashMap
<>();
if (daoMileService == null) {
jmap
.
put
(
"jourcount"
,
drecord
.
jourCount
);
log.error("ice添加服务异常 数据:beginEvent " + sn + ":" + beginTime);
jmap
.
put
(
"mileage"
,
drecord
.
mileage
);
}
jmap
.
put
(
"duration"
,
drecord
.
duration
);
req.apType = deviceType;
jmap
.
put
(
"jourdate"
,
drecord
.
jourDate
);
req.beginTime = new Long(beginTime.getTime() / 1000).intValue();
return
jmap
;
req.endTime = new Long(endTime.getTime() / 1000).intValue();
}).
collect
(
Collectors
.
toList
());
req.userID = Long.parseLong(sn);
map
.
put
(
"dailyrecords"
,
dailyrecords
);
req.bRetGpsTime = true;
return
map
;
log.warn("ice请求参数:" + req.toString());
}
daoMileService.endUserMileStatByImei(req, res);
log.warn("ice返回参数:" + res.toString());
}
catch
(
Ice
.
LocalException
e
)
{
} catch (Ice.LocalException e) {
log
.
error
(
"invoke ice getDailyMileageRecords ICE_exception"
+
e
.
getMessage
(),
e
);
log.error("ice添加服务异常 数据:beginEvent " + sn + ":" + beginTime + " [exception:" +e.getMessage(), e);
}
catch
(
Exception
e
)
{
e.printStackTrace();
log
.
error
(
"invoke ice getDailyMileageRecords exception"
+
e
.
getMessage
(),
e
);
isSucc = false;
}
} catch (Exception e1) {
return
null
;
log.error("ice请求处理异常 数据:beginEvent " + sn + ":" + beginTime, e1.getMessage());
}
isSucc = false;
e1.printStackTrace();
} finally {
// if (ic != null) {
// ic.destroy();
// }
}
log.info("ice添加接口调用结束");
private
static
Object
convertGpsLoc
(
GpsLoc
bgnGps
)
{
if (isSucc && res.value != null && res.value.oprResult == 0) {
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Journey journey = new Journey();
map
.
put
(
"lng"
,
bgnGps
.
lng
);
MileStatEndResponse r = res.value;
map
.
put
(
"lat"
,
bgnGps
.
lat
);
journey.setMileage(new Double(r.mileage));
map
.
put
(
"glat"
,
bgnGps
.
glat
);
if (r.beginPos != null && !StringUtils.isEmpty(r.beginPos.addr)) {
map
.
put
(
"glng"
,
bgnGps
.
glng
);
journey.setBeginAddress(r.beginPos.addr);
map
.
put
(
"blng"
,
bgnGps
.
blng
);
} else {
map
.
put
(
"blat"
,
bgnGps
.
blat
);
journey.setBeginAddress("");
return
map
;
}
}
journey.setBeginGpsLat(r.beginPos.lat / 1000000D + "");
journey.setBeginGpsLon(r.beginPos.lng / 1000000D + "");
journey.setBeginTime(beginTime);
if (r.endPos != null && !StringUtils.isEmpty(r.endPos.addr)) {
journey.setEndAddress(r.endPos.addr);
} else {
journey.setEndAddress("");
}
journey.setEndGpsLat(r.endPos.lat / 1000000D + "");
journey.setEndGpsLon(r.endPos.lng / 1000000D + "");
journey.setMiddlePercent(new Double(r.over80Percent));
journey.setHighPercent(new Double(r.over120Percent));
journey.setFastSpeed(new Double(r.maxSpeed));
journey.setEndTime(endTime);
if(r.gpsBgnTime!=0 && r.gpsEndTime!=0)
{
journey.setGpsTotalTime(r.gpsEndTime-r.gpsBgnTime);
}
if(r.gpsBgnTime!=0)
{
long bgnTimes = (long) (r.gpsBgnTime * 1000L);
journey.setGpsBeginTime(new Date(bgnTimes));
}
if(r.gpsEndTime!=0)
{
long endTimes = (long) (r.gpsEndTime * 1000L);
journey.setGpsEndTime(new Date(endTimes));
}
return journey;
} else {
Journey journey = new Journey();
journey.setMileage(0.0);
journey.setBeginAddress("");
journey.setBeginGpsLat("0");
journey.setBeginGpsLon("0");
journey.setBeginTime(beginTime);
journey.setEndAddress("");
journey.setEndGpsLat("0");
journey.setEndGpsLon("0");
journey.setGpsBeginTime(null);
journey.setGpsEndTime(null);
journey.setGpsTotalTime(0);
journey.setGpsTotalTime(0);
journey.setEndTime(endTime);
return journey;
}
}
public static UserTotalMileage getUserTotalMileage(long dId, Integer deviceTypeConvert, String startDate, String endDate) {
private
static
Map
<
String
,
Object
>
convertGpsPos
(
GpsPos
beginPos
)
{
UserTotalMileage result = null;
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
try {
map
.
put
(
"gpstime"
,
beginPos
.
gpsTime
);
if (daoMileService == null) {
map
.
put
(
"lng"
,
beginPos
.
lng
);
throw new Exception("daoMileService Invalid proxy");
map
.
put
(
"lat"
,
beginPos
.
lat
);
}
map
.
put
(
"addr"
,
beginPos
.
addr
);
return
map
;
}
int stime = (int) (DateFormatUtil.toDate(startDate, DateFormatUtil.pattern19).getTime()/1000);
int etime = (int) (DateFormatUtil.toDate(endDate, DateFormatUtil.pattern19).getTime()/1000);
// long userID:设备sn, int apType:设备类型, int bgnDayTime:开始时间, int endDayTime:结束时间, int bReqDailyRecord
GetTotalMileageReq req = new GetTotalMileageReq(dId, deviceTypeConvert, stime, etime, 0);
GetTotalMileageResHolder res = new GetTotalMileageResHolder();
boolean ret = daoMileService.getToatlMileage(req, res);
if (ret && res.value != null) {
result = new UserTotalMileage();
GetTotalMileageRes getResponse = res.value;
// result.setTotalMileage((double) (getResponse.totalMileage/1000));
// 公里,保留两位小数
result.setTotalMileage(new BigDecimal((double) (getResponse.totalMileage/1000.0)).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue());
}
} catch (Ice.LocalException e) {
log.error("invoke ice getToatlMileage ICE_exception" + e.getMessage(), e);
} catch (Exception e) {
log.error("invoke ice getToatlMileage exception" + e.getMessage(), e);
}
return result;
}*/
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_Geocoding.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchFTR_Geocoding
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
geocoding_result
rst
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchFTRPrx
__proxy
=
(
IPOISearchFTRPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
geocoding_resultHolder
rst
=
new
geocoding_resultHolder
();
try
{
__ret
=
__proxy
.
end_Geocoding
(
rst
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
rst
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_poi_search_by_key.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchFTR_poi_search_by_key
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
poi_info_t
[]
arrPoiInfo
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchFTRPrx
__proxy
=
(
IPOISearchFTRPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
try
{
__ret
=
__proxy
.
end_poi_search_by_key
(
arrPoiInfo
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
arrPoiInfo
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_poi_search_by_key_and_type.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchFTR_poi_search_by_key_and_type
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
poi_info_t
[]
arrPoiInfo
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchFTRPrx
__proxy
=
(
IPOISearchFTRPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
try
{
__ret
=
__proxy
.
end_poi_search_by_key_and_type
(
arrPoiInfo
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
arrPoiInfo
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_poi_search_by_key_citycode.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchFTR_poi_search_by_key_citycode
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
poi_info_t
[]
arrPoiInfo
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchFTRPrx
__proxy
=
(
IPOISearchFTRPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
try
{
__ret
=
__proxy
.
end_poi_search_by_key_citycode
(
arrPoiInfo
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
arrPoiInfo
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_poi_search_by_key_cityname.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchFTR_poi_search_by_key_cityname
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
poi_info_t
[]
arrPoiInfo
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchFTRPrx
__proxy
=
(
IPOISearchFTRPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
try
{
__ret
=
__proxy
.
end_poi_search_by_key_cityname
(
arrPoiInfo
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
arrPoiInfo
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchFTR_poi_search_by_key_type_near.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchFTR_poi_search_by_key_type_near
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
poi_info_t
[]
arrPoiInfo
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchFTRPrx
__proxy
=
(
IPOISearchFTRPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
try
{
__ret
=
__proxy
.
end_poi_search_by_key_type_near
(
arrPoiInfo
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
arrPoiInfo
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchNear_ReverseGeocoding.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchNear_ReverseGeocoding
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
String
strGeopointDescription
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchNearPrx
__proxy
=
(
IPOISearchNearPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
Ice
.
StringHolder
strGeopointDescription
=
new
Ice
.
StringHolder
();
try
{
__ret
=
__proxy
.
end_ReverseGeocoding
(
strGeopointDescription
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
strGeopointDescription
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchNear_ReverseGeocoding2.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchNear_ReverseGeocoding2
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
String
strGeopointDescription
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchNearPrx
__proxy
=
(
IPOISearchNearPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
Ice
.
StringHolder
strGeopointDescription
=
new
Ice
.
StringHolder
();
try
{
__ret
=
__proxy
.
end_ReverseGeocoding2
(
strGeopointDescription
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
strGeopointDescription
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchNear_poi_search_by_circle.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchNear_poi_search_by_circle
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
poi_info_t
[]
arrPoiInfo
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchNearPrx
__proxy
=
(
IPOISearchNearPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
try
{
__ret
=
__proxy
.
end_poi_search_by_circle
(
arrPoiInfo
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
arrPoiInfo
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchNear_poi_search_by_city.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchNear_poi_search_by_city
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
poi_info_t
[]
arrPoiInfo
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchNearPrx
__proxy
=
(
IPOISearchNearPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
try
{
__ret
=
__proxy
.
end_poi_search_by_city
(
arrPoiInfo
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
arrPoiInfo
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/Callback_IPOISearchNear_poi_search_by_rect.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
Callback_IPOISearchNear_poi_search_by_rect
extends
Ice
.
TwowayCallback
{
public
abstract
void
response
(
int
__ret
,
poi_info_t
[]
arrPoiInfo
);
public
final
void
__completed
(
Ice
.
AsyncResult
__result
)
{
IPOISearchNearPrx
__proxy
=
(
IPOISearchNearPrx
)
__result
.
getProxy
();
int
__ret
=
0
;
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
try
{
__ret
=
__proxy
.
end_poi_search_by_rect
(
arrPoiInfo
,
__result
);
}
catch
(
Ice
.
LocalException
__ex
)
{
exception
(
__ex
);
return
;
}
response
(
__ret
,
arrPoiInfo
.
value
);
}
}
src/main/java/com/glsx/ice/poisearch/IPOISearchFTR.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
interface
IPOISearchFTR
extends
Ice
.
Object
,
_IPOISearchFTROperations
,
_IPOISearchFTROperationsNC
{
public
static
final
long
serialVersionUID
=
-
6564089211019779398L
;
}
src/main/java/com/glsx/ice/poisearch/IPOISearchFTRHolder.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
IPOISearchFTRHolder
extends
Ice
.
ObjectHolderBase
<
IPOISearchFTR
>
{
public
IPOISearchFTRHolder
()
{
}
public
IPOISearchFTRHolder
(
IPOISearchFTR
value
)
{
this
.
value
=
value
;
}
public
void
patch
(
Ice
.
Object
v
)
{
if
(
v
==
null
||
v
instanceof
IPOISearchFTR
)
{
value
=
(
IPOISearchFTR
)
v
;
}
else
{
IceInternal
.
Ex
.
throwUOE
(
type
(),
v
);
}
}
public
String
type
()
{
return
_IPOISearchFTRDisp
.
ice_staticId
();
}
}
src/main/java/com/glsx/ice/poisearch/IPOISearchFTRPrx.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
interface
IPOISearchFTRPrx
extends
Ice
.
ObjectPrx
{
public
int
poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
public
int
poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
);
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
Callback_IPOISearchFTR_poi_search_by_key
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_poi_search_by_key
__cb
);
public
int
end_poi_search_by_key
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
);
public
int
poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
public
int
poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
Callback_IPOISearchFTR_poi_search_by_key_and_type
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_poi_search_by_key_and_type
__cb
);
public
int
end_poi_search_by_key_and_type
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
);
public
int
poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
public
int
poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
Callback_IPOISearchFTR_poi_search_by_key_type_near
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_poi_search_by_key_type_near
__cb
);
public
int
end_poi_search_by_key_type_near
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
);
public
int
poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
public
int
poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
Callback_IPOISearchFTR_poi_search_by_key_cityname
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_poi_search_by_key_cityname
__cb
);
public
int
end_poi_search_by_key_cityname
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
);
public
int
poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
public
int
poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
Callback_IPOISearchFTR_poi_search_by_key_citycode
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_poi_search_by_key_citycode
__cb
);
public
int
end_poi_search_by_key_citycode
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
);
public
int
Geocoding
(
String
strAddress
,
geocoding_resultHolder
rst
);
public
int
Geocoding
(
String
strAddress
,
geocoding_resultHolder
rst
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
);
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
Callback_IPOISearchFTR_Geocoding
__cb
);
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_Geocoding
__cb
);
public
int
end_Geocoding
(
geocoding_resultHolder
rst
,
Ice
.
AsyncResult
__result
);
}
src/main/java/com/glsx/ice/poisearch/IPOISearchFTRPrxHelper.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
IPOISearchFTRPrxHelper
extends
Ice
.
ObjectPrxHelperBase
implements
IPOISearchFTRPrx
{
private
static
final
String
__Geocoding_name
=
"Geocoding"
;
public
int
Geocoding
(
String
strAddress
,
geocoding_resultHolder
rst
)
{
return
Geocoding
(
strAddress
,
rst
,
null
,
false
);
}
public
int
Geocoding
(
String
strAddress
,
geocoding_resultHolder
rst
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
Geocoding
(
strAddress
,
rst
,
__ctx
,
true
);
}
private
int
Geocoding
(
String
strAddress
,
geocoding_resultHolder
rst
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"Geocoding"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"Geocoding"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchFTRDel
__del
=
(
_IPOISearchFTRDel
)
__delBase
;
return
__del
.
Geocoding
(
strAddress
,
rst
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
)
{
return
begin_Geocoding
(
strAddress
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_Geocoding
(
strAddress
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
Ice
.
Callback
__cb
)
{
return
begin_Geocoding
(
strAddress
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_Geocoding
(
strAddress
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
Callback_IPOISearchFTR_Geocoding
__cb
)
{
return
begin_Geocoding
(
strAddress
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_Geocoding
__cb
)
{
return
begin_Geocoding
(
strAddress
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_Geocoding
(
String
strAddress
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__Geocoding_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__Geocoding_name
,
__cb
);
try
{
__result
.
__prepare
(
__Geocoding_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
__os
.
writeString
(
strAddress
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_Geocoding
(
geocoding_resultHolder
rst
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__Geocoding_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
rst
.
value
=
new
geocoding_result
();
rst
.
value
.
__read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
private
static
final
String
__poi_search_by_key_name
=
"poi_search_by_key"
;
public
int
poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
arrPoiInfo
,
null
,
false
);
}
public
int
poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
arrPoiInfo
,
__ctx
,
true
);
}
private
int
poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"poi_search_by_key"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"poi_search_by_key"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchFTRDel
__del
=
(
_IPOISearchFTRDel
)
__delBase
;
return
__del
.
poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
arrPoiInfo
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
)
{
return
begin_poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
Callback_IPOISearchFTR_poi_search_by_key
__cb
)
{
return
begin_poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_poi_search_by_key
__cb
)
{
return
begin_poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__poi_search_by_key_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__poi_search_by_key_name
,
__cb
);
try
{
__result
.
__prepare
(
__poi_search_by_key_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
emIndexType
.
__write
(
__os
);
__os
.
writeString
(
key
);
__os
.
writeInt
(
citycode
);
__os
.
writeInt
(
limit
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_poi_search_by_key
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__poi_search_by_key_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
private
static
final
String
__poi_search_by_key_and_type_name
=
"poi_search_by_key_and_type"
;
public
int
poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
arrPoiInfo
,
null
,
false
);
}
public
int
poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
arrPoiInfo
,
__ctx
,
true
);
}
private
int
poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"poi_search_by_key_and_type"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"poi_search_by_key_and_type"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchFTRDel
__del
=
(
_IPOISearchFTRDel
)
__delBase
;
return
__del
.
poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
arrPoiInfo
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
)
{
return
begin_poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
Callback_IPOISearchFTR_poi_search_by_key_and_type
__cb
)
{
return
begin_poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_poi_search_by_key_and_type
__cb
)
{
return
begin_poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__poi_search_by_key_and_type_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__poi_search_by_key_and_type_name
,
__cb
);
try
{
__result
.
__prepare
(
__poi_search_by_key_and_type_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
emIndexType
.
__write
(
__os
);
__os
.
writeString
(
key
);
__os
.
writeInt
(
citycode
);
poi_type_seq_tHelper
.
write
(
__os
,
arrType
);
__os
.
writeInt
(
limit
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_poi_search_by_key_and_type
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__poi_search_by_key_and_type_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
private
static
final
String
__poi_search_by_key_citycode_name
=
"poi_search_by_key_citycode"
;
public
int
poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
arrPoiInfo
,
null
,
false
);
}
public
int
poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
arrPoiInfo
,
__ctx
,
true
);
}
private
int
poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"poi_search_by_key_citycode"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"poi_search_by_key_citycode"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchFTRDel
__del
=
(
_IPOISearchFTRDel
)
__delBase
;
return
__del
.
poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
arrPoiInfo
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
)
{
return
begin_poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
Callback_IPOISearchFTR_poi_search_by_key_citycode
__cb
)
{
return
begin_poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_poi_search_by_key_citycode
__cb
)
{
return
begin_poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__poi_search_by_key_citycode_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__poi_search_by_key_citycode_name
,
__cb
);
try
{
__result
.
__prepare
(
__poi_search_by_key_citycode_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
__os
.
writeString
(
key
);
__os
.
writeInt
(
citycode
);
__os
.
writeInt
(
limit
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_poi_search_by_key_citycode
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__poi_search_by_key_citycode_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
private
static
final
String
__poi_search_by_key_cityname_name
=
"poi_search_by_key_cityname"
;
public
int
poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
arrPoiInfo
,
null
,
false
);
}
public
int
poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
arrPoiInfo
,
__ctx
,
true
);
}
private
int
poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"poi_search_by_key_cityname"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"poi_search_by_key_cityname"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchFTRDel
__del
=
(
_IPOISearchFTRDel
)
__delBase
;
return
__del
.
poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
arrPoiInfo
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
)
{
return
begin_poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
Callback_IPOISearchFTR_poi_search_by_key_cityname
__cb
)
{
return
begin_poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_poi_search_by_key_cityname
__cb
)
{
return
begin_poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__poi_search_by_key_cityname_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__poi_search_by_key_cityname_name
,
__cb
);
try
{
__result
.
__prepare
(
__poi_search_by_key_cityname_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
__os
.
writeString
(
key
);
__os
.
writeString
(
cityname
);
__os
.
writeInt
(
limit
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_poi_search_by_key_cityname
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__poi_search_by_key_cityname_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
private
static
final
String
__poi_search_by_key_type_near_name
=
"poi_search_by_key_type_near"
;
public
int
poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
arrPoiInfo
,
null
,
false
);
}
public
int
poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
arrPoiInfo
,
__ctx
,
true
);
}
private
int
poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"poi_search_by_key_type_near"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"poi_search_by_key_type_near"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchFTRDel
__del
=
(
_IPOISearchFTRDel
)
__delBase
;
return
__del
.
poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
arrPoiInfo
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
)
{
return
begin_poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
Callback_IPOISearchFTR_poi_search_by_key_type_near
__cb
)
{
return
begin_poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchFTR_poi_search_by_key_type_near
__cb
)
{
return
begin_poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__poi_search_by_key_type_near_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__poi_search_by_key_type_near_name
,
__cb
);
try
{
__result
.
__prepare
(
__poi_search_by_key_type_near_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
emIndexType
.
__write
(
__os
);
__os
.
writeString
(
key
);
poi_type_seq_tHelper
.
write
(
__os
,
arrType
);
pt
.
__write
(
__os
);
__os
.
writeInt
(
maxDis
);
__os
.
writeInt
(
limit
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_poi_search_by_key_type_near
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__poi_search_by_key_type_near_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
public
static
IPOISearchFTRPrx
checkedCast
(
Ice
.
ObjectPrx
__obj
)
{
IPOISearchFTRPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
if
(
__obj
instanceof
IPOISearchFTRPrx
)
{
__d
=
(
IPOISearchFTRPrx
)
__obj
;
}
else
{
if
(
__obj
.
ice_isA
(
ice_staticId
()))
{
IPOISearchFTRPrxHelper
__h
=
new
IPOISearchFTRPrxHelper
();
__h
.
__copyFrom
(
__obj
);
__d
=
__h
;
}
}
}
return
__d
;
}
public
static
IPOISearchFTRPrx
checkedCast
(
Ice
.
ObjectPrx
__obj
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
IPOISearchFTRPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
if
(
__obj
instanceof
IPOISearchFTRPrx
)
{
__d
=
(
IPOISearchFTRPrx
)
__obj
;
}
else
{
if
(
__obj
.
ice_isA
(
ice_staticId
(),
__ctx
))
{
IPOISearchFTRPrxHelper
__h
=
new
IPOISearchFTRPrxHelper
();
__h
.
__copyFrom
(
__obj
);
__d
=
__h
;
}
}
}
return
__d
;
}
public
static
IPOISearchFTRPrx
checkedCast
(
Ice
.
ObjectPrx
__obj
,
String
__facet
)
{
IPOISearchFTRPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
Ice
.
ObjectPrx
__bb
=
__obj
.
ice_facet
(
__facet
);
try
{
if
(
__bb
.
ice_isA
(
ice_staticId
()))
{
IPOISearchFTRPrxHelper
__h
=
new
IPOISearchFTRPrxHelper
();
__h
.
__copyFrom
(
__bb
);
__d
=
__h
;
}
}
catch
(
Ice
.
FacetNotExistException
ex
)
{
}
}
return
__d
;
}
public
static
IPOISearchFTRPrx
checkedCast
(
Ice
.
ObjectPrx
__obj
,
String
__facet
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
IPOISearchFTRPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
Ice
.
ObjectPrx
__bb
=
__obj
.
ice_facet
(
__facet
);
try
{
if
(
__bb
.
ice_isA
(
ice_staticId
(),
__ctx
))
{
IPOISearchFTRPrxHelper
__h
=
new
IPOISearchFTRPrxHelper
();
__h
.
__copyFrom
(
__bb
);
__d
=
__h
;
}
}
catch
(
Ice
.
FacetNotExistException
ex
)
{
}
}
return
__d
;
}
public
static
IPOISearchFTRPrx
uncheckedCast
(
Ice
.
ObjectPrx
__obj
)
{
IPOISearchFTRPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
if
(
__obj
instanceof
IPOISearchFTRPrx
)
{
__d
=
(
IPOISearchFTRPrx
)
__obj
;
}
else
{
IPOISearchFTRPrxHelper
__h
=
new
IPOISearchFTRPrxHelper
();
__h
.
__copyFrom
(
__obj
);
__d
=
__h
;
}
}
return
__d
;
}
public
static
IPOISearchFTRPrx
uncheckedCast
(
Ice
.
ObjectPrx
__obj
,
String
__facet
)
{
IPOISearchFTRPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
Ice
.
ObjectPrx
__bb
=
__obj
.
ice_facet
(
__facet
);
IPOISearchFTRPrxHelper
__h
=
new
IPOISearchFTRPrxHelper
();
__h
.
__copyFrom
(
__bb
);
__d
=
__h
;
}
return
__d
;
}
public
static
final
String
[]
__ids
=
{
"::Ice::Object"
,
"::POI::IPOISearchFTR"
};
public
static
String
ice_staticId
()
{
return
__ids
[
1
];
}
protected
Ice
.
_ObjectDelM
__createDelegateM
()
{
return
new
_IPOISearchFTRDelM
();
}
protected
Ice
.
_ObjectDelD
__createDelegateD
()
{
return
new
_IPOISearchFTRDelD
();
}
public
static
void
__write
(
IceInternal
.
BasicStream
__os
,
IPOISearchFTRPrx
v
)
{
__os
.
writeProxy
(
v
);
}
public
static
IPOISearchFTRPrx
__read
(
IceInternal
.
BasicStream
__is
)
{
Ice
.
ObjectPrx
proxy
=
__is
.
readProxy
();
if
(
proxy
!=
null
)
{
IPOISearchFTRPrxHelper
result
=
new
IPOISearchFTRPrxHelper
();
result
.
__copyFrom
(
proxy
);
return
result
;
}
return
null
;
}
public
static
final
long
serialVersionUID
=
0L
;
}
src/main/java/com/glsx/ice/poisearch/IPOISearchFTRPrxHolder.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
IPOISearchFTRPrxHolder
{
public
IPOISearchFTRPrxHolder
()
{
}
public
IPOISearchFTRPrxHolder
(
IPOISearchFTRPrx
value
)
{
this
.
value
=
value
;
}
public
IPOISearchFTRPrx
value
;
}
src/main/java/com/glsx/ice/poisearch/IPOISearchNear.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
interface
IPOISearchNear
extends
Ice
.
Object
,
_IPOISearchNearOperations
,
_IPOISearchNearOperationsNC
{
public
static
final
long
serialVersionUID
=
-
6553258658088847870L
;
}
src/main/java/com/glsx/ice/poisearch/IPOISearchNearHolder.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
IPOISearchNearHolder
extends
Ice
.
ObjectHolderBase
<
IPOISearchNear
>
{
public
IPOISearchNearHolder
()
{
}
public
IPOISearchNearHolder
(
IPOISearchNear
value
)
{
this
.
value
=
value
;
}
public
void
patch
(
Ice
.
Object
v
)
{
if
(
v
==
null
||
v
instanceof
IPOISearchNear
)
{
value
=
(
IPOISearchNear
)
v
;
}
else
{
IceInternal
.
Ex
.
throwUOE
(
type
(),
v
);
}
}
public
String
type
()
{
return
_IPOISearchNearDisp
.
ice_staticId
();
}
}
src/main/java/com/glsx/ice/poisearch/IPOISearchNearPrx.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
interface
IPOISearchNearPrx
extends
Ice
.
ObjectPrx
{
public
int
poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
);
public
int
poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
);
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
Callback_IPOISearchNear_poi_search_by_rect
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchNear_poi_search_by_rect
__cb
);
public
int
end_poi_search_by_rect
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
);
public
int
poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
);
public
int
poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
);
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
Callback_IPOISearchNear_poi_search_by_circle
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchNear_poi_search_by_circle
__cb
);
public
int
end_poi_search_by_circle
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
);
public
int
poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
public
int
poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
);
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
Callback_IPOISearchNear_poi_search_by_city
__cb
);
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchNear_poi_search_by_city
__cb
);
public
int
end_poi_search_by_city
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
);
public
int
ReverseGeocoding
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
);
public
int
ReverseGeocoding
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
Callback_IPOISearchNear_ReverseGeocoding
__cb
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchNear_ReverseGeocoding
__cb
);
public
int
end_ReverseGeocoding
(
Ice
.
StringHolder
strGeopointDescription
,
Ice
.
AsyncResult
__result
);
public
int
ReverseGeocoding2
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
);
public
int
ReverseGeocoding2
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
Callback_IPOISearchNear_ReverseGeocoding2
__cb
);
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchNear_ReverseGeocoding2
__cb
);
public
int
end_ReverseGeocoding2
(
Ice
.
StringHolder
strGeopointDescription
,
Ice
.
AsyncResult
__result
);
}
src/main/java/com/glsx/ice/poisearch/IPOISearchNearPrxHelper.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
IPOISearchNearPrxHelper
extends
Ice
.
ObjectPrxHelperBase
implements
IPOISearchNearPrx
{
private
static
final
String
__ReverseGeocoding_name
=
"ReverseGeocoding"
;
public
int
ReverseGeocoding
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
)
{
return
ReverseGeocoding
(
pt
,
strGeopointDescription
,
null
,
false
);
}
public
int
ReverseGeocoding
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
ReverseGeocoding
(
pt
,
strGeopointDescription
,
__ctx
,
true
);
}
private
int
ReverseGeocoding
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"ReverseGeocoding"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"ReverseGeocoding"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchNearDel
__del
=
(
_IPOISearchNearDel
)
__delBase
;
return
__del
.
ReverseGeocoding
(
pt
,
strGeopointDescription
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
)
{
return
begin_ReverseGeocoding
(
pt
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_ReverseGeocoding
(
pt
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
Ice
.
Callback
__cb
)
{
return
begin_ReverseGeocoding
(
pt
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_ReverseGeocoding
(
pt
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
Callback_IPOISearchNear_ReverseGeocoding
__cb
)
{
return
begin_ReverseGeocoding
(
pt
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchNear_ReverseGeocoding
__cb
)
{
return
begin_ReverseGeocoding
(
pt
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_ReverseGeocoding
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__ReverseGeocoding_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__ReverseGeocoding_name
,
__cb
);
try
{
__result
.
__prepare
(
__ReverseGeocoding_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
pt
.
__write
(
__os
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_ReverseGeocoding
(
Ice
.
StringHolder
strGeopointDescription
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__ReverseGeocoding_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
strGeopointDescription
.
value
=
__is
.
readString
();
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
private
static
final
String
__ReverseGeocoding2_name
=
"ReverseGeocoding2"
;
public
int
ReverseGeocoding2
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
)
{
return
ReverseGeocoding2
(
pt
,
strGeopointDescription
,
null
,
false
);
}
public
int
ReverseGeocoding2
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
ReverseGeocoding2
(
pt
,
strGeopointDescription
,
__ctx
,
true
);
}
private
int
ReverseGeocoding2
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"ReverseGeocoding2"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"ReverseGeocoding2"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchNearDel
__del
=
(
_IPOISearchNearDel
)
__delBase
;
return
__del
.
ReverseGeocoding2
(
pt
,
strGeopointDescription
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
)
{
return
begin_ReverseGeocoding2
(
pt
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_ReverseGeocoding2
(
pt
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
Ice
.
Callback
__cb
)
{
return
begin_ReverseGeocoding2
(
pt
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_ReverseGeocoding2
(
pt
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
Callback_IPOISearchNear_ReverseGeocoding2
__cb
)
{
return
begin_ReverseGeocoding2
(
pt
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchNear_ReverseGeocoding2
__cb
)
{
return
begin_ReverseGeocoding2
(
pt
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_ReverseGeocoding2
(
geopoint
pt
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__ReverseGeocoding2_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__ReverseGeocoding2_name
,
__cb
);
try
{
__result
.
__prepare
(
__ReverseGeocoding2_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
pt
.
__write
(
__os
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_ReverseGeocoding2
(
Ice
.
StringHolder
strGeopointDescription
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__ReverseGeocoding2_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
strGeopointDescription
.
value
=
__is
.
readString
();
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
private
static
final
String
__poi_search_by_circle_name
=
"poi_search_by_circle"
;
public
int
poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
arrPoiInfo
,
null
,
false
);
}
public
int
poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
arrPoiInfo
,
__ctx
,
true
);
}
private
int
poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"poi_search_by_circle"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"poi_search_by_circle"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchNearDel
__del
=
(
_IPOISearchNearDel
)
__delBase
;
return
__del
.
poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
arrPoiInfo
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
)
{
return
begin_poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
Callback_IPOISearchNear_poi_search_by_circle
__cb
)
{
return
begin_poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchNear_poi_search_by_circle
__cb
)
{
return
begin_poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__poi_search_by_circle_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__poi_search_by_circle_name
,
__cb
);
try
{
__result
.
__prepare
(
__poi_search_by_circle_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
pt
.
__write
(
__os
);
__os
.
writeInt
(
maxDis
);
poi_type_seq_tHelper
.
write
(
__os
,
arrType
);
__os
.
writeInt
(
numLimit
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_poi_search_by_circle
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__poi_search_by_circle_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
private
static
final
String
__poi_search_by_city_name
=
"poi_search_by_city"
;
public
int
poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_city
(
citycode
,
arrType
,
limit
,
arrPoiInfo
,
null
,
false
);
}
public
int
poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
poi_search_by_city
(
citycode
,
arrType
,
limit
,
arrPoiInfo
,
__ctx
,
true
);
}
private
int
poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"poi_search_by_city"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"poi_search_by_city"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchNearDel
__del
=
(
_IPOISearchNearDel
)
__delBase
;
return
__del
.
poi_search_by_city
(
citycode
,
arrType
,
limit
,
arrPoiInfo
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
)
{
return
begin_poi_search_by_city
(
citycode
,
arrType
,
limit
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_poi_search_by_city
(
citycode
,
arrType
,
limit
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_city
(
citycode
,
arrType
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_city
(
citycode
,
arrType
,
limit
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
Callback_IPOISearchNear_poi_search_by_city
__cb
)
{
return
begin_poi_search_by_city
(
citycode
,
arrType
,
limit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchNear_poi_search_by_city
__cb
)
{
return
begin_poi_search_by_city
(
citycode
,
arrType
,
limit
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__poi_search_by_city_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__poi_search_by_city_name
,
__cb
);
try
{
__result
.
__prepare
(
__poi_search_by_city_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
__os
.
writeInt
(
citycode
);
poi_type_seq_tHelper
.
write
(
__os
,
arrType
);
__os
.
writeInt
(
limit
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_poi_search_by_city
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__poi_search_by_city_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
private
static
final
String
__poi_search_by_rect_name
=
"poi_search_by_rect"
;
public
int
poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
arrPoiInfo
,
null
,
false
);
}
public
int
poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
arrPoiInfo
,
__ctx
,
true
);
}
private
int
poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
)
{
if
(
__explicitCtx
&&
__ctx
==
null
)
{
__ctx
=
_emptyContext
;
}
final
Ice
.
Instrumentation
.
InvocationObserver
__observer
=
IceInternal
.
ObserverHelper
.
get
(
this
,
"poi_search_by_rect"
,
__ctx
);
int
__cnt
=
0
;
try
{
while
(
true
)
{
Ice
.
_ObjectDel
__delBase
=
null
;
try
{
__checkTwowayOnly
(
"poi_search_by_rect"
);
__delBase
=
__getDelegate
(
false
);
_IPOISearchNearDel
__del
=
(
_IPOISearchNearDel
)
__delBase
;
return
__del
.
poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
arrPoiInfo
,
__ctx
,
__observer
);
}
catch
(
IceInternal
.
LocalExceptionWrapper
__ex
)
{
__handleExceptionWrapper
(
__delBase
,
__ex
,
__observer
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__cnt
=
__handleException
(
__delBase
,
__ex
,
null
,
__cnt
,
__observer
);
}
}
}
finally
{
if
(
__observer
!=
null
)
{
__observer
.
detach
();
}
}
}
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
)
{
return
begin_poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
null
,
false
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
return
begin_poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
__ctx
,
true
,
null
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Callback
__cb
)
{
return
begin_poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
__ctx
,
true
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
Callback_IPOISearchNear_poi_search_by_rect
__cb
)
{
return
begin_poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
null
,
false
,
__cb
);
}
public
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Callback_IPOISearchNear_poi_search_by_rect
__cb
)
{
return
begin_poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
__ctx
,
true
,
__cb
);
}
private
Ice
.
AsyncResult
begin_poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
boolean
__explicitCtx
,
IceInternal
.
CallbackBase
__cb
)
{
__checkAsyncTwowayOnly
(
__poi_search_by_rect_name
);
IceInternal
.
OutgoingAsync
__result
=
new
IceInternal
.
OutgoingAsync
(
this
,
__poi_search_by_rect_name
,
__cb
);
try
{
__result
.
__prepare
(
__poi_search_by_rect_name
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__explicitCtx
);
IceInternal
.
BasicStream
__os
=
__result
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
ptLL
.
__write
(
__os
);
ptRR
.
__write
(
__os
);
poi_type_seq_tHelper
.
write
(
__os
,
arrType
);
__os
.
writeInt
(
numLimit
);
__result
.
__endWriteParams
();
__result
.
__send
(
true
);
}
catch
(
Ice
.
LocalException
__ex
)
{
__result
.
__exceptionAsync
(
__ex
);
}
return
__result
;
}
public
int
end_poi_search_by_rect
(
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
AsyncResult
__result
)
{
Ice
.
AsyncResult
.
__check
(
__result
,
this
,
__poi_search_by_rect_name
);
boolean
__ok
=
__result
.
__wait
();
try
{
if
(!
__ok
)
{
try
{
__result
.
__throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__result
.
__startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__result
.
__endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
ex
)
{
Ice
.
Instrumentation
.
InvocationObserver
__obsv
=
__result
.
__getObserver
();
if
(
__obsv
!=
null
)
{
__obsv
.
failed
(
ex
.
ice_name
());
}
throw
ex
;
}
}
public
static
IPOISearchNearPrx
checkedCast
(
Ice
.
ObjectPrx
__obj
)
{
IPOISearchNearPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
if
(
__obj
instanceof
IPOISearchNearPrx
)
{
__d
=
(
IPOISearchNearPrx
)
__obj
;
}
else
{
if
(
__obj
.
ice_isA
(
ice_staticId
()))
{
IPOISearchNearPrxHelper
__h
=
new
IPOISearchNearPrxHelper
();
__h
.
__copyFrom
(
__obj
);
__d
=
__h
;
}
}
}
return
__d
;
}
public
static
IPOISearchNearPrx
checkedCast
(
Ice
.
ObjectPrx
__obj
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
IPOISearchNearPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
if
(
__obj
instanceof
IPOISearchNearPrx
)
{
__d
=
(
IPOISearchNearPrx
)
__obj
;
}
else
{
if
(
__obj
.
ice_isA
(
ice_staticId
(),
__ctx
))
{
IPOISearchNearPrxHelper
__h
=
new
IPOISearchNearPrxHelper
();
__h
.
__copyFrom
(
__obj
);
__d
=
__h
;
}
}
}
return
__d
;
}
public
static
IPOISearchNearPrx
checkedCast
(
Ice
.
ObjectPrx
__obj
,
String
__facet
)
{
IPOISearchNearPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
Ice
.
ObjectPrx
__bb
=
__obj
.
ice_facet
(
__facet
);
try
{
if
(
__bb
.
ice_isA
(
ice_staticId
()))
{
IPOISearchNearPrxHelper
__h
=
new
IPOISearchNearPrxHelper
();
__h
.
__copyFrom
(
__bb
);
__d
=
__h
;
}
}
catch
(
Ice
.
FacetNotExistException
ex
)
{
}
}
return
__d
;
}
public
static
IPOISearchNearPrx
checkedCast
(
Ice
.
ObjectPrx
__obj
,
String
__facet
,
java
.
util
.
Map
<
String
,
String
>
__ctx
)
{
IPOISearchNearPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
Ice
.
ObjectPrx
__bb
=
__obj
.
ice_facet
(
__facet
);
try
{
if
(
__bb
.
ice_isA
(
ice_staticId
(),
__ctx
))
{
IPOISearchNearPrxHelper
__h
=
new
IPOISearchNearPrxHelper
();
__h
.
__copyFrom
(
__bb
);
__d
=
__h
;
}
}
catch
(
Ice
.
FacetNotExistException
ex
)
{
}
}
return
__d
;
}
public
static
IPOISearchNearPrx
uncheckedCast
(
Ice
.
ObjectPrx
__obj
)
{
IPOISearchNearPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
if
(
__obj
instanceof
IPOISearchNearPrx
)
{
__d
=
(
IPOISearchNearPrx
)
__obj
;
}
else
{
IPOISearchNearPrxHelper
__h
=
new
IPOISearchNearPrxHelper
();
__h
.
__copyFrom
(
__obj
);
__d
=
__h
;
}
}
return
__d
;
}
public
static
IPOISearchNearPrx
uncheckedCast
(
Ice
.
ObjectPrx
__obj
,
String
__facet
)
{
IPOISearchNearPrx
__d
=
null
;
if
(
__obj
!=
null
)
{
Ice
.
ObjectPrx
__bb
=
__obj
.
ice_facet
(
__facet
);
IPOISearchNearPrxHelper
__h
=
new
IPOISearchNearPrxHelper
();
__h
.
__copyFrom
(
__bb
);
__d
=
__h
;
}
return
__d
;
}
public
static
final
String
[]
__ids
=
{
"::Ice::Object"
,
"::POI::IPOISearchNear"
};
public
static
String
ice_staticId
()
{
return
__ids
[
1
];
}
protected
Ice
.
_ObjectDelM
__createDelegateM
()
{
return
new
_IPOISearchNearDelM
();
}
protected
Ice
.
_ObjectDelD
__createDelegateD
()
{
return
new
_IPOISearchNearDelD
();
}
public
static
void
__write
(
IceInternal
.
BasicStream
__os
,
IPOISearchNearPrx
v
)
{
__os
.
writeProxy
(
v
);
}
public
static
IPOISearchNearPrx
__read
(
IceInternal
.
BasicStream
__is
)
{
Ice
.
ObjectPrx
proxy
=
__is
.
readProxy
();
if
(
proxy
!=
null
)
{
IPOISearchNearPrxHelper
result
=
new
IPOISearchNearPrxHelper
();
result
.
__copyFrom
(
proxy
);
return
result
;
}
return
null
;
}
public
static
final
long
serialVersionUID
=
0L
;
}
src/main/java/com/glsx/ice/poisearch/IPOISearchNearPrxHolder.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
IPOISearchNearPrxHolder
{
public
IPOISearchNearPrxHolder
()
{
}
public
IPOISearchNearPrxHolder
(
IPOISearchNearPrx
value
)
{
this
.
value
=
value
;
}
public
IPOISearchNearPrx
value
;
}
src/main/java/com/glsx/ice/poisearch/POI_INDEX_TYPE_CONSTANTS.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
enum
POI_INDEX_TYPE_CONSTANTS
implements
java
.
io
.
Serializable
{
emIndexName
(
0
),
emIndexAddr
(
1
),
emIndexCustom
(
2
),
index_type_count
(
3
);
public
int
value
()
{
return
__value
;
}
public
static
POI_INDEX_TYPE_CONSTANTS
valueOf
(
int
__v
)
{
switch
(
__v
)
{
case
0
:
return
emIndexName
;
case
1
:
return
emIndexAddr
;
case
2
:
return
emIndexCustom
;
case
3
:
return
index_type_count
;
}
return
null
;
}
private
POI_INDEX_TYPE_CONSTANTS
(
int
__v
)
{
__value
=
__v
;
}
public
void
__write
(
IceInternal
.
BasicStream
__os
)
{
__os
.
writeEnum
(
value
(),
3
);
}
public
static
POI_INDEX_TYPE_CONSTANTS
__read
(
IceInternal
.
BasicStream
__is
)
{
int
__v
=
__is
.
readEnum
(
3
);
return
__validate
(
__v
);
}
private
static
POI_INDEX_TYPE_CONSTANTS
__validate
(
int
__v
)
{
final
POI_INDEX_TYPE_CONSTANTS
__e
=
valueOf
(
__v
);
if
(
__e
==
null
)
{
throw
new
Ice
.
MarshalException
(
"enumerator value "
+
__v
+
" is out of range"
);
}
return
__e
;
}
private
final
int
__value
;
}
src/main/java/com/glsx/ice/poisearch/POI_INDEX_TYPE_CONSTANTSHolder.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
POI_INDEX_TYPE_CONSTANTSHolder
{
public
POI_INDEX_TYPE_CONSTANTSHolder
()
{
}
public
POI_INDEX_TYPE_CONSTANTSHolder
(
POI_INDEX_TYPE_CONSTANTS
value
)
{
this
.
value
=
value
;
}
public
POI_INDEX_TYPE_CONSTANTS
value
;
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTRDel.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
interface
_IPOISearchFTRDel
extends
Ice
.
_ObjectDel
{
int
poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
int
poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
int
poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
int
poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
int
poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
int
Geocoding
(
String
strAddress
,
geocoding_resultHolder
rst
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTRDelD.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
_IPOISearchFTRDelD
extends
Ice
.
_ObjectDelD
implements
_IPOISearchFTRDel
{
public
int
Geocoding
(
final
String
strAddress
,
final
geocoding_resultHolder
rst
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"Geocoding"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchFTR
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchFTR
)
{
__servant
=
(
IPOISearchFTR
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
Geocoding
(
strAddress
,
rst
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
public
int
poi_search_by_key
(
final
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
final
String
key
,
final
int
citycode
,
final
int
limit
,
final
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"poi_search_by_key"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchFTR
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchFTR
)
{
__servant
=
(
IPOISearchFTR
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
arrPoiInfo
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
public
int
poi_search_by_key_and_type
(
final
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
final
String
key
,
final
int
citycode
,
final
int
[]
arrType
,
final
int
limit
,
final
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"poi_search_by_key_and_type"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchFTR
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchFTR
)
{
__servant
=
(
IPOISearchFTR
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
arrPoiInfo
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
public
int
poi_search_by_key_citycode
(
final
String
key
,
final
int
citycode
,
final
int
limit
,
final
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"poi_search_by_key_citycode"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchFTR
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchFTR
)
{
__servant
=
(
IPOISearchFTR
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
arrPoiInfo
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
public
int
poi_search_by_key_cityname
(
final
String
key
,
final
String
cityname
,
final
int
limit
,
final
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"poi_search_by_key_cityname"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchFTR
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchFTR
)
{
__servant
=
(
IPOISearchFTR
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
arrPoiInfo
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
public
int
poi_search_by_key_type_near
(
final
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
final
String
key
,
final
int
[]
arrType
,
final
geopoint
pt
,
final
int
maxDis
,
final
int
limit
,
final
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"poi_search_by_key_type_near"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchFTR
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchFTR
)
{
__servant
=
(
IPOISearchFTR
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
arrPoiInfo
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTRDelM.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
_IPOISearchFTRDelM
extends
Ice
.
_ObjectDelM
implements
_IPOISearchFTRDel
{
public
int
Geocoding
(
String
strAddress
,
geocoding_resultHolder
rst
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"Geocoding"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
__os
.
writeString
(
strAddress
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
rst
.
value
=
new
geocoding_result
();
rst
.
value
.
__read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
public
int
poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"poi_search_by_key"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
emIndexType
.
__write
(
__os
);
__os
.
writeString
(
key
);
__os
.
writeInt
(
citycode
);
__os
.
writeInt
(
limit
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
public
int
poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"poi_search_by_key_and_type"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
emIndexType
.
__write
(
__os
);
__os
.
writeString
(
key
);
__os
.
writeInt
(
citycode
);
poi_type_seq_tHelper
.
write
(
__os
,
arrType
);
__os
.
writeInt
(
limit
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
public
int
poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"poi_search_by_key_citycode"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
__os
.
writeString
(
key
);
__os
.
writeInt
(
citycode
);
__os
.
writeInt
(
limit
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
public
int
poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"poi_search_by_key_cityname"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
__os
.
writeString
(
key
);
__os
.
writeString
(
cityname
);
__os
.
writeInt
(
limit
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
public
int
poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"poi_search_by_key_type_near"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
emIndexType
.
__write
(
__os
);
__os
.
writeString
(
key
);
poi_type_seq_tHelper
.
write
(
__os
,
arrType
);
pt
.
__write
(
__os
);
__os
.
writeInt
(
maxDis
);
__os
.
writeInt
(
limit
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTRDisp.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
_IPOISearchFTRDisp
extends
Ice
.
ObjectImpl
implements
IPOISearchFTR
{
protected
void
ice_copyStateFrom
(
Ice
.
Object
__obj
)
throws
CloneNotSupportedException
{
throw
new
CloneNotSupportedException
();
}
public
static
final
String
[]
__ids
=
{
"::Ice::Object"
,
"::POI::IPOISearchFTR"
};
public
boolean
ice_isA
(
String
s
)
{
return
java
.
util
.
Arrays
.
binarySearch
(
__ids
,
s
)
>=
0
;
}
public
boolean
ice_isA
(
String
s
,
Ice
.
Current
__current
)
{
return
java
.
util
.
Arrays
.
binarySearch
(
__ids
,
s
)
>=
0
;
}
public
String
[]
ice_ids
()
{
return
__ids
;
}
public
String
[]
ice_ids
(
Ice
.
Current
__current
)
{
return
__ids
;
}
public
String
ice_id
()
{
return
__ids
[
1
];
}
public
String
ice_id
(
Ice
.
Current
__current
)
{
return
__ids
[
1
];
}
public
static
String
ice_staticId
()
{
return
__ids
[
1
];
}
public
final
int
Geocoding
(
String
strAddress
,
geocoding_resultHolder
rst
)
{
return
Geocoding
(
strAddress
,
rst
,
null
);
}
public
final
int
poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
arrPoiInfo
,
null
);
}
public
final
int
poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
arrPoiInfo
,
null
);
}
public
final
int
poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
arrPoiInfo
,
null
);
}
public
final
int
poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
arrPoiInfo
,
null
);
}
public
final
int
poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
arrPoiInfo
,
null
);
}
public
static
Ice
.
DispatchStatus
___poi_search_by_key
(
IPOISearchFTR
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
POI_INDEX_TYPE_CONSTANTS
emIndexType
;
String
key
;
int
citycode
;
int
limit
;
emIndexType
=
POI_INDEX_TYPE_CONSTANTS
.
__read
(
__is
);
key
=
__is
.
readString
();
citycode
=
__is
.
readInt
();
limit
=
__is
.
readInt
();
__inS
.
endReadParams
();
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
int
__ret
=
__obj
.
poi_search_by_key
(
emIndexType
,
key
,
citycode
,
limit
,
arrPoiInfo
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
poi_info_seq_tHelper
.
write
(
__os
,
arrPoiInfo
.
value
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
public
static
Ice
.
DispatchStatus
___poi_search_by_key_and_type
(
IPOISearchFTR
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
POI_INDEX_TYPE_CONSTANTS
emIndexType
;
String
key
;
int
citycode
;
int
[]
arrType
;
int
limit
;
emIndexType
=
POI_INDEX_TYPE_CONSTANTS
.
__read
(
__is
);
key
=
__is
.
readString
();
citycode
=
__is
.
readInt
();
arrType
=
poi_type_seq_tHelper
.
read
(
__is
);
limit
=
__is
.
readInt
();
__inS
.
endReadParams
();
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
int
__ret
=
__obj
.
poi_search_by_key_and_type
(
emIndexType
,
key
,
citycode
,
arrType
,
limit
,
arrPoiInfo
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
poi_info_seq_tHelper
.
write
(
__os
,
arrPoiInfo
.
value
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
public
static
Ice
.
DispatchStatus
___poi_search_by_key_type_near
(
IPOISearchFTR
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
POI_INDEX_TYPE_CONSTANTS
emIndexType
;
String
key
;
int
[]
arrType
;
geopoint
pt
;
int
maxDis
;
int
limit
;
emIndexType
=
POI_INDEX_TYPE_CONSTANTS
.
__read
(
__is
);
key
=
__is
.
readString
();
arrType
=
poi_type_seq_tHelper
.
read
(
__is
);
pt
=
new
geopoint
();
pt
.
__read
(
__is
);
maxDis
=
__is
.
readInt
();
limit
=
__is
.
readInt
();
__inS
.
endReadParams
();
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
int
__ret
=
__obj
.
poi_search_by_key_type_near
(
emIndexType
,
key
,
arrType
,
pt
,
maxDis
,
limit
,
arrPoiInfo
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
poi_info_seq_tHelper
.
write
(
__os
,
arrPoiInfo
.
value
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
public
static
Ice
.
DispatchStatus
___poi_search_by_key_cityname
(
IPOISearchFTR
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
String
key
;
String
cityname
;
int
limit
;
key
=
__is
.
readString
();
cityname
=
__is
.
readString
();
limit
=
__is
.
readInt
();
__inS
.
endReadParams
();
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
int
__ret
=
__obj
.
poi_search_by_key_cityname
(
key
,
cityname
,
limit
,
arrPoiInfo
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
poi_info_seq_tHelper
.
write
(
__os
,
arrPoiInfo
.
value
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
public
static
Ice
.
DispatchStatus
___poi_search_by_key_citycode
(
IPOISearchFTR
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
String
key
;
int
citycode
;
int
limit
;
key
=
__is
.
readString
();
citycode
=
__is
.
readInt
();
limit
=
__is
.
readInt
();
__inS
.
endReadParams
();
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
int
__ret
=
__obj
.
poi_search_by_key_citycode
(
key
,
citycode
,
limit
,
arrPoiInfo
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
poi_info_seq_tHelper
.
write
(
__os
,
arrPoiInfo
.
value
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
public
static
Ice
.
DispatchStatus
___Geocoding
(
IPOISearchFTR
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
String
strAddress
;
strAddress
=
__is
.
readString
();
__inS
.
endReadParams
();
geocoding_resultHolder
rst
=
new
geocoding_resultHolder
();
int
__ret
=
__obj
.
Geocoding
(
strAddress
,
rst
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
rst
.
value
.
__write
(
__os
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
private
final
static
String
[]
__all
=
{
"Geocoding"
,
"ice_id"
,
"ice_ids"
,
"ice_isA"
,
"ice_ping"
,
"poi_search_by_key"
,
"poi_search_by_key_and_type"
,
"poi_search_by_key_citycode"
,
"poi_search_by_key_cityname"
,
"poi_search_by_key_type_near"
};
public
Ice
.
DispatchStatus
__dispatch
(
IceInternal
.
Incoming
in
,
Ice
.
Current
__current
)
{
int
pos
=
java
.
util
.
Arrays
.
binarySearch
(
__all
,
__current
.
operation
);
if
(
pos
<
0
)
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
switch
(
pos
)
{
case
0
:
{
return
___Geocoding
(
this
,
in
,
__current
);
}
case
1
:
{
return
___ice_id
(
this
,
in
,
__current
);
}
case
2
:
{
return
___ice_ids
(
this
,
in
,
__current
);
}
case
3
:
{
return
___ice_isA
(
this
,
in
,
__current
);
}
case
4
:
{
return
___ice_ping
(
this
,
in
,
__current
);
}
case
5
:
{
return
___poi_search_by_key
(
this
,
in
,
__current
);
}
case
6
:
{
return
___poi_search_by_key_and_type
(
this
,
in
,
__current
);
}
case
7
:
{
return
___poi_search_by_key_citycode
(
this
,
in
,
__current
);
}
case
8
:
{
return
___poi_search_by_key_cityname
(
this
,
in
,
__current
);
}
case
9
:
{
return
___poi_search_by_key_type_near
(
this
,
in
,
__current
);
}
}
assert
(
false
);
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
protected
void
__writeImpl
(
IceInternal
.
BasicStream
__os
)
{
__os
.
startWriteSlice
(
ice_staticId
(),
-
1
,
true
);
__os
.
endWriteSlice
();
}
protected
void
__readImpl
(
IceInternal
.
BasicStream
__is
)
{
__is
.
startReadSlice
();
__is
.
endReadSlice
();
}
public
static
final
long
serialVersionUID
=
0L
;
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTROperations.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
interface
_IPOISearchFTROperations
{
int
poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
Current
__current
);
int
poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
Current
__current
);
int
poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
Current
__current
);
int
poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
Current
__current
);
int
poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
Current
__current
);
int
Geocoding
(
String
strAddress
,
geocoding_resultHolder
rst
,
Ice
.
Current
__current
);
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchFTROperationsNC.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
interface
_IPOISearchFTROperationsNC
{
int
poi_search_by_key
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
int
poi_search_by_key_and_type
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
int
poi_search_by_key_type_near
(
POI_INDEX_TYPE_CONSTANTS
emIndexType
,
String
key
,
int
[]
arrType
,
geopoint
pt
,
int
maxDis
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
int
poi_search_by_key_cityname
(
String
key
,
String
cityname
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
int
poi_search_by_key_citycode
(
String
key
,
int
citycode
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
int
Geocoding
(
String
strAddress
,
geocoding_resultHolder
rst
);
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearDel.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
interface
_IPOISearchNearDel
extends
Ice
.
_ObjectDel
{
int
poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
int
poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
int
poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
int
ReverseGeocoding
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
int
ReverseGeocoding2
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__obsv
)
throws
IceInternal
.
LocalExceptionWrapper
;
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearDelD.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
_IPOISearchNearDelD
extends
Ice
.
_ObjectDelD
implements
_IPOISearchNearDel
{
public
int
ReverseGeocoding
(
final
geopoint
pt
,
final
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"ReverseGeocoding"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchNear
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchNear
)
{
__servant
=
(
IPOISearchNear
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
ReverseGeocoding
(
pt
,
strGeopointDescription
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
public
int
ReverseGeocoding2
(
final
geopoint
pt
,
final
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"ReverseGeocoding2"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchNear
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchNear
)
{
__servant
=
(
IPOISearchNear
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
ReverseGeocoding2
(
pt
,
strGeopointDescription
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
public
int
poi_search_by_circle
(
final
geopoint
pt
,
final
int
maxDis
,
final
int
[]
arrType
,
final
int
numLimit
,
final
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"poi_search_by_circle"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchNear
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchNear
)
{
__servant
=
(
IPOISearchNear
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
arrPoiInfo
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
public
int
poi_search_by_city
(
final
int
citycode
,
final
int
[]
arrType
,
final
int
limit
,
final
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"poi_search_by_city"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchNear
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchNear
)
{
__servant
=
(
IPOISearchNear
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
poi_search_by_city
(
citycode
,
arrType
,
limit
,
arrPoiInfo
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
public
int
poi_search_by_rect
(
final
geopoint
ptLL
,
final
geopoint
ptRR
,
final
int
[]
arrType
,
final
int
numLimit
,
final
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
final
Ice
.
Current
__current
=
new
Ice
.
Current
();
__initCurrent
(
__current
,
"poi_search_by_rect"
,
Ice
.
OperationMode
.
Normal
,
__ctx
);
final
Ice
.
IntHolder
__result
=
new
Ice
.
IntHolder
();
IceInternal
.
Direct
__direct
=
null
;
try
{
__direct
=
new
IceInternal
.
Direct
(
__current
)
{
public
Ice
.
DispatchStatus
run
(
Ice
.
Object
__obj
)
{
IPOISearchNear
__servant
=
null
;
if
(
__obj
==
null
||
__obj
instanceof
IPOISearchNear
)
{
__servant
=
(
IPOISearchNear
)
__obj
;
}
else
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
__result
.
value
=
__servant
.
poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
arrPoiInfo
,
__current
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
};
try
{
Ice
.
DispatchStatus
__status
=
__direct
.
getServant
().
__collocDispatch
(
__direct
);
if
(
__status
==
Ice
.
DispatchStatus
.
DispatchUserException
)
{
__direct
.
throwUserException
();
}
assert
__status
==
Ice
.
DispatchStatus
.
DispatchOK
;
return
__result
.
value
;
}
finally
{
__direct
.
destroy
();
}
}
catch
(
Ice
.
SystemException
__ex
)
{
throw
__ex
;
}
catch
(
Throwable
__ex
)
{
IceInternal
.
LocalExceptionWrapper
.
throwWrapper
(
__ex
);
}
return
__result
.
value
;
}
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearDelM.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
_IPOISearchNearDelM
extends
Ice
.
_ObjectDelM
implements
_IPOISearchNearDel
{
public
int
ReverseGeocoding
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"ReverseGeocoding"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
pt
.
__write
(
__os
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
strGeopointDescription
.
value
=
__is
.
readString
();
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
public
int
ReverseGeocoding2
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"ReverseGeocoding2"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
pt
.
__write
(
__os
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
strGeopointDescription
.
value
=
__is
.
readString
();
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
public
int
poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"poi_search_by_circle"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
pt
.
__write
(
__os
);
__os
.
writeInt
(
maxDis
);
poi_type_seq_tHelper
.
write
(
__os
,
arrType
);
__os
.
writeInt
(
numLimit
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
public
int
poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"poi_search_by_city"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
__os
.
writeInt
(
citycode
);
poi_type_seq_tHelper
.
write
(
__os
,
arrType
);
__os
.
writeInt
(
limit
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
public
int
poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
java
.
util
.
Map
<
String
,
String
>
__ctx
,
Ice
.
Instrumentation
.
InvocationObserver
__observer
)
throws
IceInternal
.
LocalExceptionWrapper
{
IceInternal
.
Outgoing
__og
=
__handler
.
getOutgoing
(
"poi_search_by_rect"
,
Ice
.
OperationMode
.
Normal
,
__ctx
,
__observer
);
try
{
try
{
IceInternal
.
BasicStream
__os
=
__og
.
startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
ptLL
.
__write
(
__os
);
ptRR
.
__write
(
__os
);
poi_type_seq_tHelper
.
write
(
__os
,
arrType
);
__os
.
writeInt
(
numLimit
);
__og
.
endWriteParams
();
}
catch
(
Ice
.
LocalException
__ex
)
{
__og
.
abort
(
__ex
);
}
boolean
__ok
=
__og
.
invoke
();
try
{
if
(!
__ok
)
{
try
{
__og
.
throwUserException
();
}
catch
(
Ice
.
UserException
__ex
)
{
throw
new
Ice
.
UnknownUserException
(
__ex
.
ice_name
(),
__ex
);
}
}
IceInternal
.
BasicStream
__is
=
__og
.
startReadParams
();
arrPoiInfo
.
value
=
poi_info_seq_tHelper
.
read
(
__is
);
int
__ret
;
__ret
=
__is
.
readInt
();
__og
.
endReadParams
();
return
__ret
;
}
catch
(
Ice
.
LocalException
__ex
)
{
throw
new
IceInternal
.
LocalExceptionWrapper
(
__ex
,
false
);
}
}
finally
{
__handler
.
reclaimOutgoing
(
__og
);
}
}
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearDisp.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
abstract
class
_IPOISearchNearDisp
extends
Ice
.
ObjectImpl
implements
IPOISearchNear
{
protected
void
ice_copyStateFrom
(
Ice
.
Object
__obj
)
throws
CloneNotSupportedException
{
throw
new
CloneNotSupportedException
();
}
public
static
final
String
[]
__ids
=
{
"::Ice::Object"
,
"::POI::IPOISearchNear"
};
public
boolean
ice_isA
(
String
s
)
{
return
java
.
util
.
Arrays
.
binarySearch
(
__ids
,
s
)
>=
0
;
}
public
boolean
ice_isA
(
String
s
,
Ice
.
Current
__current
)
{
return
java
.
util
.
Arrays
.
binarySearch
(
__ids
,
s
)
>=
0
;
}
public
String
[]
ice_ids
()
{
return
__ids
;
}
public
String
[]
ice_ids
(
Ice
.
Current
__current
)
{
return
__ids
;
}
public
String
ice_id
()
{
return
__ids
[
1
];
}
public
String
ice_id
(
Ice
.
Current
__current
)
{
return
__ids
[
1
];
}
public
static
String
ice_staticId
()
{
return
__ids
[
1
];
}
public
final
int
ReverseGeocoding
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
)
{
return
ReverseGeocoding
(
pt
,
strGeopointDescription
,
null
);
}
public
final
int
ReverseGeocoding2
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
)
{
return
ReverseGeocoding2
(
pt
,
strGeopointDescription
,
null
);
}
public
final
int
poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
arrPoiInfo
,
null
);
}
public
final
int
poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_city
(
citycode
,
arrType
,
limit
,
arrPoiInfo
,
null
);
}
public
final
int
poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
)
{
return
poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
arrPoiInfo
,
null
);
}
public
static
Ice
.
DispatchStatus
___poi_search_by_rect
(
IPOISearchNear
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
geopoint
ptLL
;
geopoint
ptRR
;
int
[]
arrType
;
int
numLimit
;
ptLL
=
new
geopoint
();
ptLL
.
__read
(
__is
);
ptRR
=
new
geopoint
();
ptRR
.
__read
(
__is
);
arrType
=
poi_type_seq_tHelper
.
read
(
__is
);
numLimit
=
__is
.
readInt
();
__inS
.
endReadParams
();
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
int
__ret
=
__obj
.
poi_search_by_rect
(
ptLL
,
ptRR
,
arrType
,
numLimit
,
arrPoiInfo
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
poi_info_seq_tHelper
.
write
(
__os
,
arrPoiInfo
.
value
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
public
static
Ice
.
DispatchStatus
___poi_search_by_circle
(
IPOISearchNear
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
geopoint
pt
;
int
maxDis
;
int
[]
arrType
;
int
numLimit
;
pt
=
new
geopoint
();
pt
.
__read
(
__is
);
maxDis
=
__is
.
readInt
();
arrType
=
poi_type_seq_tHelper
.
read
(
__is
);
numLimit
=
__is
.
readInt
();
__inS
.
endReadParams
();
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
int
__ret
=
__obj
.
poi_search_by_circle
(
pt
,
maxDis
,
arrType
,
numLimit
,
arrPoiInfo
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
poi_info_seq_tHelper
.
write
(
__os
,
arrPoiInfo
.
value
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
public
static
Ice
.
DispatchStatus
___poi_search_by_city
(
IPOISearchNear
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
int
citycode
;
int
[]
arrType
;
int
limit
;
citycode
=
__is
.
readInt
();
arrType
=
poi_type_seq_tHelper
.
read
(
__is
);
limit
=
__is
.
readInt
();
__inS
.
endReadParams
();
poi_info_seq_tHolder
arrPoiInfo
=
new
poi_info_seq_tHolder
();
int
__ret
=
__obj
.
poi_search_by_city
(
citycode
,
arrType
,
limit
,
arrPoiInfo
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
poi_info_seq_tHelper
.
write
(
__os
,
arrPoiInfo
.
value
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
public
static
Ice
.
DispatchStatus
___ReverseGeocoding
(
IPOISearchNear
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
geopoint
pt
;
pt
=
new
geopoint
();
pt
.
__read
(
__is
);
__inS
.
endReadParams
();
Ice
.
StringHolder
strGeopointDescription
=
new
Ice
.
StringHolder
();
int
__ret
=
__obj
.
ReverseGeocoding
(
pt
,
strGeopointDescription
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
__os
.
writeString
(
strGeopointDescription
.
value
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
public
static
Ice
.
DispatchStatus
___ReverseGeocoding2
(
IPOISearchNear
__obj
,
IceInternal
.
Incoming
__inS
,
Ice
.
Current
__current
)
{
__checkMode
(
Ice
.
OperationMode
.
Normal
,
__current
.
mode
);
IceInternal
.
BasicStream
__is
=
__inS
.
startReadParams
();
geopoint
pt
;
pt
=
new
geopoint
();
pt
.
__read
(
__is
);
__inS
.
endReadParams
();
Ice
.
StringHolder
strGeopointDescription
=
new
Ice
.
StringHolder
();
int
__ret
=
__obj
.
ReverseGeocoding2
(
pt
,
strGeopointDescription
,
__current
);
IceInternal
.
BasicStream
__os
=
__inS
.
__startWriteParams
(
Ice
.
FormatType
.
DefaultFormat
);
__os
.
writeString
(
strGeopointDescription
.
value
);
__os
.
writeInt
(
__ret
);
__inS
.
__endWriteParams
(
true
);
return
Ice
.
DispatchStatus
.
DispatchOK
;
}
private
final
static
String
[]
__all
=
{
"ReverseGeocoding"
,
"ReverseGeocoding2"
,
"ice_id"
,
"ice_ids"
,
"ice_isA"
,
"ice_ping"
,
"poi_search_by_circle"
,
"poi_search_by_city"
,
"poi_search_by_rect"
};
public
Ice
.
DispatchStatus
__dispatch
(
IceInternal
.
Incoming
in
,
Ice
.
Current
__current
)
{
int
pos
=
java
.
util
.
Arrays
.
binarySearch
(
__all
,
__current
.
operation
);
if
(
pos
<
0
)
{
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
switch
(
pos
)
{
case
0
:
{
return
___ReverseGeocoding
(
this
,
in
,
__current
);
}
case
1
:
{
return
___ReverseGeocoding2
(
this
,
in
,
__current
);
}
case
2
:
{
return
___ice_id
(
this
,
in
,
__current
);
}
case
3
:
{
return
___ice_ids
(
this
,
in
,
__current
);
}
case
4
:
{
return
___ice_isA
(
this
,
in
,
__current
);
}
case
5
:
{
return
___ice_ping
(
this
,
in
,
__current
);
}
case
6
:
{
return
___poi_search_by_circle
(
this
,
in
,
__current
);
}
case
7
:
{
return
___poi_search_by_city
(
this
,
in
,
__current
);
}
case
8
:
{
return
___poi_search_by_rect
(
this
,
in
,
__current
);
}
}
assert
(
false
);
throw
new
Ice
.
OperationNotExistException
(
__current
.
id
,
__current
.
facet
,
__current
.
operation
);
}
protected
void
__writeImpl
(
IceInternal
.
BasicStream
__os
)
{
__os
.
startWriteSlice
(
ice_staticId
(),
-
1
,
true
);
__os
.
endWriteSlice
();
}
protected
void
__readImpl
(
IceInternal
.
BasicStream
__is
)
{
__is
.
startReadSlice
();
__is
.
endReadSlice
();
}
public
static
final
long
serialVersionUID
=
0L
;
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearOperations.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
interface
_IPOISearchNearOperations
{
int
poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
Current
__current
);
int
poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
Current
__current
);
int
poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
,
Ice
.
Current
__current
);
int
ReverseGeocoding
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
Ice
.
Current
__current
);
int
ReverseGeocoding2
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
,
Ice
.
Current
__current
);
}
src/main/java/com/glsx/ice/poisearch/_IPOISearchNearOperationsNC.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
interface
_IPOISearchNearOperationsNC
{
int
poi_search_by_rect
(
geopoint
ptLL
,
geopoint
ptRR
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
);
int
poi_search_by_circle
(
geopoint
pt
,
int
maxDis
,
int
[]
arrType
,
int
numLimit
,
poi_info_seq_tHolder
arrPoiInfo
);
int
poi_search_by_city
(
int
citycode
,
int
[]
arrType
,
int
limit
,
poi_info_seq_tHolder
arrPoiInfo
);
int
ReverseGeocoding
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
);
int
ReverseGeocoding2
(
geopoint
pt
,
Ice
.
StringHolder
strGeopointDescription
);
}
src/main/java/com/glsx/ice/poisearch/geocoding_result.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
class
geocoding_result
implements
Cloneable
,
java
.
io
.
Serializable
{
public
int
level
;
public
int
confidence
;
public
geopoint
pt
;
public
geocoding_result
()
{
}
public
geocoding_result
(
int
level
,
int
confidence
,
geopoint
pt
)
{
this
.
level
=
level
;
this
.
confidence
=
confidence
;
this
.
pt
=
pt
;
}
public
boolean
equals
(
Object
rhs
)
{
if
(
this
==
rhs
)
{
return
true
;
}
geocoding_result
_r
=
null
;
if
(
rhs
instanceof
geocoding_result
)
{
_r
=
(
geocoding_result
)
rhs
;
}
if
(
_r
!=
null
)
{
if
(
level
!=
_r
.
level
)
{
return
false
;
}
if
(
confidence
!=
_r
.
confidence
)
{
return
false
;
}
if
(
pt
!=
_r
.
pt
)
{
if
(
pt
==
null
||
_r
.
pt
==
null
||
!
pt
.
equals
(
_r
.
pt
))
{
return
false
;
}
}
return
true
;
}
return
false
;
}
public
int
hashCode
()
{
int
__h
=
5381
;
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
"::POI::geocoding_result"
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
level
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
confidence
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
pt
);
return
__h
;
}
public
Object
clone
()
{
Object
o
=
null
;
try
{
o
=
super
.
clone
();
}
catch
(
CloneNotSupportedException
ex
)
{
assert
false
;
// impossible
}
return
o
;
}
public
void
__write
(
IceInternal
.
BasicStream
__os
)
{
__os
.
writeInt
(
level
);
__os
.
writeInt
(
confidence
);
pt
.
__write
(
__os
);
}
public
void
__read
(
IceInternal
.
BasicStream
__is
)
{
level
=
__is
.
readInt
();
confidence
=
__is
.
readInt
();
pt
=
new
geopoint
();
pt
.
__read
(
__is
);
}
public
static
final
long
serialVersionUID
=
4552966326190683359L
;
}
src/main/java/com/glsx/ice/poisearch/geocoding_resultHolder.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
geocoding_resultHolder
{
public
geocoding_resultHolder
()
{
}
public
geocoding_resultHolder
(
geocoding_result
value
)
{
this
.
value
=
value
;
}
public
geocoding_result
value
;
}
src/main/java/com/glsx/ice/poisearch/geopoint.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
class
geopoint
implements
Cloneable
,
java
.
io
.
Serializable
{
public
float
lng
;
public
float
lat
;
public
geopoint
()
{
}
public
geopoint
(
float
lng
,
float
lat
)
{
this
.
lng
=
lng
;
this
.
lat
=
lat
;
}
public
boolean
equals
(
Object
rhs
)
{
if
(
this
==
rhs
)
{
return
true
;
}
geopoint
_r
=
null
;
if
(
rhs
instanceof
geopoint
)
{
_r
=
(
geopoint
)
rhs
;
}
if
(
_r
!=
null
)
{
if
(
lng
!=
_r
.
lng
)
{
return
false
;
}
if
(
lat
!=
_r
.
lat
)
{
return
false
;
}
return
true
;
}
return
false
;
}
public
int
hashCode
()
{
int
__h
=
5381
;
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
"::POI::geopoint"
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
lng
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
lat
);
return
__h
;
}
public
Object
clone
()
{
Object
o
=
null
;
try
{
o
=
super
.
clone
();
}
catch
(
CloneNotSupportedException
ex
)
{
assert
false
;
// impossible
}
return
o
;
}
public
void
__write
(
IceInternal
.
BasicStream
__os
)
{
__os
.
writeFloat
(
lng
);
__os
.
writeFloat
(
lat
);
}
public
void
__read
(
IceInternal
.
BasicStream
__is
)
{
lng
=
__is
.
readFloat
();
lat
=
__is
.
readFloat
();
}
public
static
final
long
serialVersionUID
=
-
8161111944143154880L
;
}
src/main/java/com/glsx/ice/poisearch/geopointHolder.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
geopointHolder
{
public
geopointHolder
()
{
}
public
geopointHolder
(
geopoint
value
)
{
this
.
value
=
value
;
}
public
geopoint
value
;
}
src/main/java/com/glsx/ice/poisearch/poi_info_seq_tHelper.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
poi_info_seq_tHelper
{
public
static
void
write
(
IceInternal
.
BasicStream
__os
,
poi_info_t
[]
__v
)
{
if
(
__v
==
null
)
{
__os
.
writeSize
(
0
);
}
else
{
__os
.
writeSize
(
__v
.
length
);
for
(
int
__i0
=
0
;
__i0
<
__v
.
length
;
__i0
++)
{
__v
[
__i0
].
__write
(
__os
);
}
}
}
public
static
poi_info_t
[]
read
(
IceInternal
.
BasicStream
__is
)
{
poi_info_t
[]
__v
;
final
int
__len0
=
__is
.
readAndCheckSeqSize
(
31
);
__v
=
new
poi_info_t
[
__len0
];
for
(
int
__i0
=
0
;
__i0
<
__len0
;
__i0
++)
{
__v
[
__i0
]
=
new
poi_info_t
();
__v
[
__i0
].
__read
(
__is
);
}
return
__v
;
}
}
src/main/java/com/glsx/ice/poisearch/poi_info_seq_tHolder.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
poi_info_seq_tHolder
{
public
poi_info_seq_tHolder
()
{
}
public
poi_info_seq_tHolder
(
poi_info_t
[]
value
)
{
this
.
value
=
value
;
}
public
poi_info_t
[]
value
;
}
src/main/java/com/glsx/ice/poisearch/poi_info_t.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
class
poi_info_t
implements
Cloneable
,
java
.
io
.
Serializable
{
public
int
id
;
public
float
lng
;
public
float
lat
;
public
int
citycode
;
public
int
type
;
public
String
name
;
public
String
addr
;
public
String
tel
;
public
int
weight
;
public
int
distance
;
public
poi_info_t
()
{
}
public
poi_info_t
(
int
id
,
float
lng
,
float
lat
,
int
citycode
,
int
type
,
String
name
,
String
addr
,
String
tel
,
int
weight
,
int
distance
)
{
this
.
id
=
id
;
this
.
lng
=
lng
;
this
.
lat
=
lat
;
this
.
citycode
=
citycode
;
this
.
type
=
type
;
this
.
name
=
name
;
this
.
addr
=
addr
;
this
.
tel
=
tel
;
this
.
weight
=
weight
;
this
.
distance
=
distance
;
}
public
boolean
equals
(
Object
rhs
)
{
if
(
this
==
rhs
)
{
return
true
;
}
poi_info_t
_r
=
null
;
if
(
rhs
instanceof
poi_info_t
)
{
_r
=
(
poi_info_t
)
rhs
;
}
if
(
_r
!=
null
)
{
if
(
id
!=
_r
.
id
)
{
return
false
;
}
if
(
lng
!=
_r
.
lng
)
{
return
false
;
}
if
(
lat
!=
_r
.
lat
)
{
return
false
;
}
if
(
citycode
!=
_r
.
citycode
)
{
return
false
;
}
if
(
type
!=
_r
.
type
)
{
return
false
;
}
if
(
name
!=
_r
.
name
)
{
if
(
name
==
null
||
_r
.
name
==
null
||
!
name
.
equals
(
_r
.
name
))
{
return
false
;
}
}
if
(
addr
!=
_r
.
addr
)
{
if
(
addr
==
null
||
_r
.
addr
==
null
||
!
addr
.
equals
(
_r
.
addr
))
{
return
false
;
}
}
if
(
tel
!=
_r
.
tel
)
{
if
(
tel
==
null
||
_r
.
tel
==
null
||
!
tel
.
equals
(
_r
.
tel
))
{
return
false
;
}
}
if
(
weight
!=
_r
.
weight
)
{
return
false
;
}
if
(
distance
!=
_r
.
distance
)
{
return
false
;
}
return
true
;
}
return
false
;
}
public
int
hashCode
()
{
int
__h
=
5381
;
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
"::POI::poi_info_t"
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
id
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
lng
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
lat
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
citycode
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
type
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
name
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
addr
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
tel
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
weight
);
__h
=
IceInternal
.
HashUtil
.
hashAdd
(
__h
,
distance
);
return
__h
;
}
public
Object
clone
()
{
Object
o
=
null
;
try
{
o
=
super
.
clone
();
}
catch
(
CloneNotSupportedException
ex
)
{
assert
false
;
// impossible
}
return
o
;
}
public
void
__write
(
IceInternal
.
BasicStream
__os
)
{
__os
.
writeInt
(
id
);
__os
.
writeFloat
(
lng
);
__os
.
writeFloat
(
lat
);
__os
.
writeInt
(
citycode
);
__os
.
writeInt
(
type
);
__os
.
writeString
(
name
);
__os
.
writeString
(
addr
);
__os
.
writeString
(
tel
);
__os
.
writeInt
(
weight
);
__os
.
writeInt
(
distance
);
}
public
void
__read
(
IceInternal
.
BasicStream
__is
)
{
id
=
__is
.
readInt
();
lng
=
__is
.
readFloat
();
lat
=
__is
.
readFloat
();
citycode
=
__is
.
readInt
();
type
=
__is
.
readInt
();
name
=
__is
.
readString
();
addr
=
__is
.
readString
();
tel
=
__is
.
readString
();
weight
=
__is
.
readInt
();
distance
=
__is
.
readInt
();
}
public
static
final
long
serialVersionUID
=
-
2365766525795353480L
;
}
src/main/java/com/glsx/ice/poisearch/poi_info_tHolder.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
poi_info_tHolder
{
public
poi_info_tHolder
()
{
}
public
poi_info_tHolder
(
poi_info_t
value
)
{
this
.
value
=
value
;
}
public
poi_info_t
value
;
}
src/main/java/com/glsx/ice/poisearch/poi_type_seq_tHelper.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
poi_type_seq_tHelper
{
public
static
void
write
(
IceInternal
.
BasicStream
__os
,
int
[]
__v
)
{
__os
.
writeIntSeq
(
__v
);
}
public
static
int
[]
read
(
IceInternal
.
BasicStream
__is
)
{
int
[]
__v
;
__v
=
__is
.
readIntSeq
();
return
__v
;
}
}
src/main/java/com/glsx/ice/poisearch/poi_type_seq_tHolder.java
0 → 100644
View file @
a72b9e2
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package
com
.
glsx
.
ice
.
poisearch
;
public
final
class
poi_type_seq_tHolder
{
public
poi_type_seq_tHolder
()
{
}
public
poi_type_seq_tHolder
(
int
[]
value
)
{
this
.
value
=
value
;
}
public
int
[]
value
;
}
src/main/java/com/glsx/model/BO/
DistBO
.java
→
src/main/java/com/glsx/model/BO/
CoordTransForMapBo
.java
View file @
a72b9e2
package
com
.
glsx
.
model
.
BO
;
package
com
.
glsx
.
model
.
BO
;
import
com.glsx.model.BaseMapModel
;
import
com.glsx.model.BaseMapModel
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.ToString
;
import
lombok.ToString
;
@Data
@Data
@ToString
(
callSuper
=
true
)
@ToString
(
callSuper
=
true
)
public
class
DistBO
extends
BaseMapModel
{
public
class
CoordTransForMapBo
extends
BaseMapModel
{
//1:高德地图 2:百度地图
private
Integer
maptype
;
}
}
src/main/java/com/glsx/model/BO/DeviceMonthBo.java
0 → 100644
View file @
a72b9e2
package
com
.
glsx
.
model
.
BO
;
import
lombok.Data
;
import
lombok.ToString
;
@Data
@ToString
(
callSuper
=
true
)
public
class
DeviceMonthBo
extends
DeviceStatusBo
{
//开始月份 2019-08
private
String
begin_month
;
//开始月份 2019-10
private
String
end_month
;
}
src/main/java/com/glsx/model/BO/DeviceStayBo.java
0 → 100644
View file @
a72b9e2
package
com
.
glsx
.
model
.
BO
;
import
lombok.Data
;
import
lombok.ToString
;
@Data
@ToString
(
callSuper
=
true
)
public
class
DeviceStayBo
extends
DeviceStatusBo
{
//开始日期
private
String
start_date
;
//开始日期
private
String
end_date
;
//0:全天 1:06:00~12:00 2:12:00~21:00 3:21:00~06:00
private
Integer
period_type
;
//最小周期时间间隔
private
String
min_duration
;
//最大周期时间间隔
private
String
max_duration
;
}
src/main/java/com/glsx/model/BO/GeocodeBO.java
0 → 100644
View file @
a72b9e2
package
com
.
glsx
.
model
.
BO
;
import
com.glsx.model.Basemodel
;
import
lombok.Data
;
import
lombok.ToString
;
@Data
@ToString
(
callSuper
=
true
)
public
class
GeocodeBO
extends
Basemodel
{
//地址信息
private
String
address
;
}
src/main/java/com/glsx/model/DTO/BaiduGaodeMapDTO.java
0 → 100644
View file @
a72b9e2
package
com
.
glsx
.
model
.
DTO
;
import
lombok.Data
;
import
lombok.ToString
;
@Data
@ToString
(
callSuper
=
true
)
public
class
BaiduGaodeMapDTO
extends
GaodeMapDTO
{
//百度地图经度
private
Double
blng
;
//百度地图经度
private
Double
blat
;
}
src/main/java/com/glsx/model/DTO/BaseMapModelDTO.java
0 → 100644
View file @
a72b9e2
package
com
.
glsx
.
model
.
DTO
;
import
lombok.Data
;
import
lombok.ToString
;
@Data
@ToString
(
callSuper
=
true
)
public
class
BaseMapModelDTO
{
//经度
private
Double
lng
;
//纬度
private
Double
lat
;
}
src/main/java/com/glsx/model/DTO/DailyRecordDTO.java
0 → 100644
View file @
a72b9e2
package
com
.
glsx
.
model
.
DTO
;
import
lombok.Data
;
@Data
public
class
DailyRecordDTO
{
//日开车次数
private
Integer
jourcount
;
//行驶里程
private
Integer
miles
;
//行驶时长
private
Integer
duration
;
//开车日期
private
String
jourdate
;
}
src/main/java/com/glsx/model/DTO/FirstGpsRecordDto.java
View file @
a72b9e2
...
@@ -4,7 +4,7 @@ import com.glsx.model.GaodeMap;
...
@@ -4,7 +4,7 @@ import com.glsx.model.GaodeMap;
import
lombok.Data
;
import
lombok.Data
;
@Data
@Data
public
class
FirstGpsRecordDto
extends
GaodeMap
{
public
class
FirstGpsRecordDto
extends
GaodeMap
DTO
{
//10位时间戳(1970之后的秒数)
//10位时间戳(1970之后的秒数)
private
Integer
gpstime
;
private
Integer
gpstime
;
//速度
//速度
...
...
src/main/java/com/glsx/model/DTO/GaodeMapDTO.java
0 → 100644
View file @
a72b9e2
package
com
.
glsx
.
model
.
DTO
;
import
lombok.Data
;
import
lombok.ToString
;
@Data
@ToString
(
callSuper
=
true
)
public
class
GaodeMapDTO
extends
BaseMapModelDTO
{
//高德地图经度
private
Double
glng
;
//高德地图纬度
private
Double
glat
;
}
src/main/java/com/glsx/model/DTO/GpsRecordDto.java
View file @
a72b9e2
...
@@ -4,7 +4,7 @@ import com.glsx.model.BaiduGaodeMap;
...
@@ -4,7 +4,7 @@ import com.glsx.model.BaiduGaodeMap;
import
lombok.Data
;
import
lombok.Data
;
@Data
@Data
public
class
GpsRecordDto
extends
BaiduGaodeMap
{
public
class
GpsRecordDto
extends
BaiduGaodeMap
DTO
{
//10位时间戳(1970之后的秒数)
//10位时间戳(1970之后的秒数)
private
Integer
gpstime
;
private
Integer
gpstime
;
//速度
//速度
...
...
src/main/java/com/glsx/model/DTO/JourneyRecordDTO.java
0 → 100644
View file @
a72b9e2
package
com
.
glsx
.
model
.
DTO
;
import
lombok.Data
;
@Data
public
class
JourneyRecordDTO
{
//行驶开始时间
private
Integer
bgntime
;
//行驶结束时间
private
Integer
endtime
;
//行驶时长
private
Integer
duration
;
//开始地址
private
String
bgnaddress
;
//行驶开始位置信息
private
BaiduGaodeMapDTO
bgngps
;
//结束地址
private
String
endaddress
;
//行驶结束位置信息
private
BaiduGaodeMapDTO
endgps
;
//行驶里程
private
Double
miles
;
}
src/main/java/com/glsx/model/DTO/LatestGpsRecordDto.java
View file @
a72b9e2
...
@@ -6,7 +6,7 @@ import lombok.ToString;
...
@@ -6,7 +6,7 @@ import lombok.ToString;
@Data
@Data
@ToString
(
callSuper
=
true
)
@ToString
(
callSuper
=
true
)
public
class
LatestGpsRecordDto
extends
GaodeMap
{
public
class
LatestGpsRecordDto
extends
GaodeMap
DTO
{
//设备号
//设备号
private
String
sn
;
private
String
sn
;
//时间戳,10位 ,1970之后的秒数
//时间戳,10位 ,1970之后的秒数
...
...
src/main/java/com/glsx/model/DTO/TotalMIleRecordDTO.java
0 → 100644
View file @
a72b9e2
package
com
.
glsx
.
model
.
DTO
;
import
lombok.Data
;
@Data
public
class
TotalMIleRecordDTO
{
//设备号
private
String
sn
;
//行驶总开车次数
private
Integer
totaljourcount
;
//行驶总里程
private
Integer
totalmiles
;
//行驶总时长
private
Integer
totalduration
;
}
src/main/java/com/glsx/service/OpenApiService.java
View file @
a72b9e2
...
@@ -4,6 +4,7 @@ import com.glsx.model.BO.*;
...
@@ -4,6 +4,7 @@ import com.glsx.model.BO.*;
import
com.glsx.model.BaseMapModel
;
import
com.glsx.model.BaseMapModel
;
import
com.glsx.model.DTO.*
;
import
com.glsx.model.DTO.*
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -36,7 +37,25 @@ public interface OpenApiService {
...
@@ -36,7 +37,25 @@ public interface OpenApiService {
BsRecordsDto
getRecentBsRecords
(
DeviceStatusCountBo
deviceStatusBo
);
BsRecordsDto
getRecentBsRecords
(
DeviceStatusCountBo
deviceStatusBo
);
DistInfoDto
getDistInfoByPos
(
DistBO
distBO
);
DistInfoDto
getDistInfoByPos
(
BaseMapModel
distBO
);
DistDetilDto
getDistDetailByPos
(
DistBO
distBO
);
DistDetilDto
getDistDetailByPos
(
BaseMapModel
distBO
);
Map
<
String
,
Object
>
getGeocoding
(
GeocodeBO
geocodeBO
);
Map
<
String
,
Object
>
getReverseGeocoding
(
BaseMapModel
mapModel
);
Map
<
String
,
Object
>
getCoordTransForMap
(
CoordTransForMapBo
coordTransForMapBo
);
Map
<
String
,
Object
>
getJourneyByGpsRecords
(
GpsBsRecordsBo
gpsBsRecordsBo
);
Map
<
String
,
Object
>
getJourneyRecords
(
GpsBsRecordsBo
gpsBsRecordsBo
);
Map
<
String
,
Object
>
getDailyMileageRecords
(
GpsBsRecordsBo
gpsBsRecordsBo
);
Map
<
String
,
Object
>
getTotalMileageRecords
(
DeviceStatusBo
deviceStatusBo
);
Map
<
String
,
Object
>
getMonthResideRecords
(
DeviceMonthBo
deviceStatusBo
);
Map
<
String
,
Object
>
getDeviceStayRecords
(
DeviceStayBo
deviceStayBo
);
}
}
src/main/java/com/glsx/service/impl/OpenApiServiceImpl.java
View file @
a72b9e2
...
@@ -8,6 +8,8 @@ import com.glsx.enums.MapTypeEnum;
...
@@ -8,6 +8,8 @@ import com.glsx.enums.MapTypeEnum;
import
com.glsx.exception.ApiErrorMessage
;
import
com.glsx.exception.ApiErrorMessage
;
import
com.glsx.ice.iceClient.IceDistrictClient
;
import
com.glsx.ice.iceClient.IceDistrictClient
;
import
com.glsx.ice.iceClient.IceHDaoGpsClient
;
import
com.glsx.ice.iceClient.IceHDaoGpsClient
;
import
com.glsx.ice.iceClient.IcePoiSearchClient
;
import
com.glsx.ice.iceClient.IceRtMileStatClient
;
import
com.glsx.model.BO.*
;
import
com.glsx.model.BO.*
;
import
com.glsx.model.BaseMapModel
;
import
com.glsx.model.BaseMapModel
;
import
com.glsx.model.DTO.*
;
import
com.glsx.model.DTO.*
;
...
@@ -20,6 +22,7 @@ import org.springframework.beans.BeanUtils;
...
@@ -20,6 +22,7 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.TreeMap
;
import
java.util.TreeMap
;
...
@@ -218,24 +221,110 @@ public class OpenApiServiceImpl extends BaseService implements OpenApiService {
...
@@ -218,24 +221,110 @@ public class OpenApiServiceImpl extends BaseService implements OpenApiService {
}
}
@Override
@Override
public
DistInfoDto
getDistInfoByPos
(
DistBO
distBO
)
{
public
DistInfoDto
getDistInfoByPos
(
BaseMapModel
mapModel
)
{
logi
(
"OpenApiService===getDistInfoByPos开始==="
+
distBO
);
logi
(
"OpenApiService===getDistInfoByPos开始==="
+
mapModel
);
float
lat
=
distBO
.
getLat
().
floatValue
();
float
lat
=
mapModel
.
getLat
().
floatValue
();
float
lng
=
distBO
.
getLng
().
floatValue
();
float
lng
=
mapModel
.
getLng
().
floatValue
();
DistInfoDto
res
=
IceDistrictClient
.
getDistInfoByPos
(
lng
,
lat
);
DistInfoDto
res
=
IceDistrictClient
.
getDistInfoByPos
(
lng
,
lat
);
logi
(
"OpenApiService===getDistInfoByPos返回==="
+
res
);
logi
(
"OpenApiService===getDistInfoByPos返回==="
+
res
);
return
res
;
return
res
;
}
}
@Override
@Override
public
DistDetilDto
getDistDetailByPos
(
DistBO
distBO
)
{
public
DistDetilDto
getDistDetailByPos
(
BaseMapModel
mapModel
)
{
logi
(
"OpenApiService===getDistDetailByPos开始==="
+
distBO
);
logi
(
"OpenApiService===getDistDetailByPos开始==="
+
mapModel
);
float
lat
=
distBO
.
getLat
().
floatValue
();
float
lat
=
mapModel
.
getLat
().
floatValue
();
float
lng
=
distBO
.
getLng
().
floatValue
();
float
lng
=
mapModel
.
getLng
().
floatValue
();
DistDetilDto
res
=
IceDistrictClient
.
getDistDetailByPos
(
lng
,
lat
);
DistDetilDto
res
=
IceDistrictClient
.
getDistDetailByPos
(
lng
,
lat
);
logi
(
"OpenApiService===getDistDetailByPos返回==="
+
res
);
logi
(
"OpenApiService===getDistDetailByPos返回==="
+
res
);
return
res
;
return
res
;
}
}
@Override
public
Map
<
String
,
Object
>
getGeocoding
(
GeocodeBO
geocodeBO
)
{
logi
(
"OpenApiService===getGeocoding开始==="
+
geocodeBO
);
//todo ice没有对应的接口
//float lat = mapModel.getLat().floatValue();
//float lng = mapModel.getLng().floatValue();
//HashMap<String, Object> res = IcePoiSearchClient.getReverseGeocoding(lng,lat);
//logi("OpenApiService===getGeocoding返回===" + res);
return
null
;
}
@Override
public
Map
<
String
,
Object
>
getReverseGeocoding
(
BaseMapModel
mapModel
)
{
logi
(
"OpenApiService===getReverseGeocoding开始==="
+
mapModel
);
float
lat
=
mapModel
.
getLat
().
floatValue
();
float
lng
=
mapModel
.
getLng
().
floatValue
();
String
address
=
IcePoiSearchClient
.
getReverseGeocoding
(
lng
,
lat
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"address"
,
address
);
logi
(
"OpenApiService===getReverseGeocoding返回==="
+
map
);
return
map
;
}
//todo 地图校偏
@Override
public
Map
<
String
,
Object
>
getCoordTransForMap
(
CoordTransForMapBo
coordTransForMapBo
)
{
logi
(
"OpenApiService===getCoordTransForMap开始==="
+
coordTransForMapBo
);
// FirstGpsRecordDto firstGpsRecordDto = IceHDaoGpsClient.convGeoGps(dType, sn);
//logi("OpenApiService===getCoordTransForMap返回:" + firstGpsRecordDto);
return
null
;
}
@Override
public
Map
<
String
,
Object
>
getJourneyByGpsRecords
(
GpsBsRecordsBo
gpsBsRecordsBo
)
{
logi
(
"OpenApiService===getJourneyByGpsRecords开始==="
+
gpsBsRecordsBo
);
long
sn
=
Long
.
parseLong
(
gpsBsRecordsBo
.
getSn
());
Integer
dType
=
gpsBsRecordsBo
.
getDevice_type
();
int
start_time
=
Integer
.
parseInt
(
gpsBsRecordsBo
.
getStartTime
().
getTime
()+
""
);
int
end_time
=
Integer
.
parseInt
(
gpsBsRecordsBo
.
getEndTime
().
getTime
()+
""
);
Map
<
String
,
Object
>
map
=
IceRtMileStatClient
.
getJourneyByGpsRecords
(
sn
,
dType
,
start_time
,
end_time
);
logi
(
"OpenApiService===getJourneyByGpsRecords返回==="
+
map
);
return
map
;
}
@Override
public
Map
<
String
,
Object
>
getJourneyRecords
(
GpsBsRecordsBo
gpsBsRecordsBo
)
{
logi
(
"OpenApiService===getJourneyRecords开始==="
+
gpsBsRecordsBo
);
long
sn
=
Long
.
parseLong
(
gpsBsRecordsBo
.
getSn
());
Integer
dType
=
gpsBsRecordsBo
.
getDevice_type
();
Date
start_time
=
gpsBsRecordsBo
.
getStartTime
();
Date
end_time
=
gpsBsRecordsBo
.
getEndTime
();
Map
<
String
,
Object
>
map
=
IceRtMileStatClient
.
getJourneyRecords
(
sn
,
dType
,
start_time
,
end_time
);
logi
(
"OpenApiService===getJourneyRecords返回==="
+
map
);
return
map
;
}
@Override
public
Map
<
String
,
Object
>
getDailyMileageRecords
(
GpsBsRecordsBo
gpsBsRecordsBo
)
{
logi
(
"OpenApiService===getDailyMileageRecords开始==="
+
gpsBsRecordsBo
);
long
sn
=
Long
.
parseLong
(
gpsBsRecordsBo
.
getSn
());
Integer
dType
=
gpsBsRecordsBo
.
getDevice_type
();
Date
start_time
=
gpsBsRecordsBo
.
getStartTime
();
Date
end_time
=
gpsBsRecordsBo
.
getEndTime
();
Map
<
String
,
Object
>
map
=
IceRtMileStatClient
.
getDailyMileageRecords
(
sn
,
dType
,
start_time
,
end_time
);
logi
(
"OpenApiService===getDailyMileageRecords返回==="
+
map
);
return
map
;
}
//todo getTotalMileageRecords
@Override
public
Map
<
String
,
Object
>
getTotalMileageRecords
(
DeviceStatusBo
deviceStatusBo
)
{
return
null
;
}
//todo getMonthResideRecords
@Override
public
Map
<
String
,
Object
>
getMonthResideRecords
(
DeviceMonthBo
deviceStatusBo
)
{
return
null
;
}
//todo getDeviceStayRecords
@Override
public
Map
<
String
,
Object
>
getDeviceStayRecords
(
DeviceStayBo
deviceStayBo
)
{
return
null
;
}
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment