Closed GoogleCodeExporter closed 8 years ago
This validation has to be added to Tranfer.ValidateAfterAdd, since we need the
schedule to be able to access the stops.
However, since invalid transfers (no or invalid {to,from}_stop_id and
min_transfer_time) are also added to the schedule
we'd have to rerun the very same checks that are in ValidateBeforeAdd to guard
against that.
IMHO the cleanest way of doing this would be to *not* add invalid transfers to
the schedule, so ValidateAfterAdd is only
run on Transfers that seem to be correct. Also add a validation to see if
{to,from}_stop_id reference valid stop_ids
before cheking if the transfer is too large.
I'm CCing Tom for his input on this - do you think this is a good idea, or is
there something I'm missing that prevents
us from doing this? And, of course, if there's anyone using the transitfeed
package and relying on the current behavior
please update this bug to let me know.
Original comment by a...@google.com
on 23 Apr 2010 at 12:48
Fix committed in revision 1307.
Original comment by a...@google.com
on 14 May 2010 at 4:39
Original issue reported on code.google.com by
a...@google.com
on 23 Apr 2010 at 12:00