HSLdevcom / navigator-server

Realtime APIs for public transport
http://dev.hsl.fi
Other
9 stars 5 forks source link

Add support for mocking LIJ real-time interfaces #9

Open hannesj opened 9 years ago

hukka commented 9 years ago

Needs LIJ-specifications.

tuukka commented 9 years ago

Spec draft, MQTT protocol, topic: /vehicle/[Vehicle Type]/[Line Id]/[Direction]/[Next Stop]/[Geohash] where Geohash contains the coordinates zipped: e.g. 59.987546,23.661391 becomes 59,23/96/86/71/53/49/61 Fields in the message, JSON format: linename=Line, dir=Direction, vid=Vehicle Id, oper=Operator, veh=Vehicle number, tst=Timestamp as YYYY-MM-DDTHH:mm:ssZ, tsi=Timestamp as seconds since epoch, jrn=Journey, spd=Speed m/s, hdg=Heading in degrees, lat=Lat, long=Lon, dvjid=DatedVehicleJourney, dl=Delay in seconds, odo=Odometer, oday=Operating day, jrn=Journey number, line=Line id, start=Departure time