Done it, divide the given headway by the average speed converted to metres/sec, so 678 / (63.88 * 1000 / 3600) gives 38.2 I can now usurp the service I've reverse engineered
OK I'm having to do some reverse engineering and have a problem coming up with a conversion. The subject is traffic detectors and the raw data is below. Somehow the figures need to be converted to produce the following:
Occupancy - 0 - straight from the Occupancy field.
Speed - 63.86 - the average speed taking all vehicles into account
Flow - 7 - simply the total of vehicles.
Headway - 38.22 - ???
So can anyone take the figures below and tell me how to compute a headway of 38.22 from them
OK I'm having to do some reverse engineering and have a problem coming up with a conversion. The subject is traffic detectors and the raw data is below. Somehow the figures need to be converted to produce the following:
Occupancy - 0 - straight from the Occupancy field.
Speed - 63.86 - the average speed taking all vehicles into account
Flow - 7 - simply the total of vehicles.
Headway - 38.22 - ???
So can anyone take the figures below and tell me how to compute a headway of 38.22 from them
Code:
<Message Type="Data"> <Body Type="IntegratedData" IntervalTime="300" - seconds DataNumber="759" Utc="1524800100" - seconds since 1/1/1970 MilliSeconds="27"> <Zone ZoneId="1" Occupancy="0" Confidence="8" Length="27" HeadWay="678" Density="1"> <Class ClassNr="1" NumVeh="5" Speed="63" GapTime="400" /> <Class ClassNr="2" NumVeh="2" Speed="66" GapTime="408" /> <Class ClassNr="3" NumVeh="0" Speed="0" GapTime="0" /> </Zone> </Body> </Message>
Comment