Open hannesj opened 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
Needs LIJ-specifications.