Solved! Go to Solution.
# create left and right side of the street (per default same nbr of lanes in both directions, but user can influence it via attributes)
Streetsides -->
case calcNbrOfLanes < 1.1 : Asphalt
case Nbr_of_left_lanes == 0 && Nbr_of_right_lanes == 0:
split(v,unitSpace,0){ ~calcLanesLeft : Lanes(calcNbrOfLanes,connectionEnd,0) Vehicles(0)
| Median_width : Median
| ~calcLanesRight : scaleUV(0,-1,-1) Lanes(calcNbrOfLanes,connectionStart,2) Vehicles(2) }
else:
split(v,unitSpace,0){ ~Nbr_of_left_lanes : Lanes(Nbr_of_left_lanes,connectionEnd,0) Vehicles(0)
| Median_width : Median
| ~Nbr_of_right_lanes : scaleUV(0,-1,-1) Lanes(Nbr_of_right_lanes,connectionStart,2) Vehicles(2) }First ..
What controls do you need ?
What elements you want to have on your streets ?
Number of Left Lanes / Right Lanes ?
Median on/off ?
..