Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Serphentas
Copy link
Contributor

Quick PR for #284

Actually forward geocoding already had the feature, but for some reason reverse geocoding always includes full address details. The default is now set to False.

@Serphentas
Copy link
Contributor Author

Changing default to True to preserve backward-compatibility.

Copy link
Member

@KostyaEsmukov KostyaEsmukov left a comment

Choose a reason for hiding this comment

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

Thanks! Could you please add a test for this change which ensures that with addressdetails=False there's indeed no extra info returned?

Besides missing tests it looks good to me!

.. versionadded:: 1.0.0
:param bool addressdetails: Whether or not to include address details,
such as city, county, state, etc. in *Location.raw*
Copy link
Member

Choose a reason for hiding this comment

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

Could you please indent this line? In a similar way as above.

Also it'd be great if you could add the .. versionadded:: 1.14.0 line below.

@KostyaEsmukov KostyaEsmukov added this to the 1.14 milestone Apr 25, 2018
@Serphentas
Copy link
Contributor Author

Changes done.

Can you check the test is fine ? I'm not familiar with geopy's tests.

Copy link
Member

@KostyaEsmukov KostyaEsmukov left a comment

Choose a reason for hiding this comment

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

Yup, this is fine. Merging. Thank you!

@KostyaEsmukov KostyaEsmukov merged commit 46798f4 into geopy:master Apr 26, 2018
@Serphentas
Copy link
Contributor Author

YW, thanks for the quick merge !

@Serphentas Serphentas deleted the 284-add-nominatim-addr-details branch April 26, 2018 21:07
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