offenesdresden / dvbgo Goto Github PK
View Code? Open in Web Editor NEW🚡 query Dresden's public transport system for current bus- and tramstop data in go
Home Page: https://godoc.org/github.com/kiliankoe/dvbgo
License: MIT License
🚡 query Dresden's public transport system for current bus- and tramstop data in go
Home Page: https://godoc.org/github.com/kiliankoe/dvbgo
License: MIT License
Hi Kilian,
could you check if you get results for Albertplatz? At the moment I can't, but there might be results as you can see here.
Thanks in advance :)
Since EFA is going to be shut down at some point in the rather near future, it seems like a good idea to use the chance to migrate to use the WebAPI instead and also replace the widgets endpoint while at it.
Big upside is a whole bunch of new data being supplied by the WebAPI.
For instance HHZ
should return results for Helmholtzstraße
but instead we get the ones for Pulsnitzer Straße
.
curl -X "GET" "http://widgets.vvo-online.de/abfahrtsmonitor/Haltestelle.do?ort=Dresden&hst=HHZ"
[[["Dresden"]],[["Pulsnitzer Straße","Dresden","33000290"]]]
Removing ort=Dresden
from the request seems to fix the mixup.
curl -X "GET" "http://widgets.vvo-online.de/abfahrtsmonitor/Haltestelle.do?&hst=HHZ"
[[["Dresden"]],[["Helmholzstraße","Dresden","33000742"]]]
While investigating the issue of no results being shown in alfred_dvb I discovered that the bug actually originates from some changes on the server side in the expected arguments of HTTP GET requests made by dvbgo.
The paramter lim=0
in a request like http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?hst=Helmholtzstraße&lim=0&ort=Dresden&vz=0
causes the response to always be []
. Simply removing it by commenting out line 24 params.Set("lim", "0")
in dvb.go fixes this.
However, new strange behavior can then be observed:
<div style="border: 3px solid #4991C5; font:1.5em; font-family:tahoma,calibri,arial; font-weight:bold; color:#1A4369; padding:5px; margin:10px; text-align:center"> The specified URL cannot be found. </div><!--0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234-->
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.