Hi, I don't know whether these functions are available in the matlab client but in the python client you could retrieve the lane length using traci.lane.getLength(laneID) and compare it with the result of traci.vehicle.getLanePosition
Best regards, Michael Am 02.12.2016 um 14:44 schrieb Mariam ZOUARI: > Hello , > i want to reroute vehicle in the network using Traci4matlab, how the > vehicle can detect an intersection (Junction) in order to reroute right or > left up or down ? > is there any relation between lane or edge with intersection in order to > know if the vehicle is near to the intersection ? > i propose to do like this : > i use laneID = traci.vehicle.getLaneID('car18') % to found the place of > vehicle (lane) > traci.vehicle.getLanePosition('car18') > traci.lane.getLinks(laneID) > traci.junction.getIDList() > traci.junction.getPosition %position of each intersection then > i use traci.simulation.getDistance2D (position of vehicle ,position of > intersection) > if the distance < 1m > there is an intersection > > can you help me please? > ------------------------------------------------------------------------------ > 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/xeonphi _______________________________________________ sumo-user mailing list sumo-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user