I thought about it, but I won't. I've got four reasons why.
I had another reason, but it slipped my mind somewhere along the line.
- The key to the Golden Spike, the symbolism and reason I made it a World Wonder, is the SINGLE act of driving in the Spike. That makes it a unique thing, which by definition is a World Wonder. I'm not going to sacrifice that.
- Using 2 National Wonders to determine the endpoints of the railroad wouldn't guarantee a true coast-to-coast railroad.
- As Koshling said, it would be very difficult to force the second building to be on the same continent as the first. It's not completely impossible, but it would be so clunky that I would hate it.
- Making them National Wonders would mean that every civilization could build one.
On the other hand, it's not impossible to have the Python algorithm create both a hypothetical east-west and a hypothetical north-south route, then build whichever of the two is longer. Would that work?
TBH, the way it works now is fine most of the time. Just fix the Python errors for the broken cases (a simple if to determine if each leg is actually non-null) and I think it's ok - not worth spending a lot more time on.