Backend API that allows for GEO queries against list of CTA stations
bundle exec rake db:recreate
bundle exec rackupgit push origin head:release
ENV=production script/deploycurl "localhost:9292/v1/stations?lat=41.9234183&lng=-87.7021779&buffer=1000"
[
{
"route": "Blue",
"station": "California",
"destination": "O'Hare",
"arrival_time": "2014-05-17T15:33:58-05:00"
},
{
"route": "Blue",
"station": "California",
"destination": "O'Hare",
"arrival_time": "2014-05-17T15:41:49-05:00"
},
{
"route": "Blue",
"station": "California",
"destination": "Forest Park",
"arrival_time": "2014-05-17T15:41:58-05:00"
},
{
"route": "Blue",
"station": "Logan Square",
"destination": "O'Hare",
"arrival_time": "2014-05-17T15:35:58-05:00"
},
{
"route": "Blue",
"station": "Logan Square",
"destination": "Forest Park",
"arrival_time": "2014-05-17T15:37:58-05:00"
},
{
"route": "Blue",
"station": "Logan Square",
"destination": "O'Hare",
"arrival_time": "2014-05-17T15:44:49-05:00"
}
]- Fork it ( https://github.com/ebenoist/arrival-api/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request