phases.txt

phases.txt defines phases and the lane and movement type through the intersection, number of lanes, and links to an approach ID as defined in approaches.txt.





phase

phase is a unique identifier for each phase of a traffic signal. It is used to reference the phase in other GTSS files.


approach_id

approach_id is a id number associated with a specific approach for each traffic signal. It is defined in approaches.txt.


signal_id

signal_id is a unique agency specific identifier for each traffic signal. It is used to reference the traffic signal in other GTSS files.


movement_type

movement_type describes the type of movement allowed during the phase, such as “L” for Left Turn, “T” for through. Additional Encodings shown in table below.

Encoding Phase Movement
TThrough
LLeft
LTLeft Through Shared Lane
TLPermissive Left
FYAFlashing Yellow Arrow
UU-Turn
RRight Turn
TRThrough Right
PEDPedestrian


num_of_lanes

num_of_lanes indicates the number of lanes available at the stop bar for the movement during the phase.


ped_phase_enabled

ped_phase_enabled is a boolean value indicating wheather the defined phase includes a pedestrian phase.


is_overlap

is_overlap is a boolean value indicating whether the phase overlaps with another phase. It is used to manage simultaneous movements at the intersection.





Example

phase,approach_id,signal_id,movement_type,num_of_lanes,ped_phase_enabled,is_overlap
1,1,L,2,true,false