question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

First of all: Thank you for your service. I’m trying to build a display which shows the next departure at my favorite S-Bahn station. Your API is a great help to realize it.

Regarding the output I have a question: How can I recognize that a trip has been canceled?

Example:

Response from http://mobile.bahn.de/: S 85 >> Berlin-Schöneweide (S) 10:08 Fahrt fällt aus, Gl. 2

Response from the API: {'direction': 'S Schöneweide', 'station': {'products': {'suburban': True, 'regional': False, 'express': False, 'tram': False, 'bus': False, 'ferry': False, 'subway': False}, 'name': 'S+U Wittenau', 'coordinates': {'longitude': 13.335479, 'latitude': 52.596388}, 'id': '900000096101', 'type': 'station'}, 'remarks': [None, None], 'trip': 43004, 'line': {'class': 1, 'productCode': 0, 'nr': 85, 'productName': 'S-5', 'name': 'S85', 'symbol': 'S', 'product': 'suburban', 'express': False, 'metro': False, 'night': False, 'id': 's85', 'type': 'line', 'mode': 'train'}, 'ref': '1|43004|2|86|5122017', 'when': '2017-12-05T10:08:00+01:00', 'delay': None}

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:24 (16 by maintainers)

github_iconTop GitHub Comments

3reactions
derhuerstcommented, Dec 6, 2017

Found it! It is dep.dCncl: true and arr.aCncl: true. Will expose them with the next release of vbb-hafas.

1reaction
derhuerstcommented, Dec 18, 2017

Will look into this, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trip cancellations | Intrepid Travel
We closely monitor all our destinations – if your trip is cancelled or changed, we will aim to notify you at least one...
Read more >
5 Tips For Dealing With a Trip Cancellation
1. Understand the covered reasons for canceling a trip. · 2. Make sure you meet the stated requirements for trip cancellation. · 3....
Read more >
Flight Canceled or Delayed? Here's What to Do
Ask for a refund ... If the airline cancels your flight or it's "significantly delayed" (defined on a case-by-case basis) and you're forced...
Read more >
How to deal with a Cancelled Trip in Concur
To cancel your entire trip, in the Action column, click Cancel Trip, and then click OK. •. When you cancel a trip, if...
Read more >
What to Do If Your Flight Is Canceled, According to a Travel ...
From rebooking your flight to getting a refund, here's what you need to know if your flight gets canceled.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found