Could you post a screenshot. I think I know what you mean, and if so it's easy for me to add another flag for toy that should address it, but I'm not certain I fully understand what you mean (I'm not really in a position ro load a save since my copy is currently non functional while I debug the viewports)
Sure. You can see the Android Worker and the city here. I'm not sure what flags are being used here, because this is not the same path that the railroad uses. (This is a Go-To, <G> on the keyboard.)
View attachment 324602
This is where the railroad goes. The halfway point is (8,5) which is the grassy hill north of the coal. Even the path that the Android uses in the previous screenshot would work, because that would not meet the requirements for an east-moving path.
View attachment 324603
Maybe the problem is the pathing flag I am using? I am currently using PathingFlags.MOVE_SAFE_TERRITORY because that is the flag that has to be used inevitably to test whether a Worker can build railroads to that space, but maybe I should use a different flag here and then do the test again with MOVE_SAFE_TERRITORY after every other test has been done. I was trying to use only one path per plot because AIAndy said path generation was expensive. On the other hand, the Golden Spike should only occur once per game, so maybe it will not be too bad.