You are reading a single comment by @russdx and its replies. Click here to read the full conversation.
  • Ah another reason for the php is if you have multiple destination states the php has to make multiple calls to the networkrail api it also has to make a separate request to collect the calling at stations data (forgot about this lol) then packages it all up in one friendly json response.

    If it is written to use require (to load the js files) does this still run inside a browser? I will do some research on this and try and implement it :)

    I have included the php file in this reply so you can see what it is doing. I guess it is doing quite a lot and saves the js from making multiple requests and just hides/removes all the train api crap from it which it doesn't really care about. It just wants to make one request and get back just the data it needs :) (way I see it hehe)

    Its not 100% finished I still need to sort out the station service messages.


    1 Attachment

About

Avatar for russdx @russdx started