This script is to set the TNS (Transit Network Selection ) related parameters with the values configured in the Routes.
To use these filters:
Added 2 New Route Columns – In Routes → Create New Route Column:
tns_value:
Type attributes: string, Default: blank
nid_plan:
Type attributes: string, Default: blank
Add the following lines to the main script (default main script :simple_routing.rb)
require ‘set_tns_by_route’ unless defined?(SETTNSBYROUTE)
include SETTNSBYROUTE
route_remap :method => :set_tns_by_route (Note: make it as a route_remap filter)
See more detail about Transit Network Selection here:
https://docs.telcobridges.com/Routing_script_tutorial:Mini_Development_Guide
Attachments