Table of Contents

Class UriWebServicesIdos

Namespace
SunamoUriWebServices
Assembly
SunamoUriWebServices.dll

Provides methods for building IDOS train timetable URLs.

public class UriWebServicesIdos
Inheritance
UriWebServicesIdos
Inherited Members
Extension Methods

Methods

CalculateTargetDate(DateTime)

Calculates the target date for train timetable based on the input date. Train timetables typically change twice a year - after mid-December, we need to look 6 months ahead.

public static DateTime CalculateTargetDate(DateTime inputDate)

Parameters

inputDate DateTime

The date to calculate from.

Returns

DateTime

The calculated target date.

Train(string, string)

Builds an IDOS train connection search URL between two stations.

public static string Train(string departureStation, string arrivalStation)

Parameters

departureStation string

The departure station name.

arrivalStation string

The arrival station name.

Returns

string

The formatted IDOS train search URL.