Table of Contents

Class TimetableStop

Namespace
DotBahn.Timetables.Models
Assembly
DotBahn.Timetables.dll

A stop in a timetable, representing a train's arrival and/or departure at a station.

public class TimetableStop
Inheritance
TimetableStop
Inherited Members

Constructors

TimetableStop()

public TimetableStop()

Properties

Arrival

Arrival event, if the train arrives at this station.

public TrainEvent? Arrival { get; init; }

Property Value

TrainEvent

Departure

Departure event, if the train departs from this station.

public TrainEvent? Departure { get; init; }

Property Value

TrainEvent

Id

Unique stop identifier consisting of:

  • A daily trip ID that uniquely identifies a trip within one day (maybe negative)
  • A 6-digit date specifier (YYMMdd) indicating the planned departure date from the start station
  • An index indicating the position of the stop within the trip
public required string Id { get; init; }

Property Value

string

Examples

-7874571842864554321-140331-11

IsArrivalOnly

Whether this is an arrival-only stop (train terminates here).

public bool IsArrivalOnly { get; }

Property Value

bool

IsDepartureOnly

Whether this is a departure-only stop (train originates here).

public bool IsDepartureOnly { get; }

Property Value

bool

IsThrough

Whether this is a through stop (train both arrives and departs).

public bool IsThrough { get; }

Property Value

bool

Messages

Messages associated with this stop.

public IEnumerable<TimetableMessage> Messages { get; init; }

Property Value

IEnumerable<TimetableMessage>

Train

Train identification information.

public required TrainLabel Train { get; init; }

Property Value

TrainLabel