fsp_online.ice 1017 Bytes
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);
    };
};