stevenheidel / encore-backend

NO LONGER USED - Encore iPhone app API server written in Rails
https://www.crunchbase.com/organization/encore-fm#/entity
1 stars 0 forks source link

Coordinates in venue details are backwards (returning longitude then latitude, should be returning the other way around) #25

Closed simonbromberg closed 11 years ago

simonbromberg commented 11 years ago

Change the array into a dictionary with the keys "latitude" and "longitude"

For example, right now the Molson Amp. returns the coordinates:

coordinates =         (
        "-79.415054",
        "43.629188"
    );

However, if you copy and paste -79.415054,43.629188 into Google maps you get some place near Antarctica.

Easiest fix is to reverse, but for consistency with the way @stevenheidel's been doing it probably best to do it as a dictionary like this:

"latitude": 43.670906, "longitude": -79.393331

Sorry I didn't notice it before.

stevenheidel commented 11 years ago

@simonbromberg - let me know when you want me to deploy this to staging

simonbromberg commented 11 years ago

Did you update the api documentation? Still looks like an array. @stevenheidel

stevenheidel commented 11 years ago

Updated API, deployed to staging.