Growth of amount of cars resulted in supersaturating of motorways a transport and especially streets of cities. Constantly congestions appear on the streets of cities, the rate of movement goes down as a result, muddiness of environment is increased. This problem can it would be decided, plugging a railway transport in a city transport system. For the decision of this task an algorithm is examined, using which it is possible to define minimum time on the way between railheads, plugged in a city transport network.