From 490cc6b3e01f03f822f68b35bd6bf47b289ecc78 Mon Sep 17 00:00:00 2001 From: inactivist Date: Tue, 13 Nov 2012 14:48:15 -0800 Subject: [PATCH] Fixing BoundingBox.corner() - was returning incorrect data. --- tweepy/models.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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): -- 2.25.1