What do you think about allowing an infinite rail grid with such a rail set in configurable intervals?
For the signal placement this could be useful -- to avoid only one automatic train only being able to pass:
Within the crossing, place a signal immediately after each perpendicular rail.
Between two crossings, placed a at configurable interval, but with a different configurable length for the first one. (Players might want to have a different offset / first segment length depending on how much space their intersection blueprints -- e.g. roundabouts -- use, and how long their trains are.)
Placing the map center in the middle of a grid cell and not a crossing at the (0,0) cordinate would probably be preferrable, to keep the starting area usable.
See https://imgur.com/FnzuYpg -- I'd prefer the first grid interval input, and have the mod calculate the second one.:
real_interval := input_interval + (0.5*center_spacing) + (track_spacing * (rails_per_side - 1)) + (2*rails_per_side)
track_spacing is currently also 4 tiles with default mod settings, but I don't know if this is currently hardcoded to 4 or just always equal to the center_spacing value.