API does not return data after TRAININFO query

Bug #2046401 reported by Zenith Point
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
New
Undecided
Unassigned

Bug Description

The API does not provide anything other than the following text:

{'ControlMode': 'EXPLORER'}

after I send a request to it via the URL:
http://localhost:2150//API/TRAININFO

It should return much more, such as the speed of the train, the gradient of the track and the distance to the next station.

When I request data via this URL:

http://localhost:2150/API/CABCONTROLS

I get the data I expect back, such as regulator and reverser settings.

Thus, I think that the code concerning the API is incomplete for some queries.

I have tested this with all the versions I can select in the launcher, from the stable version to developer builds. My log is attached.

For my use case, making the simulator accessible to screen readers, I require the data from TRAININFO in addition to CABCONTROLS.

If this is indeed an issue with the API, may I know which fall I would need to edit in order to rectify this problem? Thank you.

Tags: api
Revision history for this message
Zenith Point (exocetfalling) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.