-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Flights agent - Add support for choice of carrier/alliance #1878
Conversation
Defaults set to blank and properly ignored by the api - does not create any backward compatibility issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
|
||
The `origin` and `destination` options require an [airport code](http://www.expedia.com/daily/airports/AirportCodes.asp). | ||
|
||
All the default options must exist. For `infantInSeatCount`, `infantInLapCount`, `seniorCount`, and `childCount`, leave them to the default value of `0` if you do not need them. | ||
|
||
Make sure `date` and `return_date` is in this date format: `YYYY-MM-DAY`. | ||
Make sure `date` and `return_date` is in this date format: `YYYY-MM-DAY`. You can use liquid formatting to dynamically assign a date in the future (i.e. 7 days from time of run). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea about the future dating. Maybe include an example of this?
|
||
You can choose one way tickets only by setting `roundtrip` to `false`. | ||
|
||
You can limit to specific airlines using the permittedCarrier option and the two-letter IATA airline codes of choice. [https://en.wikipedia.org/wiki/List_of_airline_codes](https://en.wikipedia.org/wiki/List_of_airline_codes). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you include more than one? If so, in what format?
|
||
You can choose one way tickets only by setting `roundtrip` to `false`. | ||
|
||
You can limit to specific airlines using the permittedCarrier option and the two-letter IATA airline codes of choice. [https://en.wikipedia.org/wiki/List_of_airline_codes](https://en.wikipedia.org/wiki/List_of_airline_codes). | ||
|
||
You can alternately limit your search to specific airline alliances among the three Google-recognized ones. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add: "with the alliance
option`"
As per @cantino's suggestions.
Thanks for the feedback @cantino. I've updated w/ your suggestions. |
|
||
The `origin` and `destination` options require an [airport code](http://www.expedia.com/daily/airports/AirportCodes.asp). | ||
|
||
All the default options must exist. For `infantInSeatCount`, `infantInLapCount`, `seniorCount`, and `childCount`, leave them to the default value of `0` if you do not need them. | ||
|
||
Make sure `date` and `return_date` is in this date format: `YYYY-MM-DAY`. | ||
Make sure `date` and `return_date` is in this date format: `YYYY-MM-DAY`. You can use liquid formatting to dynamically assign a date in the future. For example to set the departure date 21 days from today, you'd use {% assign current_date = 'now' | date: '%s' %}{{current_date | plus: 1814000 | date: '%Y-%m-%d'}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put backticks (`) around the example, so it shows up as code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Sorry for the delay, just one more small change :) |
fixed :) |
Looks good, thanks! |
Defaults set to blank and properly ignored by the api - does not create any backward compatibility issues.