bsd.ice 1.07 KB
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);
    };
};