CorrAccLoc
|
Returns the current crash's location along the current diagram corridor. For a milepost corridor, this function returns the value stored in the mile_1 field. For a hundred-block corridor, this function returns the value stored in the block_1 or block_2 field depending on which street matches the primary street in corridor study.
|
NBArriving, NBDeparting, SBArriving, SBDeparting, EBArriving, EBDeparting, WBArriving, WBDeparting
|
These functions perform some calculations to determine which side of the intersection an crash occurred on. The following steps are taken to determine this value:
1. Both of the vehicles' direction of travel values are examined to determine the overall direction of travel for the crash. This will indicate which function will return true. The following logic is used for this calculation:
a) If both vehicles were traveling in the same direction that direction is the overall direction of travel for the crash.
b) If only one of the directions was reported, it becomes the overall direction of travel for the crash.
c) If neither of the above conditions is met, then none of these functions will return true.
2. The value of _DirFromInt is examined. If such a value exists and specifies a direction from intersection for this crash, that value is used to determine whether the vehicle was "arriving" or "departing" the intersection. For example, if the overall direction of travel for the crash is Northbound and the direction from intersection is indicated to be North, then NBDeparting will return true.
3. If the no value exists for _DirFromInt, the crash is assumed to be "arriving".
|
North, South, East, West, NoDir
|
These are constants representing North, South, East and West. These constants apply to Veh1Dir and Veh2Dir
|