Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented FPTF type Line and Operator. #50

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tiuub
Copy link

@tiuub tiuub commented Nov 15, 2024

Hi there,

I have implemented FPTF type Line and Operator, like in the original hafas-client JavaScript client.

FPTF Line type includes (like in hafas-client/parse/line.js):

  • id: str,
  • fahrtNr: Optional[str] = None
  • name: Optional[str] = None
  • public: Optional[bool] = True
  • adminCode: Optional[str] = None
  • productName: Optional[str] = None
  • mode: Optional[Mode] = Mode.TRAIN
  • product: Optional[str] = None
  • operator: Optional[Operator] = None
  • addName: Optional[str] = None

FPTF Operator type includes (like in hafas-client/parse/operator.js):

  • id: str
  • name: Optional[str] = None

Deprecated Leg.name and Leg.mode, which are now referencing to Leg.line.name and Leg.line.mode.

Deprecated Leg.name and Leg.mode, which are now referencing to Leg.line.name and Leg.line.mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant