Skip to content

Add support for the 'permanently_closed' attribute in Place responses.#177

Merged
domesticmouse merged 1 commit intogooglemaps:masterfrom
amyboyd:master
Sep 6, 2016
Merged

Add support for the 'permanently_closed' attribute in Place responses.#177
domesticmouse merged 1 commit intogooglemaps:masterfrom
amyboyd:master

Conversation

@amyboyd
Copy link
Copy Markdown
Contributor

@amyboyd amyboyd commented Sep 5, 2016

This attribute is only included in the Places response if the place has shut down. It is not included if the place is still open.

assertEquals(placeDetails.rating, 4.4, 0.1);

// Permanently closed:
assertFalse(placeDetails.permanentlyClosed);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you please add a test that has permanentlyClosed set to true?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@domesticmouse Sure - done and PR updated!

@domesticmouse domesticmouse merged commit cfa00d2 into googlemaps:master Sep 6, 2016
@domesticmouse
Copy link
Copy Markdown
Contributor

Thanks! I'll roll a new release in the next couple of weeks.

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.

2 participants