Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Edge Lengths and node positions

I have an node file consists of this;

<node id="1" x="-500.0" y="0.0" type="priority"/>
<node id="2" x="+500.0" y="0.0" type="priority"/>

so if i decide to generate an edge from 1 to 2, what will be the length of the edge? What is the effect of node positions to the edge's lengths. And when i get the car position,  should i proportion the position to the length of the edge? 

Example : if there is a edge between node 1 and 2  and edge length specified as 2000m, then car with the position of the 0,0) has passed the half of the road, which corresponds to 1000m

Back to the top