We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to get the lane ids composing an edge from a given edge id? e.g. something like traci.edge.getLanesID()
In general I need a way to iterate over the lanes of a given edge.
SUMO version: 1.20.0
The text was updated successfully, but these errors were encountered:
You can use sumolib to query static network information. Please look at how to load a network with sumolib. Then you can access sumolib.net.edge.getLanes() to get the lanes belonging to a certain edge.
Sorry, something went wrong.
laneIDs = ["%s_%s" (edgeID, i) for i in range(traci.edge.getLaneNumber(edgeID)]
Thank you, it worked.
I have thought about this, but I am not sure that the lane id always follows the format <edgeID_number>.
Be asured that lanes always follow this naming scheme.
No branches or pull requests
Is there a way to get the lane ids composing an edge from a given edge id?
e.g. something like traci.edge.getLanesID()
In general I need a way to iterate over the lanes of a given edge.
SUMO version: 1.20.0
The text was updated successfully, but these errors were encountered: