Skip to content
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

Merged
merged 4 commits into from
Feb 1, 2017
Merged

Google Flights agent - Add support for choice of carrier/alliance #1878

merged 4 commits into from
Feb 1, 2017

Conversation

a10kiloham
Copy link
Contributor

Defaults set to blank and properly ignored by the api - does not create any backward compatibility issues.

bobbysteel added 2 commits January 18, 2017 14:56
Defaults set to blank and properly ignored by the api - does not create any backward compatibility issues.
Copy link
Member

@cantino cantino left a 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).
Copy link
Member

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).
Copy link
Member

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.
Copy link
Member

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.
@a10kiloham
Copy link
Contributor Author

Thanks for the feedback @cantino. I've updated w/ your suggestions.

@a10kiloham a10kiloham changed the title Add support for selecting by carrier and alliance Google Flights agent - Add support for choice of carrier/alliance Jan 25, 2017

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'}}
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@cantino
Copy link
Member

cantino commented Jan 31, 2017

Sorry for the delay, just one more small change :)

@a10kiloham
Copy link
Contributor Author

fixed :)

@cantino
Copy link
Member

cantino commented Feb 1, 2017

Looks good, thanks!

@cantino cantino merged commit c30cb35 into huginn:master Feb 1, 2017
@a10kiloham a10kiloham deleted the patch-4 branch February 3, 2017 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants