Esempio n. 1
0
        public Waypoint(Position pos, WaypointInstruction instr)
        {
            pos.AssertNotNull();
            instr.AssertNotNull();

            _position = pos;
            _instruction = instr;
        }
Esempio n. 2
0
        public double CalculateDistance(Position p1, Position p2)
        {
            p1.AssertNotNull();
            p2.AssertNotNull();

            var distance = GeoCodeCalculator.CalculateDistanceInMeters(p1.Latitude, p1.Longitude,
                p2.Latitude, p2.Longitude);
            return distance;
        }