Comments (6)
@mikwebdev Thank you for reporting this. I'll have a look at it ASAP.
from fahrplan.
@f03el Thank you. Much appreciated as I still use Fahrplan on my Nokia N9 regularly.
from fahrplan.
The reply from the server is just an empty JSON object (i.e. {}
) when the direction station is not part of any route from the departure station. Would it make more sense to just show an empty result list instead of the error message?
from fahrplan.
Yes, an empty result list is much better than an loading squircle and error message.
With constant loading squircle and error message it gives the impression that something is technically wrong. Maybe change error message to something like "No departures found." or "No results found." and stop the loading squircle?
I have attached an error message from rejseplanen.dk. Maybe do something similar?
For example:
Sweden (resrobot.se) replied:
"No departures found to that direction."
or
Sweden (resrobot.se) replied:
"No results found."
from fahrplan.
OK, I think an empty result list is the only possible solution in this case. There is no way we can know whether the reply is empty just because there simply are no departures from that station at the time, or because the user has selected a "bad" combination of station and direction. If you want to test a bus stop with no departures, try "Granträskvägen (Lycksele kn)" in the weekend. :)
The backend only has the options to either return a list of departures (special case: empty list), or throw an exception, which shows an error message (in the N9 case with a loading circle). The loading circle is nothing the backend controls. On Sailfish OS there is no indicator or similar in this case. It just shows the error message.
from fahrplan.
Ok, I understand. I'm fine with an empty list, as long as loading squircle and error message doesn't show.
from fahrplan.
Related Issues (20)
- [symbian ^3] No services in Sweden works anymore HOT 4
- [backend] VBB (VBB Verkehrsverbund Berlin-Brandenburg GmbH)
- Sydney transport plugin (transportnsw.info) no longer listing stations
- webos? HOT 3
- bahn.de broken
- fahrplan doesn't work in Germany HOT 39
- Directly refresh connection results
- option to hide and/or clear search results on Select station page
- Germany - an error ocurred with the backend HOT 3
- Transport connection results not shown properly in Darkmode #UbuntuTouch
- 3.4 segfaults. HOT 5
- Since 3.3 (it appears) adding to calendar doesn't work. HOT 2
- [resource request] Add Romanian Train Table
- Time and date selection behaves strangely
- SFOS 4 support? HOT 2
- ÖBB Backend broken? HOT 3
- SBB backend error: Error parsing reponse from the server: unexpected character
- Dutch 9292.nl backend no longer working HOT 1
- No focal image in Open store HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fahrplan.