Skip to content

five-on-it / packages/catalogue/src/city/plan / PlanRoad

Interface: PlanRoad ​

Defined in: packages/catalogue/src/city/plan.ts:21

A road as Blender builds it.

Properties ​

climb? ​

optional climb?: [number, number]

Defined in: packages/catalogue/src/city/plan.ts:37

Its heights at its start and its end, one grade between (a road up to a hill's top).


cycle? ​

optional cycle?: boolean

Defined in: packages/catalogue/src/city/plan.ts:43

Whether a cycle lane is painted along it.


grading ​

grading: number

Defined in: packages/catalogue/src/city/plan.ts:33

How far beyond its edges the land is graded to it (m).


lanes ​

lanes: number

Defined in: packages/catalogue/src/city/plan.ts:28


lanesBack ​

lanesBack: number

Defined in: packages/catalogue/src/city/plan.ts:29


name ​

name: string

Defined in: packages/catalogue/src/city/plan.ts:23

Its name, unique in the level: old-quay, dt-u2, circus-1 (a roundabout's arcs), parkway-3 (a closed road's parts).


points ​

points: PlanPoint[]

Defined in: packages/catalogue/src/city/plan.ts:25

Its centre line, sampled (a few metres apart at most).


rank ​

rank: number

Defined in: packages/catalogue/src/city/plan.ts:31


roundabout? ​

optional roundabout?: string

Defined in: packages/catalogue/src/city/plan.ts:39

The roundabout whose arc it is.


speed ​

speed: number

Defined in: packages/catalogue/src/city/plan.ts:30


town ​

town: boolean

Defined in: packages/catalogue/src/city/plan.ts:35

Whether it is a street of the flat town (at height 0, pavements along it); a road climbing a hill is not.


turningCircle? ​

optional turningCircle?: number

Defined in: packages/catalogue/src/city/plan.ts:41

The radius of the turning circle paved at its end (a close).


width ​

width: number

Defined in: packages/catalogue/src/city/plan.ts:27

Its width from kerb to kerb (m), its lanes each way, its speed (m/s), its rank (1 a lane … 4 a parkway or a roundabout).