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: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Melanie.Weber@xxxxxx <Melanie.Weber@xxxxxx>
Sent: Monday, July 20, 2020 2:10 AM
To: sumo-user@xxxxxxxxxxx <sumo-user@xxxxxxxxxxx>
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: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx]
Im Auftrag von Padisala, Shanthan Kumar
Gesendet: Montag, 20. Juli 2020 06:28
An: sumo-user@xxxxxxxxxxx
Betreff: [sumo-user] sumolib: Can we find the nearest exit edge?
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.
|