From 95923e7942a63fd00d6c302f6b6539376f1206f7 Mon Sep 17 00:00:00 2001 From: zserg Date: Fri, 25 Dec 2015 12:05:38 +0300 Subject: [PATCH] fix problem with negative (South) Latitude --- elodie/media/photo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elodie/media/photo.py b/elodie/media/photo.py index 9b10a75d..55d8b003 100644 --- a/elodie/media/photo.py +++ b/elodie/media/photo.py @@ -79,7 +79,7 @@ def get_coordinate(self, type='latitude'): londir = -1 coords = exif[key].value - if(key == 'latitude'): + if(type == 'latitude'): return float(str(LatLon.Latitude(degree=coords[0], minute=coords[1], second=coords[2]))) * latdir else: return float(str(LatLon.Longitude(degree=coords[0], minute=coords[1], second=coords[2]))) * londir