Comments (4)
Do you think this would be a good way to go if the iOS app already uses the
mgate.exe
endpoint? Are there more network providers out there still sticking to the old XML markup so that it could serve for others as well?
My gut feeling says that there aren't a lot of apps using stboard.exe
endpoints, but this is subjective. On the other hand, I've seen quite a lot of apps that use mgate.exe
endpoints only. You might want to check this list and this list to estimate wether writing a client is worth it. Maybe @juliuste knows.
That aside, we're always happy to have more API clients for more systems, in more languages! Public transportation needs to stop being the patchwork mess it currently is.
from hafas-client.
Will close this. If you happen to write or use a client for the XML-based APIs, let us know.
from hafas-client.
I wanted to add support for the saarfahrplan.de-API which also uses HAFAS, but it turns out the app isn't using the mgate.exe endpoint, but the (older?) query.exe one which does not return pretty JSON data, but gzipped hexadecimal files. I've recorded some requests, you can find them here.
Yeah, we've had a look at this endpoint as well.
The iOS app seems to query mate.exe
, but it returns an encrypted response. We'd be happy about any hint that helps us reverse-engineer this.
The Android app seems to query stboard.exe
with the old XML markup.. The XML markup is different from the JSON markup. I think a separate, but API-compatible lib would be best.
Are there any plans to support other endpoints within this project? I would like to contribute on the integration!
Are you talking about mgate.exe
-based endpoints? If so, then yes, we happy to get contributions like #58 and #22. We're almost done with hafas-client@3
, but currently the code still lives in the next
branch. Have a look at the "Writing a profile" guide!
from hafas-client.
The Android app seems to query stboard.exe with the old XML markup.
That's right for departures, but in the case of a journey I couldn't get any understandable XML response...
Does that related to mgate.exe-based endpoints?
My question was referring to endpoints not using mgate.exe
.
I think a separate, but API-compatible lib would be best.
Do you think this would be a good way to go if the iOS app already uses the mgate.exe
endpoint? Are there more network providers out there still sticking to the old XML markup so that it could serve for others as well?
from hafas-client.
Related Issues (20)
- Make hafas-client work in browser / webpack HOT 9
- With hafas-client@6 and db profile, getting earlier journeys is broken HOT 1
- Is there a way to query journeys from a certain timepoint to a certain time point? HOT 9
- SNCB: switch to new rest.exe API HOT 2
- PKP error - something changed? HOT 6
- DB endpoint responds with CLIENTVERSION when using user agents from docs HOT 13
- DB: make routing mode configurable, so that cancelled trips can be queried & pagination works HOT 10
- DB: server errors with stop() and ver > 1.16 HOT 6
- DB: support "best price search" HOT 10
- HAFAS answers often with "ECONNRESET" HOT 7
- XSS vulnerability in some HAFAS instances HOT 3
- DB: get URL to offers HOT 20
- journeys(): Walks have wrong distance HOT 4
- /journeys invalid poi HOT 1
- support environments without support for createRequire() & JSON modules HOT 4
- wrong date parsed for next-day DEVI legs on overnight journeys HOT 4
- journeys(): Add attribute `additional` for stopovers HOT 2
- ERR_REQUIRE_ESM HOT 1
- refreshJourney never fills price HOT 2
- refreshToken: always returns 404 from/to Kรถln/Bonn Flughafen station HOT 2
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 hafas-client.