This PR enables the /ttimes route to serve multiple phases in a single request. The required callback function did not change but the /ttimes route changed slightly. This should be ok as I'm not aware of any implementation publicly using it. Instead of phase the argument name is now phases, e.g.
It is only capable of returning a single time per phase. The callback function must thus deal with multiple arrivals of the same phase and choose which one to return.
@martinvandriel Can you check with your folks if that is acceptable?
Coverage increased (+0.0003%) to 99.839% when pulling 749be2c6bcbe2f56b15fe6bb366a2a1ddd579b31 on multiple_phases into bfea2ae4aed83e89eca519439439c20cd18d985b on master.
This PR enables the
/ttimes
route to serve multiple phases in a single request. The required callback function did not change but the/ttimes
route changed slightly. This should be ok as I'm not aware of any implementation publicly using it. Instead ofphase
the argument name is nowphases
, e.g.Will return the following JSON:
It is only capable of returning a single time per phase. The callback function must thus deal with multiple arrivals of the same phase and choose which one to return.
@martinvandriel Can you check with your folks if that is acceptable?