lat, long variants on latitude, longitude
nvkelso opened this issue · comments
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'])
Hmm, the new casing behavior and Mike's refactor of this logic broke this fix.