Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] sumolib: Can we find the nearest exit edge?
  • From: "Padisala, Shanthan Kumar" <padisala.1@xxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 20 Jul 2020 14:24:37 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=buckeyemail.osu.edu; dmarc=pass action=none header.from=buckeyemail.osu.edu; dkim=pass header.d=buckeyemail.osu.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oyHCntoQlu30iwNkmWKeG9WIe7hRllmn/NWo2hqc1nQ=; b=SJhFzwJ6Hdm2Whdt1PsDZ+sVkJZ0X7VyPVDuzg/weGkerzqOtoRnNDPDI//Hvi+2iI2XeTsQ/efylKtZy0gepiFik5lqTBaS8EdJyuMTSF5u7JjRBmcPBkT3Ww/J3iaqPc3JIJAxDMVJEaKUxXFvsmMcE5mshw0ikpay4DIkdRM9tW0wQ86W+9muAjOJIWa69dj4sjH/lVsRboRf1pv5uXRr3lHAv2+T1LNOLuixxZ5qSQSh3S4818eMLmHThPsGrS/QcdoL6jpIYOEEZnbJk+KmRG0wkE6IPVyJCG5DRBGKgMmP7tLbSSkybgeNHPLpWJ+IktsQR0/uBMzVJ3ouHA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d8P53xAi8krZb5dy8ez7XkZ8qhwlXMWwaWgumprqZ7z8Lg/J84HjXbo0qA8RX5tbnEXvthMBGm/OU8DqRixcblgh3akUPqWoHc91EN0W7D/TM/WNZuBB0/oQo3DoeeHj9TfSUjEIawJOQ7SEsruyibwjcfDM5KAAnKPDYdOGzNfYbU+SitLP7naSn7z6FCzdJ4LEF732OagClVtzoPGQvYs/UuPZgjkxk7zOaX7f3AKiKGKxermXS4+kTRsw31AB4kppvb0M8vBA8SsB7ZYuoO/1Qfx2t2c9vz3HFTlylxi/RPppFR/dorGpmLEytsOSlNDrv6nMNGav6ylPu4xFEQ==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWXk0f7bjHOeaU9UaY1riaS6d1AakP+5wwgACI1jA=
  • Thread-topic: sumolib: Can we find the nearest exit edge?

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?

 

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


Back to the top