You will have to do the actual programming yourself but here are some hints:
edges = traci.vehicle.getRoute(vehID) remainingEdges = edges[traci.vehicle.getRouteIndex(vehID):] stage = traci.simulation.findRoute(fromEdge, toEdge) travelTime = stage.travelTime Am Mi., 9. Jan. 2019 um 17:07 Uhr schrieb Bijal Varia < bijal.vari...@gmail.com>: > Dear listing, > > I have found Question in the following link : > > https://sourceforge.net/p/sumo/mailman/message/35079189/ > > *I am concern to first Question :* > > 1. Which node from B,C,D & E is the closest (Driving distance not Air > distance) to a target node Z > > * Answer : * > > The best solution is to retrieve nodes that compose the current route of a > vehicule than calculate the driving distance between each node and the target > node. > > *Would you please share the code of Traci (Python) to achieve this. I am > struggling since few weeks to do this.* > > *I will be very much grateful if you help me in this regard.* > > Bijal Varia > > _______________________________________________ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user