Skip to content

Commit

Permalink
added __hash__
Browse files Browse the repository at this point in the history
  • Loading branch information
buck heroux committed Nov 11, 2014
1 parent dbb32d0 commit 546338f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quadkey/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ def __str__(self):
def __repr__(self):
return self.key

def __hash__(self):
return hash(self.key)

def from_geo(geo, level):
"""
Constucts a quadkey representation from geo and level
Expand Down

0 comments on commit 546338f

Please sign in to comment.