Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Traci: Get route with only start and end edges

Hello,
to get the distance you can use traci.simulation.getDistanceRoad(self,
edgeID1, pos1, edgeID2, pos2, isDriving=True)
Getting the list of edges is currently a bit more complicated and requires
multiple calls as explained at http://sumo.dlr.de/trac.wsgi/ticket/2524
regards,
Jakob

2017-08-06 16:03 GMT+02:00 Johann van Eeden via sumo-user <
sumo-user@xxxxxxxxxxxxxxxxxxxxx>:

> Hello,
>
> So I'm looking to get a list of edges,  ie the route where I only have the
> start and end edge IDs. Vehicles get dynamically rerouted with a controller
> script and I have to know the distance between the two said edges. If I
> could get a route between then I can easily get the distance. The start and
> end edges are totally random.
>
> Any tips on how to do this?
>
> Regards
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user


Back to the top