[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Avoiding U-turns with duarouter
|
Hi Ion,
you can select U-turns in netdit and save the selection to a text file:
- choose select mode
- filter: connection, attribute "dir", value "t", click "Apply selection" button (t for turn, there are other values like s=straight, l=left, r=right)
- click "Save" button below to save the selection to a text file for further processing
sumolib allows as well to iterate through the network and filter connections by direction: sumolib.net.connection.getDirection()
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Avoiding U-turns with duarouter
Datum: 2024-08-13T13:52:33+0200
Von: "Ion Cojoc via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "Mirko Barthauer via sumo-user" <sumo-user@xxxxxxxxxxx>
Hi,
I'm wondering if it's possible to avoid U-turns in the routes generated by duarouter
. I tried adding a cost to the connections in the network, but detecting U-turns was challenging. Could you provide some guidance on the best approach for this task?
Regards,
Ion