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;
        }
Esempio n. 3
0
 public double GetDistanceForLeg(Position position1, Position position2)
 {
     var distance = DistanceCalculator.CalculateDistance(position1, position2);
     return distance;
 }