Optimal parameters for urban rail planning