Historical Service Performance (HSP)

69 views
Skip to first unread message

Danica T

unread,
Jun 23, 2021, 6:06:49 PMJun 23
to A gathering place for the Open Rail Data community
Hi all,

I have been trying to access the HSP API and am following the instructions from https://wiki.openraildata.com/index.php/HSP. The serviceMetrics call requires an HTTP POST call with a JSON hash containing the from_loc key. May I know what should I do with that key if I am only interested about the trains arriving at a particular station, which means that I would only want to specify the to_loc key.

Any advice and suggestions will be greatly appreciated. Thank you.

Regards,
Danica

Danica T

unread,
Jul 9, 2021, 7:49:49 AMJul 9
to A gathering place for the Open Rail Data community
Hi all,

Just to share my experience. From my experience, I have to limit the query timeband when accessing the API. There is not a fixed duration for the timeband as some stations are busier while some are less, which means that the amount of information related to each station is very different.

Also, the from_loc and to_loc key do not represent the originating and terminating station. For example, if I set the Woking (WOK) and Waterloo (WAT) as the values for the keys, I can obtain all the RIDs related to this route. With the RIDs, I can then use the serviceDetails call to get all information related to the RID, from originating to terminating station. 

Thank you.

Regards,
Danica
Reply all
Reply to author
Forward
0 new messages