Commit d9112a54 by 杨林龙

项目初始化

0 parents
Showing 130 changed files with 3796 additions and 0 deletions
.vscode
__pycache__
This diff could not be displayed because it is too large.
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public interface BaseStationService extends Ice.Object,
_BaseStationServiceOperations, _BaseStationServiceOperationsNC
{
public static final long serialVersionUID = -4927076960967750416L;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class BaseStationServiceHolder extends Ice.ObjectHolderBase<BaseStationService>
{
public
BaseStationServiceHolder()
{
}
public
BaseStationServiceHolder(BaseStationService value)
{
this.value = value;
}
public void
patch(Ice.Object v)
{
if(v == null || v instanceof BaseStationService)
{
value = (BaseStationService)v;
}
else
{
IceInternal.Ex.throwUOE(type(), v);
}
}
public String
type()
{
return _BaseStationServiceDisp.ice_staticId();
}
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public interface BaseStationServicePrx extends Ice.ObjectPrx
{
public boolean GetGpsByBs(BsDataReq req, BsDataRespHolder resp);
public boolean GetGpsByBs(BsDataReq req, BsDataRespHolder resp, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_GetGpsByBs(BsDataReq req);
public Ice.AsyncResult begin_GetGpsByBs(BsDataReq req, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_GetGpsByBs(BsDataReq req, Ice.Callback __cb);
public Ice.AsyncResult begin_GetGpsByBs(BsDataReq req, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_GetGpsByBs(BsDataReq req, Callback_BaseStationService_GetGpsByBs __cb);
public Ice.AsyncResult begin_GetGpsByBs(BsDataReq req, java.util.Map<String, String> __ctx, Callback_BaseStationService_GetGpsByBs __cb);
public boolean end_GetGpsByBs(BsDataRespHolder resp, Ice.AsyncResult __result);
public boolean GetGpsByBsList(BsDataListReq req, BsDataRespHolder resp);
public boolean GetGpsByBsList(BsDataListReq req, BsDataRespHolder resp, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_GetGpsByBsList(BsDataListReq req);
public Ice.AsyncResult begin_GetGpsByBsList(BsDataListReq req, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_GetGpsByBsList(BsDataListReq req, Ice.Callback __cb);
public Ice.AsyncResult begin_GetGpsByBsList(BsDataListReq req, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_GetGpsByBsList(BsDataListReq req, Callback_BaseStationService_GetGpsByBsList __cb);
public Ice.AsyncResult begin_GetGpsByBsList(BsDataListReq req, java.util.Map<String, String> __ctx, Callback_BaseStationService_GetGpsByBsList __cb);
public boolean end_GetGpsByBsList(BsDataRespHolder resp, Ice.AsyncResult __result);
public boolean getPoiTypeFromGeo(BsPoint pt, DaoPoiInfoRespHolder res);
public boolean getPoiTypeFromGeo(BsPoint pt, DaoPoiInfoRespHolder res, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_getPoiTypeFromGeo(BsPoint pt);
public Ice.AsyncResult begin_getPoiTypeFromGeo(BsPoint pt, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_getPoiTypeFromGeo(BsPoint pt, Ice.Callback __cb);
public Ice.AsyncResult begin_getPoiTypeFromGeo(BsPoint pt, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_getPoiTypeFromGeo(BsPoint pt, Callback_BaseStationService_getPoiTypeFromGeo __cb);
public Ice.AsyncResult begin_getPoiTypeFromGeo(BsPoint pt, java.util.Map<String, String> __ctx, Callback_BaseStationService_getPoiTypeFromGeo __cb);
public boolean end_getPoiTypeFromGeo(DaoPoiInfoRespHolder res, Ice.AsyncResult __result);
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class BaseStationServicePrxHolder
{
public
BaseStationServicePrxHolder()
{
}
public
BaseStationServicePrxHolder(BaseStationServicePrx value)
{
this.value = value;
}
public BaseStationServicePrx value;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public class BsData implements java.lang.Cloneable, java.io.Serializable
{
public int mnc;
public int lac;
public int cellid;
public BsData()
{
}
public BsData(int mnc, int lac, int cellid)
{
this.mnc = mnc;
this.lac = lac;
this.cellid = cellid;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
BsData _r = null;
if(rhs instanceof BsData)
{
_r = (BsData)rhs;
}
if(_r != null)
{
if(mnc != _r.mnc)
{
return false;
}
if(lac != _r.lac)
{
return false;
}
if(cellid != _r.cellid)
{
return false;
}
return true;
}
return false;
}
public int
hashCode()
{
int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::BsData");
__h = IceInternal.HashUtil.hashAdd(__h, mnc);
__h = IceInternal.HashUtil.hashAdd(__h, lac);
__h = IceInternal.HashUtil.hashAdd(__h, cellid);
return __h;
}
public java.lang.Object
clone()
{
java.lang.Object o = null;
try
{
o = super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return o;
}
public void
__write(IceInternal.BasicStream __os)
{
__os.writeInt(mnc);
__os.writeInt(lac);
__os.writeInt(cellid);
}
public void
__read(IceInternal.BasicStream __is)
{
mnc = __is.readInt();
lac = __is.readInt();
cellid = __is.readInt();
}
public static final long serialVersionUID = -1180175726157969065L;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class BsDataHolder
{
public
BsDataHolder()
{
}
public
BsDataHolder(BsData value)
{
this.value = value;
}
public BsData value;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public class BsDataListReq implements java.lang.Cloneable, java.io.Serializable
{
public BsData[] bsList;
public BsDataListReq()
{
}
public BsDataListReq(BsData[] bsList)
{
this.bsList = bsList;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
BsDataListReq _r = null;
if(rhs instanceof BsDataListReq)
{
_r = (BsDataListReq)rhs;
}
if(_r != null)
{
if(!java.util.Arrays.equals(bsList, _r.bsList))
{
return false;
}
return true;
}
return false;
}
public int
hashCode()
{
int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::BsDataListReq");
__h = IceInternal.HashUtil.hashAdd(__h, bsList);
return __h;
}
public java.lang.Object
clone()
{
java.lang.Object o = null;
try
{
o = super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return o;
}
public void
__write(IceInternal.BasicStream __os)
{
BsListReqHelper.write(__os, bsList);
}
public void
__read(IceInternal.BasicStream __is)
{
bsList = BsListReqHelper.read(__is);
}
public static final long serialVersionUID = 3819908727059142693L;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class BsDataListReqHolder
{
public
BsDataListReqHolder()
{
}
public
BsDataListReqHolder(BsDataListReq value)
{
this.value = value;
}
public BsDataListReq value;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public class BsDataReq implements java.lang.Cloneable, java.io.Serializable
{
public BsData bs;
public BsDataReq()
{
}
public BsDataReq(BsData bs)
{
this.bs = bs;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
BsDataReq _r = null;
if(rhs instanceof BsDataReq)
{
_r = (BsDataReq)rhs;
}
if(_r != null)
{
if(bs != _r.bs)
{
if(bs == null || _r.bs == null || !bs.equals(_r.bs))
{
return false;
}
}
return true;
}
return false;
}
public int
hashCode()
{
int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::BsDataReq");
__h = IceInternal.HashUtil.hashAdd(__h, bs);
return __h;
}
public java.lang.Object
clone()
{
java.lang.Object o = null;
try
{
o = super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return o;
}
public void
__write(IceInternal.BasicStream __os)
{
bs.__write(__os);
}
public void
__read(IceInternal.BasicStream __is)
{
bs = new BsData();
bs.__read(__is);
}
public static final long serialVersionUID = -7067405279854981467L;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class BsDataReqHolder
{
public
BsDataReqHolder()
{
}
public
BsDataReqHolder(BsDataReq value)
{
this.value = value;
}
public BsDataReq value;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public class BsDataResp implements java.lang.Cloneable, java.io.Serializable
{
public int ret;
public GpsData gps;
public BsDataResp()
{
}
public BsDataResp(int ret, GpsData gps)
{
this.ret = ret;
this.gps = gps;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
BsDataResp _r = null;
if(rhs instanceof BsDataResp)
{
_r = (BsDataResp)rhs;
}
if(_r != null)
{
if(ret != _r.ret)
{
return false;
}
if(gps != _r.gps)
{
if(gps == null || _r.gps == null || !gps.equals(_r.gps))
{
return false;
}
}
return true;
}
return false;
}
public int
hashCode()
{
int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::BsDataResp");
__h = IceInternal.HashUtil.hashAdd(__h, ret);
__h = IceInternal.HashUtil.hashAdd(__h, gps);
return __h;
}
public java.lang.Object
clone()
{
java.lang.Object o = null;
try
{
o = super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return o;
}
public void
__write(IceInternal.BasicStream __os)
{
__os.writeInt(ret);
gps.__write(__os);
}
public void
__read(IceInternal.BasicStream __is)
{
ret = __is.readInt();
gps = new GpsData();
gps.__read(__is);
}
public static final long serialVersionUID = 2440970033832249670L;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class BsDataRespHolder
{
public
BsDataRespHolder()
{
}
public
BsDataRespHolder(BsDataResp value)
{
this.value = value;
}
public BsDataResp value;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class BsListReqHelper
{
public static void
write(IceInternal.BasicStream __os, BsData[] __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 BsData[]
read(IceInternal.BasicStream __is)
{
BsData[] __v;
final int __len0 = __is.readAndCheckSeqSize(12);
__v = new BsData[__len0];
for(int __i0 = 0; __i0 < __len0; __i0++)
{
__v[__i0] = new BsData();
__v[__i0].__read(__is);
}
return __v;
}
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class BsListReqHolder
{
public
BsListReqHolder()
{
}
public
BsListReqHolder(BsData[] value)
{
this.value = value;
}
public BsData[] value;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public class BsPoint implements java.lang.Cloneable, java.io.Serializable
{
public float lng;
public float lat;
public BsPoint()
{
}
public BsPoint(float lng, float lat)
{
this.lng = lng;
this.lat = lat;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
BsPoint _r = null;
if(rhs instanceof BsPoint)
{
_r = (BsPoint)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, "::BaseStationData::BsPoint");
__h = IceInternal.HashUtil.hashAdd(__h, lng);
__h = IceInternal.HashUtil.hashAdd(__h, lat);
return __h;
}
public java.lang.Object
clone()
{
java.lang.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 = -2591565704925713803L;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class BsPointHolder
{
public
BsPointHolder()
{
}
public
BsPointHolder(BsPoint value)
{
this.value = value;
}
public BsPoint value;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public abstract class Callback_BaseStationService_GetGpsByBs extends Ice.TwowayCallback
{
public abstract void response(boolean __ret, BsDataResp resp);
public final void __completed(Ice.AsyncResult __result)
{
BaseStationServicePrx __proxy = (BaseStationServicePrx)__result.getProxy();
boolean __ret = false;
BsDataRespHolder resp = new BsDataRespHolder();
try
{
__ret = __proxy.end_GetGpsByBs(resp, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, resp.value);
}
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public abstract class Callback_BaseStationService_GetGpsByBsList extends Ice.TwowayCallback
{
public abstract void response(boolean __ret, BsDataResp resp);
public final void __completed(Ice.AsyncResult __result)
{
BaseStationServicePrx __proxy = (BaseStationServicePrx)__result.getProxy();
boolean __ret = false;
BsDataRespHolder resp = new BsDataRespHolder();
try
{
__ret = __proxy.end_GetGpsByBsList(resp, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, resp.value);
}
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public abstract class Callback_BaseStationService_getPoiTypeFromGeo extends Ice.TwowayCallback
{
public abstract void response(boolean __ret, DaoPoiInfoResp res);
public final void __completed(Ice.AsyncResult __result)
{
BaseStationServicePrx __proxy = (BaseStationServicePrx)__result.getProxy();
boolean __ret = false;
DaoPoiInfoRespHolder res = new DaoPoiInfoRespHolder();
try
{
__ret = __proxy.end_getPoiTypeFromGeo(res, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, res.value);
}
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public class DaoPoiInfoResp implements java.lang.Cloneable, java.io.Serializable
{
public int size;
public PoiInfo[] records;
public DaoPoiInfoResp()
{
}
public DaoPoiInfoResp(int size, PoiInfo[] records)
{
this.size = size;
this.records = records;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
DaoPoiInfoResp _r = null;
if(rhs instanceof DaoPoiInfoResp)
{
_r = (DaoPoiInfoResp)rhs;
}
if(_r != null)
{
if(size != _r.size)
{
return false;
}
if(!java.util.Arrays.equals(records, _r.records))
{
return false;
}
return true;
}
return false;
}
public int
hashCode()
{
int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::DaoPoiInfoResp");
__h = IceInternal.HashUtil.hashAdd(__h, size);
__h = IceInternal.HashUtil.hashAdd(__h, records);
return __h;
}
public java.lang.Object
clone()
{
java.lang.Object o = null;
try
{
o = super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return o;
}
public void
__write(IceInternal.BasicStream __os)
{
__os.writeInt(size);
poiDatasHelper.write(__os, records);
}
public void
__read(IceInternal.BasicStream __is)
{
size = __is.readInt();
records = poiDatasHelper.read(__is);
}
public static final long serialVersionUID = 6922468175968905097L;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class DaoPoiInfoRespHolder
{
public
DaoPoiInfoRespHolder()
{
}
public
DaoPoiInfoRespHolder(DaoPoiInfoResp value)
{
this.value = value;
}
public DaoPoiInfoResp value;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public class GpsData implements java.lang.Cloneable, java.io.Serializable
{
public int lng;
public int lat;
public String addr;
public GpsData()
{
}
public GpsData(int lng, int lat, String addr)
{
this.lng = lng;
this.lat = lat;
this.addr = addr;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
GpsData _r = null;
if(rhs instanceof GpsData)
{
_r = (GpsData)rhs;
}
if(_r != null)
{
if(lng != _r.lng)
{
return false;
}
if(lat != _r.lat)
{
return false;
}
if(addr != _r.addr)
{
if(addr == null || _r.addr == null || !addr.equals(_r.addr))
{
return false;
}
}
return true;
}
return false;
}
public int
hashCode()
{
int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::GpsData");
__h = IceInternal.HashUtil.hashAdd(__h, lng);
__h = IceInternal.HashUtil.hashAdd(__h, lat);
__h = IceInternal.HashUtil.hashAdd(__h, addr);
return __h;
}
public java.lang.Object
clone()
{
java.lang.Object o = null;
try
{
o = super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return o;
}
public void
__write(IceInternal.BasicStream __os)
{
__os.writeInt(lng);
__os.writeInt(lat);
__os.writeString(addr);
}
public void
__read(IceInternal.BasicStream __is)
{
lng = __is.readInt();
lat = __is.readInt();
addr = __is.readString();
}
public static final long serialVersionUID = -2420777293799941752L;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class GpsDataHolder
{
public
GpsDataHolder()
{
}
public
GpsDataHolder(GpsData value)
{
this.value = value;
}
public GpsData value;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public class PoiInfo implements java.lang.Cloneable, java.io.Serializable
{
public float distance;
public String type;
public PoiInfo()
{
}
public PoiInfo(float distance, String type)
{
this.distance = distance;
this.type = type;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
PoiInfo _r = null;
if(rhs instanceof PoiInfo)
{
_r = (PoiInfo)rhs;
}
if(_r != null)
{
if(distance != _r.distance)
{
return false;
}
if(type != _r.type)
{
if(type == null || _r.type == null || !type.equals(_r.type))
{
return false;
}
}
return true;
}
return false;
}
public int
hashCode()
{
int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::PoiInfo");
__h = IceInternal.HashUtil.hashAdd(__h, distance);
__h = IceInternal.HashUtil.hashAdd(__h, type);
return __h;
}
public java.lang.Object
clone()
{
java.lang.Object o = null;
try
{
o = super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return o;
}
public void
__write(IceInternal.BasicStream __os)
{
__os.writeFloat(distance);
__os.writeString(type);
}
public void
__read(IceInternal.BasicStream __is)
{
distance = __is.readFloat();
type = __is.readString();
}
public static final long serialVersionUID = 129041973163109527L;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class PoiInfoHolder
{
public
PoiInfoHolder()
{
}
public
PoiInfoHolder(PoiInfo value)
{
this.value = value;
}
public PoiInfo value;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public interface _BaseStationServiceDel extends Ice._ObjectDel
{
boolean GetGpsByBs(BsDataReq req, BsDataRespHolder resp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
boolean GetGpsByBsList(BsDataListReq req, BsDataRespHolder resp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
boolean getPoiTypeFromGeo(BsPoint pt, DaoPoiInfoRespHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class _BaseStationServiceDelD extends Ice._ObjectDelD implements _BaseStationServiceDel
{
public boolean GetGpsByBs(final BsDataReq req, final BsDataRespHolder resp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "GetGpsByBs", Ice.OperationMode.Normal, __ctx);
final Ice.BooleanHolder __result = new Ice.BooleanHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
BaseStationService __servant = null;
if(__obj == null || __obj instanceof BaseStationService)
{
__servant = (BaseStationService)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.GetGpsByBs(req, resp, __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(java.lang.Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public boolean GetGpsByBsList(final BsDataListReq req, final BsDataRespHolder resp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "GetGpsByBsList", Ice.OperationMode.Normal, __ctx);
final Ice.BooleanHolder __result = new Ice.BooleanHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
BaseStationService __servant = null;
if(__obj == null || __obj instanceof BaseStationService)
{
__servant = (BaseStationService)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.GetGpsByBsList(req, resp, __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(java.lang.Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public boolean getPoiTypeFromGeo(final BsPoint pt, final DaoPoiInfoRespHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "getPoiTypeFromGeo", Ice.OperationMode.Normal, __ctx);
final Ice.BooleanHolder __result = new Ice.BooleanHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
BaseStationService __servant = null;
if(__obj == null || __obj instanceof BaseStationService)
{
__servant = (BaseStationService)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.getPoiTypeFromGeo(pt, res, __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(java.lang.Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class _BaseStationServiceDelM extends Ice._ObjectDelM implements _BaseStationServiceDel
{
public boolean
GetGpsByBs(BsDataReq req, BsDataRespHolder resp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("GetGpsByBs", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
req.__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();
resp.value = new BsDataResp();
resp.value.__read(__is);
boolean __ret;
__ret = __is.readBool();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public boolean
GetGpsByBsList(BsDataListReq req, BsDataRespHolder resp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("GetGpsByBsList", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
req.__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();
resp.value = new BsDataResp();
resp.value.__read(__is);
boolean __ret;
__ret = __is.readBool();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public boolean
getPoiTypeFromGeo(BsPoint pt, DaoPoiInfoRespHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("getPoiTypeFromGeo", 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();
res.value = new DaoPoiInfoResp();
res.value.__read(__is);
boolean __ret;
__ret = __is.readBool();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public abstract class _BaseStationServiceDisp extends Ice.ObjectImpl implements BaseStationService
{
protected void
ice_copyStateFrom(Ice.Object __obj)
throws java.lang.CloneNotSupportedException
{
throw new java.lang.CloneNotSupportedException();
}
public static final String[] __ids =
{
"::BaseStationData::BaseStationService",
"::Ice::Object"
};
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[0];
}
public String ice_id(Ice.Current __current)
{
return __ids[0];
}
public static String ice_staticId()
{
return __ids[0];
}
public final boolean GetGpsByBs(BsDataReq req, BsDataRespHolder resp)
{
return GetGpsByBs(req, resp, null);
}
public final boolean GetGpsByBsList(BsDataListReq req, BsDataRespHolder resp)
{
return GetGpsByBsList(req, resp, null);
}
public final boolean getPoiTypeFromGeo(BsPoint pt, DaoPoiInfoRespHolder res)
{
return getPoiTypeFromGeo(pt, res, null);
}
public static Ice.DispatchStatus ___GetGpsByBs(BaseStationService __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
BsDataReq req;
req = new BsDataReq();
req.__read(__is);
__inS.endReadParams();
BsDataRespHolder resp = new BsDataRespHolder();
boolean __ret = __obj.GetGpsByBs(req, resp, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
resp.value.__write(__os);
__os.writeBool(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___GetGpsByBsList(BaseStationService __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
BsDataListReq req;
req = new BsDataListReq();
req.__read(__is);
__inS.endReadParams();
BsDataRespHolder resp = new BsDataRespHolder();
boolean __ret = __obj.GetGpsByBsList(req, resp, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
resp.value.__write(__os);
__os.writeBool(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___getPoiTypeFromGeo(BaseStationService __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
BsPoint pt;
pt = new BsPoint();
pt.__read(__is);
__inS.endReadParams();
DaoPoiInfoRespHolder res = new DaoPoiInfoRespHolder();
boolean __ret = __obj.getPoiTypeFromGeo(pt, res, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
res.value.__write(__os);
__os.writeBool(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
private final static String[] __all =
{
"GetGpsByBs",
"GetGpsByBsList",
"getPoiTypeFromGeo",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping"
};
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 ___GetGpsByBs(this, in, __current);
}
case 1:
{
return ___GetGpsByBsList(this, in, __current);
}
case 2:
{
return ___getPoiTypeFromGeo(this, in, __current);
}
case 3:
{
return ___ice_id(this, in, __current);
}
case 4:
{
return ___ice_ids(this, in, __current);
}
case 5:
{
return ___ice_isA(this, in, __current);
}
case 6:
{
return ___ice_ping(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;
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public interface _BaseStationServiceOperations
{
boolean GetGpsByBs(BsDataReq req, BsDataRespHolder resp, Ice.Current __current);
boolean GetGpsByBsList(BsDataListReq req, BsDataRespHolder resp, Ice.Current __current);
boolean getPoiTypeFromGeo(BsPoint pt, DaoPoiInfoRespHolder res, Ice.Current __current);
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public interface _BaseStationServiceOperationsNC
{
boolean GetGpsByBs(BsDataReq req, BsDataRespHolder resp);
boolean GetGpsByBsList(BsDataListReq req, BsDataRespHolder resp);
boolean getPoiTypeFromGeo(BsPoint pt, DaoPoiInfoRespHolder res);
}
# Generated by slice2py - DO NOT EDIT!
#
import Ice
Ice.updateModule("BaseStationData")
# Modules:
import bsd_ice
# Submodules:
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class poiDatasHelper
{
public static void
write(IceInternal.BasicStream __os, PoiInfo[] __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 PoiInfo[]
read(IceInternal.BasicStream __is)
{
PoiInfo[] __v;
final int __len0 = __is.readAndCheckSeqSize(5);
__v = new PoiInfo[__len0];
for(int __i0 = 0; __i0 < __len0; __i0++)
{
__v[__i0] = new PoiInfo();
__v[__i0].__read(__is);
}
return __v;
}
}
// **********************************************************************
//
// 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package BaseStationData;
public final class poiDatasHolder
{
public
poiDatasHolder()
{
}
public
poiDatasHolder(PoiInfo[] value)
{
this.value = value;
}
public PoiInfo[] value;
}
# Generated by slice2py - DO NOT EDIT!
#
import Ice
Ice.updateModule("DISTRICT")
# Modules:
import district_ice
# Submodules:
# Generated by slice2py - DO NOT EDIT!
#
import Ice
Ice.updateModule("POI")
# Modules:
import ipoi_ice
# Submodules:
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
#!/usr/bin/python
# -*- coding:utf-8 -*-
import re
import random
import datetime
import pandas as pd
from pandas import DataFrame
from kafka import KafkaConsumer, TopicPartition
from kafka import KafkaProducer
from kafka.errors import KafkaError
import traceback,happybase
from thrift.protocol import TBinaryProtocol
from thrift.transport import THttpClient
# 下面的模块通过 thrift --gen py hbase.thrift 来生成
import sys
sys.path.append("../")
from kafka_protobuffer.kafka_gps_pb2 import TrackDataReq,BaseStReq,WifiInfoReq,GPSAndBSReq
from myhbase import THBaseService
from myhbase.ttypes import TColumnValue, TColumn, TTableName, TTableDescriptor, TColumnFamilyDescriptor, TNamespaceDescriptor, TGet, TPut, TScan
import logging
LOG_FORMAT = "%(asctime)s.%(msecs)03d[%(levelname)s][%(filename)s:%(lineno)d] > %(message)s" # 日志格式化输出
DATE_FORMAT = "%m-%d-%Y %H:%M:%S" # 日期格式
fp = logging.FileHandler(f"createLocus_{datetime.datetime.now().strftime('%Y-%m-%d')}.log", encoding='utf-8')
fs = logging.StreamHandler()
logging.basicConfig(level=logging.CRITICAL, format=LOG_FORMAT, datefmt=DATE_FORMAT, handlers=[fp, fs]) # 调用
#高效率的生产者模块
# from confluent_kafka import Producer,Consumer
# p = Producer(
# {
# 'bootstrap.servers': 'qc131:9092',
# 'session.timeout.ms': 30000,
# 'auto.offset.reset': 'earliest',
# 'api.version.request': False,
# 'broker.version.fallback': '0.8.1.1',
# 'group.id': 'python-producer'
# }
# )
class gpsInfo:
def __init__(self,sn='',lng=0,lat=0,gpsTime='',speed=0,accessTime=''):
self.sn = sn
self.lng = lng
self.lat = lat
self.gpsTime=gpsTime
self.speed = speed
self.accessTime = accessTime
def connect_hbase_test():
#记得启动thrift
#/usr/local/hadoopcluster/hbase/bin/hbase-daemon.sh start thrift
#/opt/glsx-projects/java-projects/zlq/hbase-client/alihbase-2.0.14/bin/hbase-daemon.sh start thrift
connection = happybase.Connection(host='192.168.3.246', port=9090, timeout=None,
autoconnect=True, table_prefix=None, table_prefix_separator=b'_',
compat='0.94', transport='buffered'
)
connection.open()
# l_tables = connection.tables() #获取所有表
# 对应需要关系
# connection.close()
return connection
#gps_gpsdata_change,device_state_change,gps_basestation_change,gps_gpsandbs_change
def connect_hbase():
headers={}
# 线上外网
url = "http://ld-wz9qs00b91uucde9j-proxy-hbaseue-pub.hbaseue.rds.aliyuncs.com:9190"
# 线上内网
# url = "http://ld-wz9qs00b91uucde9j-proxy-hbaseue.hbaseue.rds.aliyuncs.com:9190"
transport = THttpClient.THttpClient(url)
headers["ACCESSKEYID"]="root"
# 密码
headers["ACCESSSIGNATURE"]="root"
transport.setCustomHeaders(headers)
protocol = TBinaryProtocol.TBinaryProtocolAccelerated(transport)
client = THBaseService.Client(protocol)
transport.open()
return client
# GPS、GPRS最新连接时间
def getGPSinfoByHbase(connection, tableName, sn,startTime,endTime):
tableInbytes = "default:"+ tableName # 表,行,dataFrame,转化输出
tableInbytes = tableInbytes.encode("utf8")
#05-00001000000000-20201217101700
row_start ='05-0000' + str(sn)
row_stop ='05-0000' + str(sn)
if len(sn) == 11:
row_start='05-000'+sn
row_stop='05-000'+sn
row_start += f"-{startTime}"
row_stop += f"-{endTime}"
scan = TScan(startRow=row_start.encode("utf8"),stopRow=row_stop.encode("utf8"),limit=1)
currentResults = connection.getScannerResults(tableInbytes, scan, 99999)
gpsInfoList = []
for itemResult in currentResults:
try:
a = itemResult
except:
return 'nan'
b = str(a).split('TColumnValue')
lng = 0
lat=0
speed=0
gpstime=''
accessTime=''
for val in b:
if 'gpsTime' in val:
gpsTime = re.search("value=b'(.*)'",val).group(1)
elif 'longitude' in val:
lng = int(float(re.search("value=b'(.*)'", val).group(1))*1000000)
elif 'latitude' in val:
lat = int(float(re.search("value=b'(.*)'", val).group(1))*1000000)
elif 'speed' in val:
speed = int(re.search("value=b'(.*)'",val).group(1))
elif 'accessTime' in val:
accessTime = re.search("value=b'(.*)'",val).group(1)
gpsInfoList.append(gpsInfo(sn,lng,lat,gpsTime,speed,accessTime))
return gpsInfoList
def producer_demo(SerializeToString,broker,topic,partition):
producer = KafkaProducer(bootstrap_servers=[broker],api_version = (0,8,1,1))
future = producer.send(topic,value=SerializeToString,partition=partition) # 向分区0发送消息
# print(f"send {SerializeToString}")
try:
future.get(timeout=2) # 监控是否发送成功
except KafkaError: # 发送失败抛出kafka_errors
print(traceback.format_exc())
kafka_broker = 'qc131:9092'
# kafka_broker = '192.168.5.17:9093'
def sendBufferToKafka(info):
req = TrackDataReq()
req.devicesn = info.sn
req.facid = 'glsx'
# req.svrtime = int(datetime.datetime.now().timestamp())
req.svrtime = int(datetime.datetime.strptime(info.accessTime,'%Y-%m-%d %H:%M:%S').timestamp())
gpsdata = req.gpsdata.add()
gpsdata.longitude = info.lng
gpsdata.latitude = info.lat
# gpsdata.time = int(datetime.datetime.now().timestamp())
gpsdata.time = int(datetime.datetime.strptime(info.gpsTime, '%Y-%m-%d %H:%M:%S').timestamp())
# gpsdata.time = int(datetime.now().timestamp()-random.randint(0,60*60*24))
gpsdata.speed = int(info.speed)
gpsdata.direction = 0
gpsdata.alt = 0
gpsdata.valid = 'A'
print(f"{req.devicesn},{info.gpsTime},{info.lng},{info.lat},{gpsdata.speed}")
producer_demo(req.SerializeToString(), kafka_broker, 'gps_gpsdata', 0)
def sendGpsAndBsToKafka(info):
req = GPSAndBSReq()
req.devicesn = info.sn
req.svrtime = int(datetime.datetime.strptime(info.accessTime,'%Y-%m-%d %H:%M:%S').timestamp())
req.gpsdata.longitude = info.lng
req.gpsdata.latitude = info.lat
req.gpsdata.time = int(datetime.datetime.strptime(info.gpsTime, '%Y-%m-%d %H:%M:%S').timestamp())
req.gpsdata.speed = int(info.speed)
req.gpsdata.valid = 'A'
req.gpsdata.direction = 0
req.gpsdata.alt = 0
req.mcc = 460
req.mnc = 0
req.bscnt = 1
bstdata = req.bstdata.add()
bstdata.lac = 34067
bstdata.cellid = 142713602
bstdata.signal = 66
req.num = 6
req.voltage = "12V"
print(f"{req.devicesn},{info.gpsTime},{info.lng},{info.lat},{info.speed}")
producer_demo(req.SerializeToString(), kafka_broker, 'gps_gpsandbs', 0)
def getGPSinfoByHbase_test(connection, tableName, sn,startTime,endTime):
tableInbytes = "default:" + tableName # 表,行,dataFrame,转化输出
tableInbytes = tableInbytes.encode("utf8")
# 05-00001000000000-20201217101700
row_start = '05-0000' + str(sn)
row_stop = '05-0000' + str(sn)
if len(sn) == 11:
row_start = '05-000' + sn
row_stop = '05-000' + sn
row_start += f"-{startTime}"
row_stop += f"-{endTime}"
table = happybase.Table(tableInbytes, connection)
# 获取一个扫描器,返回一个generator
scanner = table.scan(row_start=row_start, row_stop=row_stop)
gpsInfoList = []
lng = 0
lat = 0
speed = 0
gpstime = ''
accessTime = ''
for rowkey, v in scanner:
hasValue = True
for index in v.keys():
# print(type(index)) # bytes.decode(index) bytes 类型转 str
if bytes.decode(index) == "info:accessTime":
accessTime = bytes.decode(v[index])
elif bytes.decode(index) == "info:gpsTime":
gpstime = bytes.decode(v[index])
elif bytes.decode(index) == "info:latitude":
lat = float(bytes.decode(v[index]))
elif bytes.decode(index) == "info:longitude":
lng = float(bytes.decode(v[index]))
elif bytes.decode(index) == "info:speed":
speed = int(bytes.decode(v[index]))
gpsInfoList.append(gpsInfo(sn, int(lng*1000000), int(lat*1000000), gpstime, speed, accessTime))
if hasValue is False:
return None
return gpsInfoList
# 1510802141 激活时间:2021-12-07 16:45:43
# 1511213547 激活时间:2022-02-28 20:23:40
# 1511213035 激活时间:2022-01-14 13:21:22
# snList = ['1511213035','1510802141','1511213547']
snList = ['1510118357']
#是否是正式环境
is_upload = False
if __name__ == "__main__":
#从线上同步位置点到测试环境
client = connect_hbase() if is_upload else connect_hbase_test()
for sn in snList:
gpsInfoList = getGPSinfoByHbase(client,'track_gps_2022',sn,'2022112114000','20221121230000') if is_upload else getGPSinfoByHbase_test(client,'track_gps_2022',sn,'2022112114000','20221121230000')
# gpsInfoList = getGPSinfoByHbase(client, 'track_gps', sn, '20220920150000', '20220925000000')
print(len(gpsInfoList))
if len(gpsInfoList) > 0:
for gpsInfo in gpsInfoList:
sendBufferToKafka(gpsInfo)
# sendGpsAndBsToKafka(gpsInfo)
if is_upload is False:
client.close()
#从表格同步位置点到测试环境
# fileData = pd.read_excel("86207100020_行车轨迹.xls")
# print(fileData)
# for i in range(0,len(fileData)):
# gpstime = str(fileData.iloc[i]['时间'])
# timestemp = int(datetime.strptime(gpstime,"%Y-%m-%d %H:%M:%S").timestamp())
# info = gpsInfo(str(fileData.iloc[i]['设备号']),fileData.iloc[i]['经度'],fileData.iloc[i]['纬度'],timestemp,fileData.iloc[i]['速度(km/h)'])
# sendBufferToKafka(info)
print("end")
\ No newline at end of file
#!/usr/bin/python
# -*- coding:utf-8 -*-
from urllib import parse
import pandas as pd
import pymysql,traceback
from sqlalchemy import create_engine
#清理接入侧的设备
#线上gpsdb
gpsdb_conn = pymysql.Connect(host='192.168.5.21', port=3306, user='c_gps',passwd='942b319271da', db='gpsdb', charset='utf8')
# gpsdb_conn = pymysql.connect(host='192.168.3.222', port=3307, user='root',passwd='Msd^*$@online', db='gpsdb', charset='utf8')
#从库
# gpsdb_conn_slave = pymysql.connect(host='192.168.5.22', port=3306, user='user_chenqj', passwd='MtWSIfaf', db='gpsdb',charset='utf8')
#gpsdb备份
conn_gpsdb_test = pymysql.connect(host='192.168.3.222', port=3307, user='root',passwd='Msd^*$@online', db='gpsdb', charset='utf8')
def insertsn(snList):
print(f"{len(snList)}")
sql = f"insert into t_clear_hbase_sn (DEVICENO) values"
bFirst = True
for sn in snList:
if bFirst is False:
sql+=','
sql += f"('{sn}')"
bFirst = False
cursor = gpsdb_conn.cursor()
try:
cursor.execute(sql)
gpsdb_conn.commit()
except Exception:
val = traceback.format_exc() # 获取异常信息
print(val)
def add_delete_sn():
df = pd.read_excel("可删除的设备号.xlsx")
print(df.columns)
df['sn'] = df['sn'].astype(str)
snList = list(df['sn'])
total = len(snList)
sumCount = int(total/10000)
sn_df = insertsn(snList[0:10000])
for n in range(sumCount):
startRow = (n+1)*10000
endRow = (n+2)*10000
insertsn(snList[startRow:endRow])
def backup_track_info_to_test():
sql = "SELECT * FROM t_tracker_info WHERE DEVICENO IN (SELECT DEVICENO FROM t_clear_hbase_sn tchs)"
cursor = gpsdb_conn.cursor()
cursor.execute(sql)
result = cursor.fetchall()
df = pd.DataFrame(list(result),columns=('ID','DEVICENO','FACID','TYPE','IP','CREATETIME','UPDATETIME'))
df.to_sql("t_tracker_info_clear_bak",
con=create_engine(f'mysql+pymysql://root:{parse.quote_plus("Msd^*$@online")}@192.168.3.222:3307/gpsdb?charset=utf8'),
index=False,
if_exists="append")
if __name__ == '__main__':
# 导入要删除的设备
# add_delete_sn()
# 把要删除的数据备份到测试环境:t_tracker_info_clear_bak
# backup_track_info_to_test()
# 从track_info里删除信息
sql = "delete from t_tracker_info where DEVICENO in (select DEVICENO FROM t_clear_hbase_sn)"
cursor = gpsdb_conn.cursor()
try:
cursor.execute(sql)
gpsdb_conn.commit()
except Exception:
val = traceback.format_exc() # 获取异常信息
print(val)
\ No newline at end of file
This file is too large to display.
#!/usr/bin/python
# -*- coding:utf-8 -*-
from urllib import parse
import pandas as pd
import pymysql,traceback
from sqlalchemy import create_engine
#在glsx_pap库中创建要删除的sn表
#在glsx_pap库中创建要保留的sn表
#线上
conn_pap = pymysql.connect(host='192.168.5.24', port=3307, user='biz_glsx_pap',passwd='kj32iiewdd', db='glsx_pap', charset='utf8')
#测试
# conn_pap = pymysql.connect(host='192.168.3.222', port=3307, user='root',passwd='Msd^*$@online', db='glsx_pap', charset='utf8')
def insertsn(snList,tablename):
print(f"{len(snList)}")
sql = f"insert into {tablename} (sn,opType) values"
bFirst = True
for sn in snList:
if bFirst is False:
sql+=','
sql += f"('{sn}',0)"
bFirst = False
cursor = conn_pap.cursor()
try:
cursor.execute(sql)
conn_pap.commit()
except Exception:
val = traceback.format_exc() # 获取异常信息
print(val)
def add_delete_gps_sn():
df = pd.read_excel("可删除的设备号.xlsx")
print(df.columns)
df['sn'] = df['sn'].astype(str)
snList = list(df['sn'])
total = len(snList)
sumCount = int(total/10000)
insertsn(snList[0:10000],"t_gps_device_del")
for n in range(sumCount):
startRow = (n+1)*10000
endRow = (n+2)*10000
insertsn(snList[startRow:endRow],"t_gps_device_del")
def add_delete_lbs_sn():
df = pd.read_excel("lbs可删除的包含有源设备.xlsx")
print(df.columns)
df['sn'] = df['sn'].astype(str)
snList = list(df['sn'])
total = len(snList)
sumCount = int(total/10000)
insertsn(snList[0:10000],"t_lbs_device_del")
for n in range(sumCount):
startRow = (n+1)*10000
endRow = (n+2)*10000
insertsn(snList[startRow:endRow],"t_lbs_device_del")
def add_retain_sn_gps():
sql = "select sn,0 from t_device_gps_recent where device_type='05'"
cursor_recent = conn_pap.cursor()
cursor_recent.execute(sql)
result = cursor_recent.fetchall()
df = pd.DataFrame(list(result),columns=('sn','opType'))
sql = "select sn,0 from t_gps_device_del"
cursor_del = conn_pap.cursor()
cursor_recent.execute(sql)
result = cursor_recent.fetchall()
df_del = pd.DataFrame(list(result), columns=('sn','opType'))
df = df.append(df_del)
df = df.append(df_del)
df.drop_duplicates(subset=['sn'], keep=False, inplace=True)
df.to_sql("t_gps_device_retain",
con=create_engine(f'mysql+pymysql://biz_glsx_pap:kj32iiewdd@192.168.5.24:3307/glsx_pap?charset=utf8'),
index=False,
if_exists="append")
def add_retain_sn_lbs():
sql = "select sn,0 from t_device_lbs_recent where type='05'"
cursor_recent = conn_pap.cursor()
cursor_recent.execute(sql)
result = cursor_recent.fetchall()
df = pd.DataFrame(list(result),columns=('sn','opType'))
sql = "select sn,0 from t_lbs_device_del"
cursor_del = conn_pap.cursor()
cursor_recent.execute(sql)
result = cursor_recent.fetchall()
df_del = pd.DataFrame(list(result), columns=('sn','opType'))
df = df.append(df_del)
df = df.append(df_del)
df.drop_duplicates(subset=['sn'], keep=False, inplace=True)
df.to_sql("t_lbs_device_retain",
con=create_engine(f'mysql+pymysql://biz_glsx_pap:kj32iiewdd@192.168.5.24:3307/glsx_pap?charset=utf8'),
index=False,
if_exists="append")
if __name__ == '__main__':
# 导入要删除的设备
# add_delete_gps_sn()
# add_delete_lbs_sn()
#导入要保留的gps
# add_retain_sn_gps()
#导入要保留的lbs
# add_retain_sn_lbs()
print("complate")
\ No newline at end of file
#!/usr/bin/python
# -*- coding:utf-8 -*-
import re
import datetime
import logging
from dateutil.relativedelta import relativedelta
import numpy as np
import pandas as pd
import pymysql
#从业务提供的表中导出对应的设备号
#线上
db_conn_gps = pymysql.Connect(host='192.168.5.22', port=3307, user='user_chenqj',
passwd='MtWSIfaf', db='gps', charset='utf8')
def selectSnbyVin(vinList):
print(f"{len(vinList)}")
vinListStr = "','".join(vinList)
sql = f"SELECT dti.sn,dv.standno FROM d_vehicle dv LEFT JOIN d_track_info dti ON dv.vehicleId = dti.trackerId WHERE dti.sn IS NOT NULL AND dv.standno IN ('{vinListStr}')"
cursor = db_conn_gps.cursor()
cursor.execute(sql)
result = cursor.fetchall()
df = pd.DataFrame(list(result),columns=('sn','vin'))
return df
if __name__ == '__main__':
df = pd.read_excel("2018~2019可清除的车架号.xlsx")
print(df.columns)
df['vin'] = df['vin'].astype(str)
vinList = list(df['vin'])
total = len(vinList)
sumCount = int(total/10000)
sn_df = selectSnbyVin(vinList[0:10000])
for n in range(sumCount):
startRow = (n+1)*10000
endRow = (n+2)*10000
sn_df_tmp = selectSnbyVin(vinList[startRow:endRow])
sn_df = sn_df.append(sn_df_tmp)
sn_df.to_excel("2018~2019可清除的sn.xlsx",index=False)
\ No newline at end of file
No preview for this file type
module HDaoMile
{
/*==========================================================
* Mileage Statistics
*==========================================================*/
/******* common *********/
struct GpsPos
{
int gpsTime;
int lng;
int lat;
string addr;
};
/*--------------------
apType: also named as devType, its value defined as below:
2: OBD;
4: DDbox(DVD)
5: Tracker
6: rearMirror
7: car recorder
---------------------*/
/*--------------------
oprResult:
0: OK
1: reserved
other: operation failed
---------------------*/
/******** Start mileage statistics *************/
struct MileStatBeginRequest
{
long userID;
int apType;
int beginTime;
};
struct MileStatBeginResponse
{
int oprResult;
};
/******* End mileage statistics *********/
struct MileStatEndRequest
{
long userID;
int apType;
int beginTime;
int endTime;
bool bRetGpsTime;
};
struct MileStatEndResponse
{
int oprResult;
int mileage; /* unit: meter */
GpsPos beginPos;
GpsPos endPos;
float over80Percent; /* percentage of gpsPoints that are over speed ranging from 80km/h to 120km/h */
float over120Percent; /* percentage of gpsPoints that are over speed above 120km/h */
int maxSpeed; /* unit: km/h */
int gpsBgnTime; /* time of the first gps record of the journey. Maybe filled if bRetGpsTime is true */
int gpsEndTime; /* time of the last gps record of the journey. Maybe filled if bRetGpsTime is true */
};
/******* mileage statistics *********/
struct MileStatRequest
{
long userID;
int apType;
int beginTime;
int endTime;
};
struct MileStatResponse
{
int oprResult;
int mileage; /* unit: meter */
GpsPos beginPos;
GpsPos endPos;
float over80Percent; /* 超速gps点(80km/h-120km/h) 占行程的百分比 */
float over120Percent; /* 超速gps点(120km/h以上) 占行程的百分比 */
int maxSpeed; /* unit: km/h */
};
// service interface
interface DaoMileService
{
/* Mile Stat related */
bool beginUserMileStat(MileStatBeginRequest req, out MileStatBeginResponse res);
bool endUserMileStat(MileStatEndRequest req, out MileStatEndResponse res);
bool JourneyMileStat(MileStatRequest req, out MileStatResponse res);
};
};
\ No newline at end of file
module BaseStationData
{
struct BsData
{
int mnc; /*运营商编码*/
int lac; /*区号*/
int cellid; /*塔号*/
};
sequence<BsData> BsListReq;
struct BsDataListReq
{
BsListReq bsList;
};
struct BsDataReq
{
BsData bs;
};
struct GpsData
{
int lng; /*经度*/
int lat; /*纬度*/
string addr; /*地址*/
};
struct BsDataResp
{
int ret;
GpsData gps;
};
struct BsPoint
{
float lng;
float lat;
};
struct PoiInfo
{
float distance;
string type;
float lng;
float lat;
string addr;
};
sequence<PoiInfo> poiDatas;
struct DaoPoiInfoResp
{
int size;
poiDatas records;
};
interface BaseStationService
{
bool GetGpsByBs(BsDataReq req, out BsDataResp resp);
bool GetGpsByBsList(BsDataListReq req, out BsDataResp resp);
/*get gaode poiType*/
bool getPoiTypeFromGeo(BsPoint pt, out DaoPoiInfoResp res);
};
};
module DISTRICT {
interface IDistrictFinder{
bool get_distinfo_by_pos(float lng,float lat,out int distCode,out string strDistName);
bool get_distdetail_by_code(int distCode,out string strProvName,out string strCityName,out string strCountyName);
bool get_distdetail_by_pos(float lng, float lat, out string strProvName, out string strCityName, out string strCountyName);
};
};
module FspOnline
{
struct GpsLoc
{
double longitude;
double latitude;
double glng; /* 高德坐标 */
double glat;
double blng; /* 百度坐标 */
double blat;
};
struct ResideBaseInfo
{
string userId;
int apType;
int totalDuration;
int totalTimes;
GpsLoc gps;
};
enum PeriodType
{
Morning = 1,
Afternoon = 2,
Night = 4,
};
sequence<ResideBaseInfo> ResideBaseInfos;
struct FspReq
{
string userId;
int apType;
int beginTime;
int endTime;
int locInfoType; /* 1.gps 2.bs */
int perType;
int extraMapReq; /* 0:原始坐标 1:转换高德和百度坐标 2:转换高德坐标 3:转换百度坐标 */
};
struct FspResp
{
int ret;
ResideBaseInfos baseInfos;
};
interface FspService
{
int GetFsp(FspReq req, out FspResp resp);
};
};
module POI {
struct poi_info_t
{
int id; //poi id
float lng;
float lat;
int citycode;
int type;
string name;
string addr;
string tel;
int weight;
int distance;
};
sequence<poi_info_t> poi_info_seq_t;
sequence<int> poi_type_seq_t;
enum POI_INDEX_TYPE_CONSTANTS
{
emIndexName,
emIndexAddr,
emIndexCustom,
index_type_count,
};
struct geopoint
{
float lng;
float lat;
};
struct geocoding_result
{
int level;
int confidence;
geopoint pt;
};
/*
* POI search
*/
interface IPOISearchFTR
{
/*
input:
emIndexType
key
citycode
limit
output:
a list of poi
*/
int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, string key, int citycode, int limit, out poi_info_seq_t arrPoiInfo);
/*
input:
emIndexType
key
citycode
limit
a list of type
output:
a list of poi
*/
int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, string key, int citycode, poi_type_seq_t arrType, int limit,
out poi_info_seq_t arrPoiInfo);
/*
input:
emIndexType
key
citycode
limit
a list of type
lng lat :pos
maxDis:distance
output:
a list of poi
*/
int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, string key, poi_type_seq_t arrType, geopoint pt, int maxDis, int limit,
out poi_info_seq_t arrPoiInfo);
/*
input:
key
region city
limit
output:
a list of poi
*/
int poi_search_by_key_cityname(string key, string cityname, int limit, out poi_info_seq_t arrPoiInfo);
/*
input:
key
citycode
limit
省内查询
output:
a list of poi
*/
int poi_search_by_key_citycode(string key, int citycode, int limit, out poi_info_seq_t arrPoiInfo);
/*
地址解析
input:
string strGeopointDescription
output:
geocoding_result rst
*/
int Geocoding(string strAddress, out geocoding_result rst);
}; // interface IPOISearchFTR
interface IPOISearchNear
{
/*
input:
ptLL
ptRR
a list of type
numLimit
output:
a list of poi
*/
int poi_search_by_rect(geopoint ptLL,geopoint ptRR,poi_type_seq_t arrType,int numLimit,out poi_info_seq_t arrPoiInfo);
/*
input:
pt
maxDis
a list of type
numLimit
output:
a list of poi
*/
int poi_search_by_circle(geopoint pt,int maxDis,poi_type_seq_t arrType,int numLimit,out poi_info_seq_t arrPoiInfo);
/*
input:
citycode
limit
a list of type
output:
a list of poi
*/
int poi_search_by_city(int citycode,poi_type_seq_t arrType,int limit,out poi_info_seq_t arrPoiInfo);
/*
逆地址解析
input:
geopoint pt
output:
string strGeopointDescription
*/
int ReverseGeocoding(geopoint pt,out string strGeopointDescription);
// 逆地址解析, 格式:广东省广州市天河区国际康体贸易中心附近
int ReverseGeocoding2(geopoint pt, out string strGeopointDescription);
}; // interface IPOISearchFTR
}; // module
\ No newline at end of file
__all__ = ['kafka_gps_pb2','black_abnormal_pb2','fence_pb2','kafka_journey_pb2','kafka_device_state_pb2']
//***********************************************************************
//* 文件名:kafka_black_abnoraml.proto
//* 版本记录:
//************************************************************************
syntax = "proto2";
package black_abnormal;
option java_package = "com.glsx.protoTemplate";
message abnormalAndBlackRegion
{
required string sn = 1; //设备号
required string aggkey = 2; //黑区or异常聚集编号
required string alarmaddress = 3; //报警地址
required string alarmtime = 4; //报警时间
required int32 alarmtype = 5; //黑区报警or异常聚集报警 1:黑区报警 2:异常聚集报警 3:新黑区报警
required int32 status=6; //当前设备状态 1:已恢复 2:未恢复
required float lng=7; //报警地经度信息
required float lat=8; //报警地纬度信息
required string leaveTime = 9; //驶出时间
required string poiType = 10; //Poi类型
}
message KafkaSecondData
{
required string sn = 1; //设备号
required string second_type = 2; //二押区域规则类型(二押地停留)
required string second_name = 3; //二押区域规则名称(二押地停留)
required string second_alarm_time = 4; // 二押区域报警时间
required string second_alarm_address = 5; //二押区域报警位置
optional string second_leave_time = 6; //离开二押区域时间
optional string second_stay_time = 7; //二押区域停留时长
required string second_id = 8; //二押区域停留附件二手车行ID
required string second_stay_longitude = 9; //二押区域停留经度
required string second_stay_latitude = 10; //二押区域停留纬度
required string eventTime = 11; //事件时间,写入事件
}
\ No newline at end of file
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: black_abnormal.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x62lack_abnormal.proto\x12\x0e\x62lack_abnormal\"\xbe\x01\n\x16\x61\x62normalAndBlackRegion\x12\n\n\x02sn\x18\x01 \x02(\t\x12\x0e\n\x06\x61ggkey\x18\x02 \x02(\t\x12\x14\n\x0c\x61larmaddress\x18\x03 \x02(\t\x12\x11\n\talarmtime\x18\x04 \x02(\t\x12\x11\n\talarmtype\x18\x05 \x02(\x05\x12\x0e\n\x06status\x18\x06 \x02(\x05\x12\x0b\n\x03lng\x18\x07 \x02(\x02\x12\x0b\n\x03lat\x18\x08 \x02(\x02\x12\x11\n\tleaveTime\x18\t \x02(\t\x12\x0f\n\x07poiType\x18\n \x02(\t\"\x98\x02\n\x0fKafkaSecondData\x12\n\n\x02sn\x18\x01 \x02(\t\x12\x13\n\x0bsecond_type\x18\x02 \x02(\t\x12\x13\n\x0bsecond_name\x18\x03 \x02(\t\x12\x19\n\x11second_alarm_time\x18\x04 \x02(\t\x12\x1c\n\x14second_alarm_address\x18\x05 \x02(\t\x12\x19\n\x11second_leave_time\x18\x06 \x01(\t\x12\x18\n\x10second_stay_time\x18\x07 \x01(\t\x12\x11\n\tsecond_id\x18\x08 \x02(\t\x12\x1d\n\x15second_stay_longitude\x18\t \x02(\t\x12\x1c\n\x14second_stay_latitude\x18\n \x02(\t\x12\x11\n\teventTime\x18\x0b \x02(\tB\x18\n\x16\x63om.glsx.protoTemplate')
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'black_abnormal_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\026com.glsx.protoTemplate'
_ABNORMALANDBLACKREGION._serialized_start=41
_ABNORMALANDBLACKREGION._serialized_end=231
_KAFKASECONDDATA._serialized_start=234
_KAFKASECONDDATA._serialized_end=514
# @@protoc_insertion_point(module_scope)
syntax = "proto2";
package InstanceFence;
option java_package = "cn.com.glsx.kafka.protocol";
option java_outer_classname = "FakeOfflineFence";
message CommonResult
{
required int32 result = 1; //系统错误码
optional int32 errCode = 2; //业务错误码
optional string errMsg = 3; //错误信息
}
message GpsLoc
{
required uint32 lng = 1; //经度*1000000
required uint32 lat = 2; //纬度*1000000
}
message GpsLocDetail
{
required GpsLoc gpsloc = 1; //位置
required uint32 time = 2; //时间
required uint32 speed = 3; //速度
required uint32 direction = 4; //方向
required int32 alt = 5; //海拔
required string valid = 6; //有效性
}
message FenceInfo
{
required uint32 fenceId = 1; //围栏唯一标识
required uint32 svcSystemId = 2; //业务渠道唯一标识
required int32 fenceType = 3; //围栏类型(1.驶入 2.驶出)
required int32 fenceShapeType = 4; //围栏形状(1.圆形 2.矩形 3.多边形 4.行政区域)
required int32 locInfoType = 5; //定位信息类型(1.gps 2.基站)
optional string fenceName = 6; //围栏名称
optional int32 status = 7; //围栏状态(0.正常 1.关闭 )
optional int32 ownerType = 8; //围栏属主类型(1.商户 2.设备)
optional int32 ownerId = 9; //围栏属主唯一标识(仅当属主类型是商户时字段有效)
optional int32 scope = 10; //围栏范围
optional int32 triggerType = 11; //触发类型(1.点数(个) 2.时长(秒))
optional int32 enterSpan= 12; //驶入跨度
optional int32 outerSpan= 13; //驶出跨度
repeated GpsLoc gpslocs = 14; //端点位置
optional int32 areaCode = 15; //行政区域编码(fenceType==4时有效)
optional int32 merchantType = 16; //门店类型(ownerType==1时有效 0.非4s店 1.4s店)
optional int32 stayTime = 17; //停留时长的阈值,大于这个值报警(ownerType==1时有效, 单位s)
optional string address = 18; //地址
}
message FenceDeviceFamilyInfo
{
required string sn = 1; //设备sn
repeated GpsLoc gpslocs = 2; //端点位置
optional int32 instayTime = 3;
optional int32 outstayTime = 4;
optional int32 leaverscope = 5;
optional int32 gethomescope = 6;
}
message FenceMember
{
required uint32 fenceId = 1; //围栏唯一标识
required uint32 svcSystemId = 2; //业务渠道唯一标识
required string devicesn = 3; //设备唯一标识
required int32 deviceType = 4; //设备类型
optional int32 status = 5; //
}
message TriggerDeviceFamilyInfo //围栏触发(写kafka)
{
required string sn = 1; //设备sn
required int32 status = 2; //设备状态 1:离家通知 2:到家通知
required uint32 triggerTime = 3; //触发时间
}
message TriggerInfo //围栏触发信息(写kafka)
{
required string devicesn = 1; //设备唯一标识
required uint32 fenceId = 2; //围栏唯一标识
required uint32 svcSystemId = 3; //业务渠道唯一标识
required int32 triggerType = 4; //驶入或驶出
required int32 locInfoType = 5; //定位信息类型(1.gps 2.基站)
optional uint32 triggerTime= 6; //触发时间
optional GpsLocDetail triggerLoc = 7; //触发点详情
optional string merchantName = 8; //门店名称
optional int32 merchantType = 9; //门店类型
optional string enterTime = 10; //进围栏时间
optional string outTime = 11; //出围栏时间
optional int32 alarmType = 12; //流失预警或其他(1.流失预警 2.其他)
}
//topic: fence_fake_offline
message FakeOfflineInfo //家和公司围栏触发信息(写kafka)
{
required string devicesn = 1; //设备唯一标识
required uint32 fenceId = 2; //围栏唯一标识
required uint32 svcSystemId = 3; //业务渠道唯一标识
required int32 triggerType = 4; //驶入或驶出(1.驶入 2.驶出)
required int32 locInfoType = 5; //定位信息类型(1.gps 2.基站)
optional uint32 triggerTime= 6; //触发时间
optional GpsLocDetail triggerLoc = 7; //触发点详情
optional string merchantName = 8; //围栏名称(家庭或工作地)
optional int32 merchantType = 9; //围栏类型(1家庭,2公司)
optional string enterTime = 10; //进围栏时间
optional string outTime = 11; //出围栏时间
optional int32 alarmType = 12; //流失预警或其他(1.流失预警 3.到店提醒 其它)
optional string addr = 13; //地址
}
message BoderAlarm
{
required string devicesn = 1; //设备唯一标识
optional int32 positionStaus = 2; //设备位置状态(0.国内,1.边境线上 2.国外)
optional int32 distance = 3; //
}
enum OperationType //围栏操作类型
{
ADD = 1;
DEL = 2;
GET = 3;
UPDATE = 4;
ADDANDUPDATE = 5;
}
message OptFenceInfo //围栏信息操作
{
required OperationType operationType = 1;
repeated FenceInfo fenceInfos = 2;
}
message OptFenceMember //围栏成员操作
{
required OperationType operationType = 1;
repeated FenceMember fenceMembers = 2;
}
message OptFamilyFenceInfo //家庭围栏信息(读kafka)
{
required OperationType operationType = 1;
repeated FenceDeviceFamilyInfo familyfenceInfos = 2;
}
message OptFenceReq //围栏信息操作请求(读kafka)
{
optional OptFenceInfo optFenceInfo = 1;
optional OptFenceMember optFenceMember = 2;
}
message OptFenceResp //围栏信息操作返回(写kafka暂时未用)
{
required CommonResult result = 1;
repeated FenceInfo fenceInfos = 2;
repeated FenceMember fenceMembers = 3;
}
message TriggerInfoResp //围栏触发信息返回(写kafka)
{
required TriggerInfo triggerInfo = 1;
}
//topic:fence_drive
message TriggerTestDriveInfo //试驾围栏触发信息(写kafka)
{
required string devicesn = 1; //设备唯一标识
required uint32 fenceId = 2; //围栏唯一标识
required uint32 svcSystemId = 3; //业务渠道唯一标识
optional uint32 journeyTime= 4; //行程开始时间
optional int32 percent = 5; //重合百分百,值为20 即是 20%
}
message TriggerInStoreInfo //记录试驾车辆有效时间内是否在门店内(写kafka)
{
required string devicesn = 1; //设备唯一标识
required uint32 positionState = 2; //0:非新疆 1:新疆
required uint32 fenceId = 3; //门店围栏
required uint32 gpsState = 4; //0:工作时间有进出门店 1:工作时间一直在门店内 2:工作时间内一直在门店外
optional string gpsTime = 5; //gpsState = 0 ,填写该字段的时间用于判断是否工作时间内在门店,gpsState = 1 or gpsState = 1,则不用填写,因为一直在门店内或门店外
}
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: fence.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0b\x66\x65nce.proto\x12\rInstanceFence\"?\n\x0c\x43ommonResult\x12\x0e\n\x06result\x18\x01 \x02(\x05\x12\x0f\n\x07\x65rrCode\x18\x02 \x01(\x05\x12\x0e\n\x06\x65rrMsg\x18\x03 \x01(\t\"\"\n\x06GpsLoc\x12\x0b\n\x03lng\x18\x01 \x02(\r\x12\x0b\n\x03lat\x18\x02 \x02(\r\"\x81\x01\n\x0cGpsLocDetail\x12%\n\x06gpsloc\x18\x01 \x02(\x0b\x32\x15.InstanceFence.GpsLoc\x12\x0c\n\x04time\x18\x02 \x02(\r\x12\r\n\x05speed\x18\x03 \x02(\r\x12\x11\n\tdirection\x18\x04 \x02(\r\x12\x0b\n\x03\x61lt\x18\x05 \x02(\x05\x12\r\n\x05valid\x18\x06 \x02(\t\"\xf5\x02\n\tFenceInfo\x12\x0f\n\x07\x66\x65nceId\x18\x01 \x02(\r\x12\x13\n\x0bsvcSystemId\x18\x02 \x02(\r\x12\x11\n\tfenceType\x18\x03 \x02(\x05\x12\x16\n\x0e\x66\x65nceShapeType\x18\x04 \x02(\x05\x12\x13\n\x0blocInfoType\x18\x05 \x02(\x05\x12\x11\n\tfenceName\x18\x06 \x01(\t\x12\x0e\n\x06status\x18\x07 \x01(\x05\x12\x11\n\townerType\x18\x08 \x01(\x05\x12\x0f\n\x07ownerId\x18\t \x01(\x05\x12\r\n\x05scope\x18\n \x01(\x05\x12\x13\n\x0btriggerType\x18\x0b \x01(\x05\x12\x11\n\tenterSpan\x18\x0c \x01(\x05\x12\x11\n\touterSpan\x18\r \x01(\x05\x12&\n\x07gpslocs\x18\x0e \x03(\x0b\x32\x15.InstanceFence.GpsLoc\x12\x10\n\x08\x61reaCode\x18\x0f \x01(\x05\x12\x14\n\x0cmerchantType\x18\x10 \x01(\x05\x12\x10\n\x08stayTime\x18\x11 \x01(\x05\x12\x0f\n\x07\x61\x64\x64ress\x18\x12 \x01(\t\"\x9f\x01\n\x15\x46\x65nceDeviceFamilyInfo\x12\n\n\x02sn\x18\x01 \x02(\t\x12&\n\x07gpslocs\x18\x02 \x03(\x0b\x32\x15.InstanceFence.GpsLoc\x12\x12\n\ninstayTime\x18\x03 \x01(\x05\x12\x13\n\x0boutstayTime\x18\x04 \x01(\x05\x12\x13\n\x0bleaverscope\x18\x05 \x01(\x05\x12\x14\n\x0cgethomescope\x18\x06 \x01(\x05\"i\n\x0b\x46\x65nceMember\x12\x0f\n\x07\x66\x65nceId\x18\x01 \x02(\r\x12\x13\n\x0bsvcSystemId\x18\x02 \x02(\r\x12\x10\n\x08\x64\x65vicesn\x18\x03 \x02(\t\x12\x12\n\ndeviceType\x18\x04 \x02(\x05\x12\x0e\n\x06status\x18\x05 \x01(\x05\"J\n\x17TriggerDeviceFamilyInfo\x12\n\n\x02sn\x18\x01 \x02(\t\x12\x0e\n\x06status\x18\x02 \x02(\x05\x12\x13\n\x0btriggerTime\x18\x03 \x02(\r\"\x98\x02\n\x0bTriggerInfo\x12\x10\n\x08\x64\x65vicesn\x18\x01 \x02(\t\x12\x0f\n\x07\x66\x65nceId\x18\x02 \x02(\r\x12\x13\n\x0bsvcSystemId\x18\x03 \x02(\r\x12\x13\n\x0btriggerType\x18\x04 \x02(\x05\x12\x13\n\x0blocInfoType\x18\x05 \x02(\x05\x12\x13\n\x0btriggerTime\x18\x06 \x01(\r\x12/\n\ntriggerLoc\x18\x07 \x01(\x0b\x32\x1b.InstanceFence.GpsLocDetail\x12\x14\n\x0cmerchantName\x18\x08 \x01(\t\x12\x14\n\x0cmerchantType\x18\t \x01(\x05\x12\x11\n\tenterTime\x18\n \x01(\t\x12\x0f\n\x07outTime\x18\x0b \x01(\t\x12\x11\n\talarmType\x18\x0c \x01(\x05\"\xaa\x02\n\x0f\x46\x61keOfflineInfo\x12\x10\n\x08\x64\x65vicesn\x18\x01 \x02(\t\x12\x0f\n\x07\x66\x65nceId\x18\x02 \x02(\r\x12\x13\n\x0bsvcSystemId\x18\x03 \x02(\r\x12\x13\n\x0btriggerType\x18\x04 \x02(\x05\x12\x13\n\x0blocInfoType\x18\x05 \x02(\x05\x12\x13\n\x0btriggerTime\x18\x06 \x01(\r\x12/\n\ntriggerLoc\x18\x07 \x01(\x0b\x32\x1b.InstanceFence.GpsLocDetail\x12\x14\n\x0cmerchantName\x18\x08 \x01(\t\x12\x14\n\x0cmerchantType\x18\t \x01(\x05\x12\x11\n\tenterTime\x18\n \x01(\t\x12\x0f\n\x07outTime\x18\x0b \x01(\t\x12\x11\n\talarmType\x18\x0c \x01(\x05\x12\x0c\n\x04\x61\x64\x64r\x18\r \x01(\t\"G\n\nBoderAlarm\x12\x10\n\x08\x64\x65vicesn\x18\x01 \x02(\t\x12\x15\n\rpositionStaus\x18\x02 \x01(\x05\x12\x10\n\x08\x64istance\x18\x03 \x01(\x05\"q\n\x0cOptFenceInfo\x12\x33\n\roperationType\x18\x01 \x02(\x0e\x32\x1c.InstanceFence.OperationType\x12,\n\nfenceInfos\x18\x02 \x03(\x0b\x32\x18.InstanceFence.FenceInfo\"w\n\x0eOptFenceMember\x12\x33\n\roperationType\x18\x01 \x02(\x0e\x32\x1c.InstanceFence.OperationType\x12\x30\n\x0c\x66\x65nceMembers\x18\x02 \x03(\x0b\x32\x1a.InstanceFence.FenceMember\"\x89\x01\n\x12OptFamilyFenceInfo\x12\x33\n\roperationType\x18\x01 \x02(\x0e\x32\x1c.InstanceFence.OperationType\x12>\n\x10\x66\x61milyfenceInfos\x18\x02 \x03(\x0b\x32$.InstanceFence.FenceDeviceFamilyInfo\"w\n\x0bOptFenceReq\x12\x31\n\x0coptFenceInfo\x18\x01 \x01(\x0b\x32\x1b.InstanceFence.OptFenceInfo\x12\x35\n\x0eoptFenceMember\x18\x02 \x01(\x0b\x32\x1d.InstanceFence.OptFenceMember\"\x9b\x01\n\x0cOptFenceResp\x12+\n\x06result\x18\x01 \x02(\x0b\x32\x1b.InstanceFence.CommonResult\x12,\n\nfenceInfos\x18\x02 \x03(\x0b\x32\x18.InstanceFence.FenceInfo\x12\x30\n\x0c\x66\x65nceMembers\x18\x03 \x03(\x0b\x32\x1a.InstanceFence.FenceMember\"B\n\x0fTriggerInfoResp\x12/\n\x0btriggerInfo\x18\x01 \x02(\x0b\x32\x1a.InstanceFence.TriggerInfo\"t\n\x14TriggerTestDriveInfo\x12\x10\n\x08\x64\x65vicesn\x18\x01 \x02(\t\x12\x0f\n\x07\x66\x65nceId\x18\x02 \x02(\r\x12\x13\n\x0bsvcSystemId\x18\x03 \x02(\r\x12\x13\n\x0bjourneyTime\x18\x04 \x01(\r\x12\x0f\n\x07percent\x18\x05 \x01(\x05\"q\n\x12TriggerInStoreInfo\x12\x10\n\x08\x64\x65vicesn\x18\x01 \x02(\t\x12\x15\n\rpositionState\x18\x02 \x02(\r\x12\x0f\n\x07\x66\x65nceId\x18\x03 \x02(\r\x12\x10\n\x08gpsState\x18\x04 \x02(\r\x12\x0f\n\x07gpsTime\x18\x05 \x01(\t*H\n\rOperationType\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\x07\n\x03\x44\x45L\x10\x02\x12\x07\n\x03GET\x10\x03\x12\n\n\x06UPDATE\x10\x04\x12\x10\n\x0c\x41\x44\x44\x41NDUPDATE\x10\x05\x42.\n\x1a\x63n.com.glsx.kafka.protocolB\x10\x46\x61keOfflineFence')
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'fence_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\032cn.com.glsx.kafka.protocolB\020FakeOfflineFence'
_OPERATIONTYPE._serialized_start=2597
_OPERATIONTYPE._serialized_end=2669
_COMMONRESULT._serialized_start=30
_COMMONRESULT._serialized_end=93
_GPSLOC._serialized_start=95
_GPSLOC._serialized_end=129
_GPSLOCDETAIL._serialized_start=132
_GPSLOCDETAIL._serialized_end=261
_FENCEINFO._serialized_start=264
_FENCEINFO._serialized_end=637
_FENCEDEVICEFAMILYINFO._serialized_start=640
_FENCEDEVICEFAMILYINFO._serialized_end=799
_FENCEMEMBER._serialized_start=801
_FENCEMEMBER._serialized_end=906
_TRIGGERDEVICEFAMILYINFO._serialized_start=908
_TRIGGERDEVICEFAMILYINFO._serialized_end=982
_TRIGGERINFO._serialized_start=985
_TRIGGERINFO._serialized_end=1265
_FAKEOFFLINEINFO._serialized_start=1268
_FAKEOFFLINEINFO._serialized_end=1566
_BODERALARM._serialized_start=1568
_BODERALARM._serialized_end=1639
_OPTFENCEINFO._serialized_start=1641
_OPTFENCEINFO._serialized_end=1754
_OPTFENCEMEMBER._serialized_start=1756
_OPTFENCEMEMBER._serialized_end=1875
_OPTFAMILYFENCEINFO._serialized_start=1878
_OPTFAMILYFENCEINFO._serialized_end=2015
_OPTFENCEREQ._serialized_start=2017
_OPTFENCEREQ._serialized_end=2136
_OPTFENCERESP._serialized_start=2139
_OPTFENCERESP._serialized_end=2294
_TRIGGERINFORESP._serialized_start=2296
_TRIGGERINFORESP._serialized_end=2362
_TRIGGERTESTDRIVEINFO._serialized_start=2364
_TRIGGERTESTDRIVEINFO._serialized_end=2480
_TRIGGERINSTOREINFO._serialized_start=2482
_TRIGGERINSTOREINFO._serialized_end=2595
# @@protoc_insertion_point(module_scope)
syntax = "proto2";
package FspOffline;
option java_package = "cn.com.glsx.FspOffline.proto";
option java_outer_classname = "FspOffline";
enum UserOptType
{
ADD_USER_INFO = 1;
GET_USER_INFO = 2;
UPDATE_USER_INFO = 3;
DELETE_USER_INFO = 4;
}
message ResideExtendInfo
{
optional string location = 1; //常驻地坐标(经度与纬度组合 eq:114.025974,22.546054)
optional string address = 2; //常驻地地址
optional int32 distance = 3; //常驻地与提报地址距离
optional int32 totalStayDuration = 4; //总停留时长
optional int32 totalStayTimes = 5; //总停留时间
}
message UserMatchInfo
{
required uint64 userId = 1; //唯一标识
required int32 apType = 2; //设备类型(OBD:2 DDbox:4 Tracker:5)
optional int32 addrMatchResult = 3; //匹配结果(1:超出距离 2:匹配结果不一致 3.匹配结果一致 4.无足够gps轨迹点 5:无常驻地 6:无提报地址 7:地址解析失败 8:坐标校准失败 9:坐标反校准失败)
optional string registerAddress = 4; //提报地址
optional string registerLocation= 5; //提报地址坐标(经度与纬度组合 eq:114.025974,22.546054)
repeated ResideExtendInfo resideInfos = 6; //常驻地信息
optional int32 status = 7; //常驻地状态(0:正常 1:异常)
optional uint32 beginTime = 8; //计算起始时间
optional uint32 endTime = 9; //计算结束时间
optional uint32 merchantCode = 10; //门店编码
optional string merchantName = 11; //门店名称
}
message UserBaseInfo
{
required uint64 userId = 1; //唯一标识
required int32 apType = 2; //设备类型(OBD:2 DDbox:4 Tracker:5)
optional uint32 activateDate = 3; //激活日期
optional string registerAddress = 4; //提报地址
optional uint32 merchantCode = 5; //门店编码
optional string merchantName = 6; //门店名称
}
message CustomFspInfo //定制常驻地计算返回
{
required string seqId = 1;
optional int32 serviceType = 2; //1.普通计算 2.匹配常驻地是否异常
repeated UserMatchInfo userMatchInfo = 3;
}
message CycleFspInfo //周期常驻地计算返回
{
optional UserMatchInfo userMatchInfo = 1;
}
message CustomFspReq //定制常驻地计算请求
{
required string seqId = 1;
required int32 serviceType= 2; //1.普通计算 2.匹配常驻地是否异常
required uint32 beginTime = 3;
optional uint32 endTime = 4; //默认为当前时间
required UserBaseInfo userInfo = 5;
}
message CycleFspReq //周期计算请求
{
required UserOptType optType = 1;
repeated UserBaseInfo userInfos = 2;
}
message FspResp
{
required int32 calcType = 2; //计算类型(1:周期计算 2:定制计算)
optional CycleFspInfo cycleFspInfo = 3;
optional CustomFspInfo customFspInfo = 4;
}
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: fsp_offline.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x66sp_offline.proto\x12\nFspOffline\"z\n\x10ResideExtendInfo\x12\x10\n\x08location\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\x10\n\x08\x64istance\x18\x03 \x01(\x05\x12\x19\n\x11totalStayDuration\x18\x04 \x01(\x05\x12\x16\n\x0etotalStayTimes\x18\x05 \x01(\x05\"\x8e\x02\n\rUserMatchInfo\x12\x0e\n\x06userId\x18\x01 \x02(\x04\x12\x0e\n\x06\x61pType\x18\x02 \x02(\x05\x12\x17\n\x0f\x61\x64\x64rMatchResult\x18\x03 \x01(\x05\x12\x17\n\x0fregisterAddress\x18\x04 \x01(\t\x12\x18\n\x10registerLocation\x18\x05 \x01(\t\x12\x31\n\x0bresideInfos\x18\x06 \x03(\x0b\x32\x1c.FspOffline.ResideExtendInfo\x12\x0e\n\x06status\x18\x07 \x01(\x05\x12\x11\n\tbeginTime\x18\x08 \x01(\r\x12\x0f\n\x07\x65ndTime\x18\t \x01(\r\x12\x14\n\x0cmerchantCode\x18\n \x01(\r\x12\x14\n\x0cmerchantName\x18\x0b \x01(\t\"\x89\x01\n\x0cUserBaseInfo\x12\x0e\n\x06userId\x18\x01 \x02(\x04\x12\x0e\n\x06\x61pType\x18\x02 \x02(\x05\x12\x14\n\x0c\x61\x63tivateDate\x18\x03 \x01(\r\x12\x17\n\x0fregisterAddress\x18\x04 \x01(\t\x12\x14\n\x0cmerchantCode\x18\x05 \x01(\r\x12\x14\n\x0cmerchantName\x18\x06 \x01(\t\"e\n\rCustomFspInfo\x12\r\n\x05seqId\x18\x01 \x02(\t\x12\x13\n\x0bserviceType\x18\x02 \x01(\x05\x12\x30\n\ruserMatchInfo\x18\x03 \x03(\x0b\x32\x19.FspOffline.UserMatchInfo\"@\n\x0c\x43ycleFspInfo\x12\x30\n\ruserMatchInfo\x18\x01 \x01(\x0b\x32\x19.FspOffline.UserMatchInfo\"\x82\x01\n\x0c\x43ustomFspReq\x12\r\n\x05seqId\x18\x01 \x02(\t\x12\x13\n\x0bserviceType\x18\x02 \x02(\x05\x12\x11\n\tbeginTime\x18\x03 \x02(\r\x12\x0f\n\x07\x65ndTime\x18\x04 \x01(\r\x12*\n\x08userInfo\x18\x05 \x02(\x0b\x32\x18.FspOffline.UserBaseInfo\"d\n\x0b\x43ycleFspReq\x12(\n\x07optType\x18\x01 \x02(\x0e\x32\x17.FspOffline.UserOptType\x12+\n\tuserInfos\x18\x02 \x03(\x0b\x32\x18.FspOffline.UserBaseInfo\"}\n\x07\x46spResp\x12\x10\n\x08\x63\x61lcType\x18\x02 \x02(\x05\x12.\n\x0c\x63ycleFspInfo\x18\x03 \x01(\x0b\x32\x18.FspOffline.CycleFspInfo\x12\x30\n\rcustomFspInfo\x18\x04 \x01(\x0b\x32\x19.FspOffline.CustomFspInfo*_\n\x0bUserOptType\x12\x11\n\rADD_USER_INFO\x10\x01\x12\x11\n\rGET_USER_INFO\x10\x02\x12\x14\n\x10UPDATE_USER_INFO\x10\x03\x12\x14\n\x10\x44\x45LETE_USER_INFO\x10\x04\x42*\n\x1c\x63n.com.glsx.FspOffline.protoB\nFspOffline')
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'fsp_offline_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\034cn.com.glsx.FspOffline.protoB\nFspOffline'
_USEROPTTYPE._serialized_start=1101
_USEROPTTYPE._serialized_end=1196
_RESIDEEXTENDINFO._serialized_start=33
_RESIDEEXTENDINFO._serialized_end=155
_USERMATCHINFO._serialized_start=158
_USERMATCHINFO._serialized_end=428
_USERBASEINFO._serialized_start=431
_USERBASEINFO._serialized_end=568
_CUSTOMFSPINFO._serialized_start=570
_CUSTOMFSPINFO._serialized_end=671
_CYCLEFSPINFO._serialized_start=673
_CYCLEFSPINFO._serialized_end=737
_CUSTOMFSPREQ._serialized_start=740
_CUSTOMFSPREQ._serialized_end=870
_CYCLEFSPREQ._serialized_start=872
_CYCLEFSPREQ._serialized_end=972
_FSPRESP._serialized_start=974
_FSPRESP._serialized_end=1099
# @@protoc_insertion_point(module_scope)
//***********************************************************************
//* 文件名:gps_alarm_notify.proto
//* 版本记录:
//* 版本号 时间 作者 说明
//* 1.0 2019-01-08
//************************************************************************
syntax = "proto2";
package gps_alarm_notify;
//for Java package and class name
option java_package = "com.glsx.alarmkafka";
option java_outer_classname = "alarmkafka";
enum GPS_ALARM_TYPE
{
COLLISION_ALARM_TYPE = 0x01; //碰撞告警
LOW_VOLTAGE_ALARM_TYPE = 0x02; //低电压告警
BLACKOUT_ALARM_TYPE = 0x03; //断电告警
PSEUDOBS_ALARM_TYPE = 0x04; //伪基站报警
SEPERATE_ALARM_TYPE = 0x05; //子母分离报警
SHOCK_ALARM_TYPE = 0x06; //震动报警
}
////////////////////////////////////////////////////
//kafka
//发送包括碰撞告警在内的告警数据通知,供业务使用
//topic: gps_alarm_notify
////////////////////////////////////////////////////
message AlarmNotifyReq {
required string devicesn = 1; //设备标识
required uint32 gpstime = 2; //服务器时间 1970之后的秒数
required int32 longitude = 3; //报警位置:经度
required int32 latitude = 4; //报警位置:纬度
required int32 alarmtype = 5; //告警类型, 定义见GPS_ALARM_TYPE
required int32 alarmdata = 6; //报警数据
required int32 speed = 7; //报警数据
optional float grange = 8; //gsensor值
optional string gsensors = 9; //gsensor序列
optional float accurate = 10; //准确率
optional string task_id = 11; //视频关联id,目前只有普方达行车记录仪有此字段
}
//topic: 3rd_device_onekeyhelpres //toWeb,碰撞视频算法结果
//topic: recsvr_collision_media //to视频碰撞检测算法
message OneKeyHelpRes{
required uint32 mtype = 1;
required string url = 2;
required string task_id = 3;
optional string result = 4; // 判别结果
optional string video_result = 5; // 视频结果
optional string audio_result = 6; // 音频结果
optional string yolo_path = 7; // YOLO本地路径
}
//topic: 3rd_device_onekeyhelp 一键救援
message OnekeyHelp{
required string imei = 1;
required string troubletype = 2;
required uint32 troubletime = 3;
required uint32 longitude = 4; //经度
required uint32 latitude = 5; //纬度
required string task_id = 6;
}
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gps_alarm_ntofiy.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16gps_alarm_ntofiy.proto\x12\x10gps_alarm_notify\"\xd2\x01\n\x0e\x41larmNotifyReq\x12\x10\n\x08\x64\x65vicesn\x18\x01 \x02(\t\x12\x0f\n\x07gpstime\x18\x02 \x02(\r\x12\x11\n\tlongitude\x18\x03 \x02(\x05\x12\x10\n\x08latitude\x18\x04 \x02(\x05\x12\x11\n\talarmtype\x18\x05 \x02(\x05\x12\x11\n\talarmdata\x18\x06 \x02(\x05\x12\r\n\x05speed\x18\x07 \x02(\x05\x12\x0e\n\x06grange\x18\x08 \x01(\x02\x12\x10\n\x08gsensors\x18\t \x01(\t\x12\x10\n\x08\x61\x63\x63urate\x18\n \x01(\x02\x12\x0f\n\x07task_id\x18\x0b \x01(\t\"\x8b\x01\n\rOneKeyHelpRes\x12\r\n\x05mtype\x18\x01 \x02(\r\x12\x0b\n\x03url\x18\x02 \x02(\t\x12\x0f\n\x07task_id\x18\x03 \x02(\t\x12\x0e\n\x06result\x18\x04 \x01(\t\x12\x14\n\x0cvideo_result\x18\x05 \x01(\t\x12\x14\n\x0c\x61udio_result\x18\x06 \x01(\t\x12\x11\n\tyolo_path\x18\x07 \x01(\t\"z\n\nOnekeyHelp\x12\x0c\n\x04imei\x18\x01 \x02(\t\x12\x13\n\x0btroubletype\x18\x02 \x02(\t\x12\x13\n\x0btroubletime\x18\x03 \x02(\r\x12\x11\n\tlongitude\x18\x04 \x02(\r\x12\x10\n\x08latitude\x18\x05 \x02(\r\x12\x0f\n\x07task_id\x18\x06 \x02(\t*\xa7\x01\n\x0eGPS_ALARM_TYPE\x12\x18\n\x14\x43OLLISION_ALARM_TYPE\x10\x01\x12\x1a\n\x16LOW_VOLTAGE_ALARM_TYPE\x10\x02\x12\x17\n\x13\x42LACKOUT_ALARM_TYPE\x10\x03\x12\x17\n\x13PSEUDOBS_ALARM_TYPE\x10\x04\x12\x17\n\x13SEPERATE_ALARM_TYPE\x10\x05\x12\x14\n\x10SHOCK_ALARM_TYPE\x10\x06\x42!\n\x13\x63om.glsx.alarmkafkaB\nalarmkafka')
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'gps_alarm_ntofiy_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\023com.glsx.alarmkafkaB\nalarmkafka'
_GPS_ALARM_TYPE._serialized_start=524
_GPS_ALARM_TYPE._serialized_end=691
_ALARMNOTIFYREQ._serialized_start=45
_ALARMNOTIFYREQ._serialized_end=255
_ONEKEYHELPRES._serialized_start=258
_ONEKEYHELPRES._serialized_end=397
_ONEKEYHELP._serialized_start=399
_ONEKEYHELP._serialized_end=521
# @@protoc_insertion_point(module_scope)
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!