Hi,
Thanks for getting in touch. Have you tried using the Box mapping mode built into the Segment node? Here's some more info about it:
When activated, it generates UV coordinates of type "Box" on the segment. Instead of using the default UV coordinates of the individual segment, this mapping is seamlessly tiled along the full length of the RailClone object.

Several options are available:
Apply Box Mapping: turns on RailClone's automatic box mapping mode
Real-World Map Size: turn on to use with materials set to use Real-World Map Size for tiling.
Length, Width, Height: sets the dimensions of the box map.
Rotation and Offset: Allows you to adjust the UVW mapping, .
Map Channel: Set the map channel to apply the box mapping, to map multiple channels enter them as a list separated with spaces.
Please note though, that this feature is available only in V-Ray, when Display->Instancing Engine is enabled. To use it in other renderers, you must disable the instancing setting.
I hope that helps,
Paul