Flight Querying - sjc5897/AFRS GitHub Wiki

AFRS allows connected users to query flights. The command for this is info,origin,desination,[connections[,sort-order];.

  • Origin is the 3 letter airport code of the origin. (Boston Logan International Airport is BOS in system)
  • Destination is the 3 letter airport code of the destination.
  • Connections is the number of connections you want.
    • 0 would request only direct flights.
    • 1 would request direct and 1 layover flights.
    • 2 would request direct, 1, and 2 layover flights.
    • This value is optional and defaults to 2.
  • Sort-Order allows you to select the sorting style of the resulting flight list.
    • departure would sort by departure time. Itineraries leaving earlier at the top.
    • arrival would sort by arrival time. Itineraries leaving earlier at the top.
    • airfare would sort by total cost. Cheaper Itineraries being at the top.
    • Sorting Order is optional and defaults to departure.

The output for for this command will be a list of all valid itineraries. These itineraries are validated for time.
The actual output is: info,n,[id,itinerary].

  • n is the number of results
  • id is a created id number for an itinerary. This id number is used in creating a reservation
  • itinerary is the standard display for an itinerary.
  • If any value is invalid the system will return an error.