CodeforSouth / miami-transit-api

:zap: :sleeping: miami-transit-api (previous version with test endpoints)
http://miami-transit-api.herokuapp.com
10 stars 5 forks source link

Need a POST interface for GPS tracker data #14

Open qtrandev opened 8 years ago

qtrandev commented 8 years ago

GPS trackers are constantly sending data to the server. Save this data to allow LeafletTransit project to get the last 10 positions or current positions.

LostLucidity commented 8 years ago

I will use my nascent Ruby on Rails skills to work on this.

qtrandev commented 8 years ago

Right now the bus tracking GPS data comes in like this:

    records[i].properties.BusID,
    records[i].properties.lat,
    records[i].properties.lon,
    records[i].properties.speed,
    records[i].properties.bustime

So just those 5 properties are sent by the Ruby On Rails server

LostLucidity commented 8 years ago

GPS {"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":["25.8042","-80.1952"]},"properties":{"lat":"25.8042","lon":"-80.1952","bustime":"2015-10-12 18:57:38","speed":"0.13","BusID":"1"}}]}

qtrandev commented 8 years ago

Issue is same as #11 (Allow GPS Tracker data to be posted directly to miami-transit-api)