Todd,
I guess the first question I need to ask is 'What size are the rail wheels you pressed on?". And what scale are you assuming this rail truck to be? (I know most are not scale specific, but I need a place to start the calculations from.)
Lets assume for our example that the scale is 1:24 and the wheel is 31mm (a standard Bachmann). 31mm divided by 25.4 (mm to the inch) and the wheel is 1.2204" (truncated to 4 decimal places). 1.2204 times 24 equals 29.2896 inches in diameter in scale. Pi times 29.2896 inches equals 92.0160 inches rolling circumference. Now we know how far your wheel travels in one revolution.
Now lets assume you want your rail truck to travel at a maximum speed of 20 miles per hour. In order to get to some common units of speed, lets break that down to miles per minute. Divide 20 MPH by 60 Minutes per hour and you get .3334 miles per minute. To get how many times the wheel rotates in that distance we need to first determine how many inches per minute we are traveling. so, .3334 times 5280 (feet per mile) times 12 (inches per foot) and we get 10,322.064 inches. If we now divide the distance traveled (10322.064) by the distance traveled per revolution of the wheel (92.0160) and we get 112.1768. Now for a 31mm wheel to travel at 20 scale miles per hour our maximum wheel rotation is 112.1768 PRM.
I appears that the motor/gearbox you have chosen has four different ratios. Lets see if any are close to what we are attempting to obtain. The first and second ration are definitely not low enough, but I will do the math to demonstrate. the motor (no load) RPM is given as 12,300. 12,300 divided by 12.7 is 968.5039 final output RPM. MUCH TOO HIGH. The next ratio is 38. 12,300 divided by38 equals 323 RPM. Much closer but still too high. Next ratio is 115. 12,300 divided by 115 is 106.9565. This is very close, and in my world would be quite acceptable in terms of speed. The final ratio would yield 36.8263, way too low.
Being as I don’t read Kanji, I cannot be sure, but I believe the output shafts to be a 6mm hexagon. If this is the case, you might check with an R/C hobby shop locally and see what they have that might be adaptable.
Also note that this is a 3V motor. Not very much, only 2 double A batteries will run this for a good bit.
I hope I have given clear enough directions on how to work backwards from what you know to what you want/need.
This links to the OEM site for Tamiya and gives some overall dimensions http://www.tamiya.com/english/products/70167gearbox/
PM me if you need any additional help.
Bob C.