tgoulder4 / trainspy

trainspy - fast & free real-time train tracker

Home Page:https://www.npmjs.com/package/trainspy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

4-[MAJOR]-findTrains("").thatDepartOnDate(date)

tgoulder4 opened this issue · comments

commented

findTrains("BRV").thatGoTo(dest).thatDepartOnDate(date).fromTime(time),.aroundTime(time);

new globals:
preferredDestination, startTimeLimit,dateOfDeparture

Insight:
new functions amend the globals which influence results
Default behaviour:

findServices(station).thatDepartOnDate(today).aroundTime(time),.fromTime(time)

tracking the next train that goes to manchester:
trackService(findServices("EUS").thatGoTo("MAN").thatDepartsOnDate(today).aroundTime(now).serviceID))

commented

See other PR comment.