Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lat, long variants on latitude, longitude #18

Open
nvkelso opened this issue Jan 5, 2012 · 1 comment
Open

lat, long variants on latitude, longitude #18

nvkelso opened this issue Jan 5, 2012 · 1 comment
Assignees
Milestone

Comments

@nvkelso
Copy link
Collaborator

nvkelso commented Jan 5, 2012

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'])
@ghost ghost assigned nvkelso Jan 10, 2012
@nvkelso nvkelso closed this as completed Jan 10, 2012
@nvkelso nvkelso reopened this Jan 11, 2012
@nvkelso
Copy link
Collaborator Author

nvkelso commented Jan 11, 2012

Hmm, the new casing behavior and Mike's refactor of this logic broke this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant