public Waypoint(Position pos, WaypointInstruction instr) { pos.AssertNotNull(); instr.AssertNotNull(); _position = pos; _instruction = instr; }
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; }
public double GetDistanceForLeg(Position position1, Position position2) { var distance = DistanceCalculator.CalculateDistance(position1, position2); return distance; }