You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the distance metric decreases along the forward direction of the edge, this is indicated by using a negative sign for the distance value.
291
-
292
-
The distance value along an edge is computed as:
293
-
```
294
-
|edgeDistance + vehiclePos|
295
-
```
296
-
297
-
Edge distance is imported from OSM and can also be be set along a route in [netedit](../Netedit/elementsDemand.md#route)
298
-
299
-
The distances value can be written in [fcd-output](Output/FCDOutput.md#further_options) using option **--fcd-output.distance**. It may then be used for plotting by [plot_trajectories.py](../Tools/Visualization.md#plot_trajectoriespy) using the code `k` (i.e. -t kt). The distances can also be visualized in sumo-gui (color edges by distance).
300
-
301
-
!!! note
302
-
Negative distance values are not currently supported (pending introduction of another attribute)
287
+
Edges can be configured to take part in a [linear
288
+
referencing scheme](https://en.wikipedia.org/wiki/Linear_referencing) by setting their [`distance`-attribute](Distances.md#defining_and_using_linear_coordinates).
289
+
The linear coordinates of a vehicle can be included in [fcd-output](Output/FCDOutput.md#further_options) using option **--fcd-output.distance**.
0 commit comments