OebbDotNet 0.1.20174.19082
dotnet add package OebbDotNet --version 0.1.20174.19082
NuGet\Install-Package OebbDotNet -Version 0.1.20174.19082
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OebbDotNet" Version="0.1.20174.19082" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OebbDotNet" Version="0.1.20174.19082" />
<PackageReference Include="OebbDotNet" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OebbDotNet --version 0.1.20174.19082
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OebbDotNet, 0.1.20174.19082"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=OebbDotNet&version=0.1.20174.19082
#tool nuget:?package=OebbDotNet&version=0.1.20174.19082
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Austrian Railways (ÖBB) .NET API Client
.NET Client library for Austrian Railways (ÖBB) API: Search stations, connections, offers
Example
The following example finds connections and offers from Wien Hbf. to L'viv (Львів).
using var client = new OebbApiClient();
var from = (await client.QueryStationsAsync("Wien Hbf")).First();
var to = (await client.QueryStationsAsync("Lviv")).First();
var date = DateTime.Today;
var travelAction = await client.CreateTravelActionAsync(from, to, date);
var connections = await client.GetConnectionsAsync(travelAction, new List<RequestModels.Passenger>()
{
new RequestModels.Passenger{ Id = 1742832923 }
}, 5);
var offers = await client.GetOffersAsync(connections);
Notes:
- The usage of Passenger ID is not entirely clear. For this example I just took an ID that I've seen during my explorations on the ÖBB Ticket shop.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.20174.19082 | 124 | 3/27/2025 |
0.1.20173.15743 | 458 | 3/26/2025 |