Skip to content
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

Add support for OeBB when JSON is all null #1

Open
craftbyte opened this issue Jul 17, 2022 · 3 comments
Open

Add support for OeBB when JSON is all null #1

craftbyte opened this issue Jul 17, 2022 · 3 comments

Comments

@craftbyte
Copy link

On some S-Bahn trains I have found that the JSON will have all fields just set to null. The trains still report speed and position on https://railnet.oebb.at/api/gps, there is also https://railnet.oebb.at/api/trainInfo. I see the fields set to null on S-Bahn Steiermark.

@niklaswa
Copy link
Owner

Hey @craftbyte, thanks for the info!
I'm currently using the https://railnet.oebb.at/assets/modules/fis/combined.json endpoint for getting the data in the ÖBB Railjets. Is this endpoint also available in the S-Bahn? I'm currently not in Austria, so I can't try it unfortunately.

If not, maybe I have to use the two endpoints that you mentioned, would be awesome if you or someone else could provide the full data of these.

@craftbyte
Copy link
Author

That endpoint still returns a JSON, but all the elements contents are null. I am taking another one tomorrow and will send the full responses. The system is called railnet regio and seems to be basically the same as railjets, as those endpoints are also available there.

@craftbyte
Copy link
Author

Here's the /gps:

{"Latitude":"46.787470166667","Longitude":"15.545274166667", "JSON":{"error":"none","lat":46.787470166667,"lon":15.545274166667,"speed":88.694132}}

Sadly, the traininfo endpoint is just returning 0 on this train, I will try to get it next time I am on a railjet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants