From: inactivist Date: Tue, 13 Nov 2012 22:48:15 +0000 (-0800) Subject: Fixing BoundingBox.corner() - was returning incorrect data. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=490cc6b3e01f03f822f68b35bd6bf47b289ecc78;p=tweepy.git Fixing BoundingBox.corner() - was returning incorrect data. --- diff --git a/tweepy/models.py b/tweepy/models.py index cae46ee..fe5521f 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -338,19 +338,23 @@ class BoundingBox(Model): def origin(self): """ - Return longitude, latitude of northwest corner of bounding box, as - tuple. This assumes that bounding box is always a rectangle, which + Return longitude, latitude of southwest (bottom, left) corner of + bounding box, as a tuple. + + This assumes that bounding box is always a rectangle, which appears to be the case at present. """ return tuple(self.coordinates[0][0]) def corner(self): """ - Return longitude, latitude of southeast corner of bounding box, as - tuple. This assumes that bounding box is always a rectangle, which + Return longitude, latitude of northeast (top, right) corner of + bounding box, as a tuple. + + This assumes that bounding box is always a rectangle, which appears to be the case at present. """ - return tuple(self.coordinates[0][1]) + return tuple(self.coordinates[0][2]) class Place(Model):