Re: profiles The weight of a way normally computed as length / rate. The weight can be thought of as the resistance or cost when passing the way. Routing will prefer ways with low weight. You can also set the weight of a way to a fixed value, In this case it's not calculated based on the length or rate, and the rate is ignored.
А как задать weight для *всего* пути чтобы учитывалась его длинна? Через то-же —segment-speed-file или как то по другому можно? есть еще forward_rate/backward_rate но оно выражается в m/s... а если мне надо именно rate, не привязываясь к скорости?
— convert from km/h to m/s result.forward_rate = result.forward_speed / 3.6 * forward_penalty