Hi all,

I was wondering if anyone has encountered this issue before and/or knows a work 
around to it. I'm trying to calculate the shortest path for a pedestrian from a 
list of edges. It seems though that net.getShortestPath references the road 
directions. To visualise in an example the redline on network below depicts the 
path net.getShortestPath(startEdge,endEdge,vClass="pedestrian") returns.

[cid:[email protected]]

If I manually define the trip however like the following:

<vType id="ped_pedestrian" vClass="pedestrian"/>
    <person id="ped1" depart="0.00" type="ped_pedestrian" departPos="5">
        <walk from="startEdgeID" to="endEdgeID "/>
    </person>
</routes>

I get the path I would expect the pedestrian to follow.

[cid:[email protected]]

Is there another method similar to net.getShortestPath I can use find the 
shortest path prior to a simulation or would I have to use something like 
traci.simulation.findRoute(starting_edge,finishing_edge,"ped_pedestrian",-1,0) 
within a simulation as an alternative.

Kind regards,

Barry


_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to