directionNum property
The direction of movement regardless of which track the train is on.
Valid values are 1 or 2. Generally speaking, trains with direction 1 are northbound/eastbound, while trains with direction 2 are southbound/westbound.
Implementation
final int directionNum;