Skip to content

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

Interface: PlanRoad ​

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

A road as Blender builds it.

Properties ​

climb? ​

optional climb?: [number, number]

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

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:50

Whether a cycle lane is painted along it.


grading ​

grading: number

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

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


kind? ​

optional kind?: "track" | "country"

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

A road of the country's class (no pavement, no kerb, nothing fronting it; trees and fences on its verges): the level's RoadDef.kind.


lanes ​

lanes: number

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


lanesBack ​

lanesBack: number

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


name ​

name: string

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

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:28

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


rank ​

rank: number

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


roundabout? ​

optional roundabout?: string

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

The roundabout whose arc it is.


speed ​

speed: number

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


surface? ​

optional surface?: "dirt"

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

What a track is made of: dirt (drawn brown, no paint).


town ​

town: boolean

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

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


tunnels? ​

optional tunnels?: [number, number][]

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

The stretches of it in a tunnel, as metres along it from its start ([from, to]): nothing stands on the hill over them.


turningCircle? ​

optional turningCircle?: number

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

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


width ​

width: number

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

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).