requestTrips

suspend fun requestTrips(languageCode: LanguageCode = LanguageCode.DE, origin: PlaceReferenceDto, destination: PlaceReferenceDto, via: PlaceReferenceDto? = null, time: LocalDateTime, isSearchForDepartureTime: Boolean = true, params: TripParams?): Result<TripDeliveryDto>

Request a list of trips

Return

TripDeliveryDto object with related trip information

Parameters

languageCode

The LanguageCode for the desired results, default is LanguageCode.DE

origin

The origin where the trip starts

destination

The destination where the trip ends

via

The via station which the trip should cover

time

The time the trip should start/end

isSearchForDepartureTime

weather to search for trips that arrive at time or leave at time. Set to true if searching for trips that leave at time.

params

The params to get further information on each trip