Hi,

Yes, also looked at getNeighboringEdges() function that could give me the 
closest edges. But is there any other way so that I can get the data on the 
nearest exit edge?

If not, I can figure that out the nearest exit edge by giving the list of all 
the exit edges manually if I have a function that could calculate the distance 
to an edge. So, is there any function that could give me the length of the 
route, if I input the current position and an edgeID?

Thanks,
PSK
________________________________
From: [email protected] <[email protected]> on behalf 
of [email protected] <[email protected]>
Sent: Monday, July 20, 2020 2:10 AM
To: [email protected] <[email protected]>
Subject: Re: [sumo-user] sumolib: Can we find the nearest exit edge?


Hello,



maybe getNeighboringEdges(x, y, radius) from sumolib.net will help you. But it 
not just find the nearest exit edge, it will find every nearest edge.



Kind regards,

Melanie







Von: [email protected] [mailto:[email protected]] Im 
Auftrag von Padisala, Shanthan Kumar
Gesendet: Montag, 20. Juli 2020 06:28
An: [email protected]
Betreff: [sumo-user] sumolib: Can we find the nearest exit edge?



Hello everyone,



I am trying to reroute a vehicle network dynamically and I am planning to make 
a vehicle to exit the network after a certain waiting time - by rerouting it to 
the nearest exit edge. I came across sumolib library that looks to have 
promising functions to help me out to solve my problem.



I would like to know if there is any way to find the nearest exit edge, given x 
and y coordinates of that vehicle.



Thank you,

PSK
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to