-
Notifications
You must be signed in to change notification settings - Fork 664
Add address details for reverse Nominatim #285
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
Add address details for reverse Nominatim #285
Conversation
|
Changing default to True to preserve backward-compatibility. |
KostyaEsmukov
left a comment
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.
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!
geopy/geocoders/osm.py
Outdated
| .. versionadded:: 1.0.0 | ||
| :param bool addressdetails: Whether or not to include address details, | ||
| such as city, county, state, etc. in *Location.raw* |
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.
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.
|
Changes done. Can you check the test is fine ? I'm not familiar with geopy's tests. |
KostyaEsmukov
left a comment
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.
Yup, this is fine. Merging. Thank you!
|
YW, thanks for the quick merge ! |
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.