2 module PARSE_ROUTE_CURRENCY
5 def parse_route_currency( route_id )
If the route is current...
8 if route_is_current?( route_id )
... we update the route current attribute to TRUE.
11 update_route_hash( route_id, 'TRUE', nil, nil, nil, nil )
Otherwise, if the route is not current ...
... we update the route current attribute to FALSE and the route status attribute to UNTRAVERSABLE.
Setting the route status to UNTRAVERSABLE records that the route is not currently traversable - and is used to infer that routes which follow this route are also not currently traversable.
We also record this route as parsed because we don't want to visit it and attempt to parse again.
19 update_route_hash( route_id, 'FALSE', 'UNTRAVERSABLE', true, nil, nil )