I need to generate like 1000 trips from a specific edge as the source to another specific edge as The destination in Sumo. how can I do that I tried randotrips.py but it has no option to specify source and destination. Or like is there a way to define some number of sources and destinations and only create routes between them?
I attempted to use randotrips.py to generate trips without specifying a start and finish but encountered difficulty in specifying the source and destination.
In
randomTrips.py, there is not any option to specify the source & destination edges. But after generatingtrips.trips.xml, you can modify it using a Python script.You can use the below script for this purpose: