| get_general_flights_infoA | Get general/comprehensive flight information for N flights for a given origin, destination, and departure date. If the user wants to do a round-trip,
you will need to make two one-way trip calls. Args:
origin (str): The origin airport IATA code (ex: "ATL", "SCL", "JFK").
destination (str): The destination airport IATA code (ex: "DTW", "ICN", "LIR").
departure_date (str): The departure date in YYYY-MM-DD format.
trip_type (str, optional): The type of trip ("one-way" or "round-trip" only). Defaults to "one-way".
seat (str, optional): The type of seat ("economy", "premium-economy", "business", or "first" only). Defaults to "economy".
adults (int, optional): The number of adults. Defaults to 1.
children (int, optional): The number of children. Defaults to 0.
infants_in_seat (int, optional): The number of infants in a seat. Defaults to 0.
infants_lap (int, optional): The number of infants on a lap. Defaults to 0.
n_flights (int, optional): The number of flights to return. Defaults to 25.
Returns:
list[str]: A list of flight information strings.
|
| get_cheapest_flightsA | Get the cheapest flight information for a given origin, destination, and departure date. If the user wants to do a round-trip,
you will need to make two one-way trip calls. Args:
origin (str): The origin airport IATA code (ex: "ATL", "SCL", "JFK").
destination (str): The destination airport IATA code (ex: "DTW", "ICN", "LIR").
departure_date (str): The departure date in YYYY-MM-DD format.
trip_type (str, optional): The type of trip ("one-way" or "round-trip" only). Defaults to "one-way".
seat (str, optional): The type of seat ("economy", "premium-economy", "business", or "first" only). Defaults to "economy".
adults (int, optional): The number of adults. Defaults to 1.
children (int, optional): The number of children. Defaults to 0.
infants_in_seat (int, optional): The number of infants in a seat. Defaults to 0.
infants_lap (int, optional): The number of infants on a lap. Defaults to 0.
Returns:
list[str]: A list of flight information strings.
|
| get_best_flightsA | Get the best flights as determined by Google Flights for a given origin, destination, and departure date. If the user wants to do a round-trip,
you will need to make two one-way trip calls. Args:
origin (str): The origin airport IATA code (ex: "ATL", "SCL", "JFK").
destination (str): The destination airport IATA code (ex: "DTW", "ICN", "LIR").
departure_date (str): The departure date in YYYY-MM-DD format.
trip_type (str, optional): The type of trip ("one-way" or "round-trip" only). Defaults to "one-way".
seat (str, optional): The type of seat ("economy", "premium-economy", "business", or "first" only). Defaults to "economy".
adults (int, optional): The number of adults. Defaults to 1.
children (int, optional): The number of children. Defaults to 0.
infants_in_seat (int, optional): The number of infants in a seat. Defaults to 0.
infants_lap (int, optional): The number of infants on a lap. Defaults to 0.
Returns:
list[str]: A list of flight information strings.
|
| get_time_filtered_flightsA | Get time-filtered flight information based on the user's preferences for before or after a certain time for a given origin, destination, and departure date. If the user wants to do a round-trip,
you will need to make two one-way trip calls. Args:
state (str): The state of the flight ("before" or "after" only). For before, we do before the target time. For after, we do on or after the target time.
target_time_str (str): The target time in HH:MM AM/PM format (ex: "7:00 PM").
origin (str): The origin airport IATA code (ex: "ATL", "SCL", "JFK").
destination (str): The destination airport IATA code (ex: "DTW", "ICN", "LIR").
departure_date (str): The departure date in YYYY-MM-DD format.
trip_type (str, optional): The type of trip ("one-way" or "round-trip" only). Defaults to "one-way".
seat (str, optional): The type of seat ("economy", "premium-economy", "business", or "first" only). Defaults to "economy".
adults (int, optional): The number of adults. Defaults to 1.
children (int, optional): The number of children. Defaults to 0.
infants_in_seat (int, optional): The number of infants in a seat. Defaults to 0.
infants_lap (int, optional): The number of infants on a lap. Defaults to 0.
Returns:
list[str]: A list of flight information strings.
|