Skip to content

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Oct 30, 2019

Implements #372

Screen Shot 2019-10-30 at 2 34 02 PM

We could separately add support for a pandas DataFrame with a 'geohash' column or more simply upgrade such a DataFrame to a geopandas DataFrame by converting the 'geohash' column to a 'geometry' column.

Copy link
Member

@jbednar jbednar left a comment

Choose a reason for hiding this comment

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

Looks great! Needs some examples in the docs, including the above example but also instantiating points with the centroid of the geohash rectangle, and indicating that the dependent library needs to be installed.

def geohash_to_polygon(geo):
"""
:param geo: String that represents the geohash.
:return: Returns a Shapely's Polygon instance that represents the geohash.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
:return: Returns a Shapely's Polygon instance that represents the geohash.
:return: Returns a Shapely Polygon instance that represents the geohash.

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