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: <Melanie.Weber@xxxxxx>
  • Date: Tue, 21 Jul 2020 07:14:48 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • Ironport-phdr: 9a23:9F+mFBVSpu1FZ1hgVUR+nXLpauDV8LGtZVwlr6E/grcLSJyIuqrYbBKBt8tkgFKBZ4jH8fUM07OQ7/m+HzBdqs/Z7DgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrrAjdrMYbjIttJqos1hfErWZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhJ/3YDafZ2VOvR9cKPTf9waRHZOUclKWiNbHo+8bZECA/YdMepGqYT2ulsArQG5BQmpHO7izThGiWHy3aIg1eQhEB/J0BYgEN0Qq3vbss/1ObwPXuCx1qnE1yjMYO1P1Dr79YPHfQwvr+uWUrJsbcre11MvFwXdg1iUpoLoMDCY2/oCvmSF7+duWuKhhm4ppQx+ojaiwsYhh43Li4wby13J9SR0zJo3KNC5RkN2f9CpHZlOuyyeKod7RN4pTW9vuCY/0LIGuJi7cTARyJQ6wh7fbPiHc4mT7R75UuaePyt4iXR4c7y8nxa/6VWsxvHmWsWp01tHoTBJnsTCu30OzRDf9NaLRuNg8ku9wzqDygPe5+5eLUwpm6fWKIQtzqAwm5cct0nIAzX4l1/sjKCMc0Up4u2o6+P6bbr4vpKcLIp0ih3mMqQph8y/Hfw0MggQUGif/uSxzLPt80v3TrtFjvM4kq7XvpPdK8oBuKK1HQBb3Yc95hqlDjem1sgYnWMdI15fZR2Hi5LpN0vTL//mFfu/glKsnyl3x/3eI7HtHo/BImXAnbruZ7px9kBRxQkpwdxB+Z5YErQBL+jyWk/1utzYFBg5MwmszujgFtp90pkRWWSOAqCHKq/dsUGH6fkxLOmWf4IapTL9K+I/6/Hzk3A1gUUdcrWx3ZsLdHC4GexrI16EYXrphdcNCHoKvhEgQ+zwk1CNTyJcZ3KzX6Ik/TE0FpiqDYDZRoCi0/S923LvBYBTYSVbEV2WOXrjc4ScQPpKbziddJxPiDsBAOyERoso0xCj8jD3wbd9BubQ4GsUuMSwh5BO++TPmERqpnRPBMOH3jTVQg==
  • Ironport-sdr: 1epaOxRWADSTtYngGYYbPzEQ/zVZXX9ioMOJ3+Zri7NFpUsaFU4pCXYLiZMNAEW7Wi55a58hiN ShkU0+WkQQPQ==
  • 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+5wwgACI1jCAARFs4A==
  • Thread-topic: sumolib: Can we find the nearest exit edge?

Hi,

 

Sorry but I don’t have a good idea for that.

 

For example the duarouter gives you the length of routes, so maybe you give them all possible routes and in the result you choose the shortest.

 

Regards,

Melanie

 

Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] Im Auftrag von Padisala, Shanthan Kumar
Gesendet: Montag, 20. Juli 2020 16:25
An: Sumo project User discussions
Betreff: Re: [sumo-user] 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