The requested origin and destination are used as a filter when selecting the set of available options by querying the database.
the requested arrival or departure time-if specified-is used in the corresponding attribute's evaluation function to give a higher score to flights that are closer to the specified time.