bool HasMajorAirports(Trajectory &trajectory, std::vector<std::string> &airports) { return std::binary_search(airports.begin(),airports.end(), trajectory.front().string_property("arr")) && std::binary_search(airports.begin(),airports.end(), trajectory.front().string_property("dep")); }
bool IsStraight(Trajectory &trajectory) { return boost::geometry::length(trajectory)/boost::geometry::distance(trajectory.front(),trajectory.back()) < 1.05; }