Skip to content
New issue

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

How can I get prevNode and nextNode ID #14751

Closed
juun9714 opened this issue Apr 22, 2024 · 4 comments
Closed

How can I get prevNode and nextNode ID #14751

juun9714 opened this issue Apr 22, 2024 · 4 comments

Comments

@juun9714
Copy link

juun9714 commented Apr 22, 2024

Hi, I always thank you for your kind reply :)

I have one question. I'm now using SUMO and libtraci library in Windows C++ environment. I want to know ID of the node connected to specific Edge (previous node and next node of edge). I know that we can use sumolib library and read net.xml to get edge and node like below. But is there any way to do same work in C++ environment?

nextNodeID = net.getEdge('myEdgeID').getToNode().getID() (https://sumo.dlr.de/docs/Tools/Sumolib.html#usage_examples)

SUMO-version:1.19.0

operating system:Windows

@m-kro
Copy link
Contributor

m-kro commented Apr 22, 2024

Something has been done in this context recently (traci.edge.getToJunction(), see #14490). You have to use the development version to try it out.

@juun9714
Copy link
Author

@m-kro Thanks :) does this function is supported for libtraci too?

@m-kro
Copy link
Contributor

m-kro commented Apr 22, 2024

Yes

@juun9714
Copy link
Author

Thank you !!

@namdre namdre closed this as completed Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants