RailSegments

public final class RailSegments

Parameters

departureTime

The local date and time of the scheduled departure from the departure station, in ISO-8601 date and time format yyyy-MM-ddTHH:mm:ss.SSSZ.

arrivalTime

The local date and time of the scheduled arrival at the destination station, in ISO-8601 date and time format yyyy-MM-ddTHH:mm:ss.SSSZ.

departureStation
arrivalStation
transportationMethod

This attribute represents the specific transportation method by which the passenger is traveling. It captures the mode of transportation used during the Rail product journey, Possible values are: - BUS - The Rail product includes bus transportation for certain segments of the itinerary. - FERRY - The Rail product involves ferry transportation as part of the journey. - PUBLIC_TRANSPORT - The Rail product represents the use of public transportation modes for the journey. - TRAM - The Rail product includes tram transportation as part of the journey. - RAIL - The Rail product specifically utilizes train transportation for the journey. - TRANSFER - The Rail product involves transfers between different modes of transportation. - OTHER - The Rail product utilizes transportation methods not covered by the aforementioned categories.

operatingCompany

Constructors

Link copied to clipboard
public RailSegments RailSegments(OffsetDateTime departureTime, OffsetDateTime arrivalTime, RailwayStationDetails departureStation, RailwayStationDetails arrivalStation, RailSegments.TransportationMethod transportationMethod, RailSegmentsOperatingCompany operatingCompany)

Types

Link copied to clipboard
public final class Builder
Link copied to clipboard

This attribute represents the specific transportation method by which the passenger is traveling. It captures the mode of transportation used during the Rail product journey, Possible values are: - BUS - The Rail product includes bus transportation for certain segments of the itinerary. - FERRY - The Rail product involves ferry transportation as part of the journey. - PUBLIC_TRANSPORT - The Rail product represents the use of public transportation modes for the journey. - TRAM - The Rail product includes tram transportation as part of the journey. - RAIL - The Rail product specifically utilizes train transportation for the journey. - TRANSFER - The Rail product involves transfers between different modes of transportation. - OTHER - The Rail product utilizes transportation methods not covered by the aforementioned categories. Values: BUS,FERRY,PUBLIC_TRANSPORT,RAIL,TRAM,TRANSFER,OTHERS

Properties

Link copied to clipboard
@NotNull()
@Valid()
private final RailwayStationDetails arrivalStation
Link copied to clipboard
Link copied to clipboard
@NotNull()
@Valid()
private final RailwayStationDetails departureStation
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public final static RailSegments.Builder builder()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard