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

Short output version #14

Open
dbrgn opened this issue Jul 12, 2012 · 0 comments
Open

Short output version #14

dbrgn opened this issue Jul 12, 2012 · 0 comments

Comments

@dbrgn
Copy link
Owner

dbrgn commented Jul 12, 2012

Add a --short / -s option for shorter output.

Possible formattings:

1 - Grouped

Von Zürich Manegg nach Zürich HB SZU:
- ab 18:00 Gleis 2 an 18:11 Gleis 1 (0:11h)
- ab 18:10 Gleis 3 an 18:21 Gleis 1 (0:11h)
- ab 18:20 Gleis 2 an 18:31 Gleis 1 (0:11h)
...

Downsides: There could be different start/end locations. This could be solved by grouping the different start/end locations. Might be a great possibility.

2 - Compact

Zürich Manegg ab 18:00 Gleis 3 - Zürich HB SZU an 18:11 Gleis 1 (0:11h, 0 mal umsteigen)
Zürich Manegg ab 18:10 Gleis 3 - Zürich HB SZU an 18:21 Gleis 1 (0:11h, 0 mal umsteigen)
Zürich Manegg ab 18:20 Gleis 3 - Zürich HB SZU an 18:31 Gleis 1 (0:11h, 0 mal umsteigen)
...

Each row contains all necessary information, no need for grouping.

3 - Text

Abfahrt in Zürich Manegg um 18:00 auf Gleis 3. Fahrt mit S4, S5 und Bus, 2 mal umsteigen.
Ankunft um 18:21 in Zürich HB SZU auf Gleis 1. Gesamtdauer: 0:11h.
-----
Abfahrt in Zürich Manegg um 18:10 auf Gleis 2. Fahrt mit S4, S5 und Bus, 2 mal umsteigen.
Ankunft um 18:31 in Zürich HB SZU auf Gleis 1. Gesamtdauer: 0:11h.
-----
...

Plaintext version, e.g. for SMS messages etc... Could also be used with a separate -t / --text option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant