示例#1
0
        private static int GetDistance(FallLocation efl, FallLocation afl)
        {
            //TODO impliment real one, now it return a random number
            double[] d1ll = { 0, 0 };
            double[] d2ll = { 0, 0 };
            d1ll = bl.GetCoordinate(efl.Adress);
            d2ll = bl.GetCoordinate(afl.Adress);
            Drop d1 = new Drop {
                Estimeated_lat = d1ll[0], Estimeated_log = d1ll[1]
            };
            Drop d2 = new Drop {
                Estimeated_lat = d2ll[0], Estimeated_log = d2ll[1]
            };
            int result = (int)bl.EvaluateDistance(d1, d2);

            return(result);
        }