Profiles

Here’s a list of all HaFAS deployments pyHaFAS supports. If the profileG has any differences, they will be mentioned here. Also, available and default productsG are defined.

Deutsche Bahn (DB)

Usage

from pyhafas.profile import DBProfile
client = HafasClient(DBProfile())

Available Products

pyHaFAS Internal Name

Example Train Type

long_distance_express

ICE

long_distance

IC/EC

regional_express

RE/IR

regional

RB

suburban

S

bus

BUS

ferry

F

subway

U

tram

T

taxi

Group Taxi

Default Products

All available products specified above are enabled by default.

Other interesting Stuff

Verkehrsverbund Süd-Niedersachsen (VSN)

Usage

from pyhafas.profile import VSNProfile
client = HafasClient(VSNProfile())

Available Products

pyHaFAS Internal Name

Example Train Type

long_distance_express

ICE

long_distance

IC/EC/CNL

regional_express

RE/IR

regional

NV (e.g. RB)

suburban

S

bus

BUS

ferry

F

subway

U

tram

T

anruf_sammel_taxi

Group Taxi

Default Products

All available products specified above are enabled by default.

Specialities

  • The max_trips filter in station board (departures/arrival) requests seems not to work