Skip to content

Commit

Permalink
fix problem with negative (South) Latitude
Browse files Browse the repository at this point in the history
  • Loading branch information
zserg committed Dec 25, 2015
1 parent ea04b77 commit 95923e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elodie/media/photo.py
Expand Up @@ -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
Expand Down

0 comments on commit 95923e7

Please sign in to comment.