migurski/Dymo — Issue #18: lat, long variants on latitude, longitude
Author: nvkelso
Created: 2012-01-05 23:21:10+00:00
State: open

prepare places bit:

try:
loc = Location(float(place['latitude']), float(place['longitude']))
except KeyError:
try:
loc = Location(float(place['lat']), float(place['long']))
except KeyError:
loc = Location(float(place['lat']), float(place['lon']))

__init bit

try:
lat = float(row['latitude'])
lon = float(row['longitude'])
except KeyError:
try:
lat = float(row['lat'])
lon = float(row['long'])
except KeyError:
lat = float(row['lat'])
lon = float(row['lon'])