-
Notifications
You must be signed in to change notification settings - Fork 11
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
Is there some possibility to get show "Steig" and Delay information? #2
Comments
I have seen this information being published via the webapi, here's two quick excerpts. "Platform": {
"Name": "4",
"Type": "Platform"
}, "RealTime": "\/Date(1487175617000+0100)\/",
"ScheduledTime": "\/Date(1487175600000+0100)\/", via
Unfortunately neither dvbjs nor any other of the wrappers use that endpoint directly, but the widgets and/or EFA. I'll hopefully be coming around to adding some more info regarding the api calls in this repo in the near future. So it seems the info does at least exist somewhere. Maybe it can be added into the wrappers as well. |
If you want I can work on integrating this into dvbjs and thus changing it to using the webapi instead. |
If you want to, sure! I'm not entirely sure if dvbjs has any users beside you at this point and I don't have a lot of time to work on it currently, so you might be on your own if that's ok. But any contribution is welcome! Here's what I currently have on the webapi with curl examples: Departure Monitor:
PointFinder:
PointFinder with coordinate:
RouteChanges:
Trips:
Handyticket (probably rather useless):
|
@kiliankoe I am mainly interested in tuning the departure monitor feature to using the webapi. So I will concentrate on that and send you a proper pull request if possible. One question already is, do you know how I can get the |
Afaict that's what the Pointfinder endpoint is for. The output looks like this for a query of "postpl" as an example. {
"PointStatus": "List",
"Status": {
"Code": "Ok"
},
"Points": [
"33000037|||Postplatz|5658730|4621656|0||",
"36040112||Aue (Sachs)|Postplatz|5606043|4549703|0||",
"33007557||Bautzen|Postplatz|5674144|4669959|0||",
"36040241||Eibenstock|Postplatz|5595521|4542641|0||",
"14908883||Görlitz|Postplatz|5672771|4708965|0||",
"36040863||Lindenau (b Aue)|Postplatz|5606136|4542992|0||",
"31000979||Reichenbach (Vogtl)|Postplatz|5609693|4521544|0||",
"36020504||Stollberg (Erzgeb)|Postplatz|5619679|4555330|0||"
],
"ExpirationTime": "\/Date(1487308019915+0100)\/"
} Seems like the points array will have to parsed separately though, with the ID seemingly being the first param there. Then something missing (for these results at least), an optional city/town, name of the stop, coordinates, whatever the |
@kiliankoe Thanks, already found that as well and I am currently working on integrating this. Should have something ready by the end of the evening. |
Awesome! And thank you! Looking forward to it 😊 |
@kiliankoe Almost done. Do you have an idea what the following output in depatureMonitor means?
I couldn't find out what "Diva" might stand for?
Do you know what |
I've heard diva being used somewhere, can't quite recall it though :/ The post param isArrival probably specifies if the search is for arrival or departure times and I'm guessing shortTermChanges allows rather short changes as well, that would otherwise be impossible for some users. |
Regarding "mentz" and "diva": https://www.mentz.net/fahr-und-dienstplanung/diva/ |
Thanks! 👍 |
Thanks for integrating this into dvbjs! 🍻 |
First of all, thanks for collecting all information about public APIs to access DVB information. Some things I would like to be able to query (I am using your dvbjs) would be:
Do you have any idea if this is already possible via the vvo-online.de API?
The text was updated successfully, but these errors were encountered: