Skip to content

Method and Mathematics

Follow Every Step from Road Geometry to Comparative Output

Trace each input through the equations to see which calculations contribute to the road’s overall index.

  • Model 2.0 public default
  • 91 current and preserved method records

From Mapped Coordinates to a Comparison

Mapped coordinates and road tags supply the inputs. Local geometry and stated assumptions produce section values, which are combined using their available lengths. Physical diagnostics and evidence checks answer separate questions.

  1. Mapped GeometryOriginal coordinates and their spacing along the road.
  2. CurvatureThree supported points give a local radius R in metres and |κ| = 1/R.
  3. Physical DemandAt speed v, lateral acceleration is v²|κ|, in m/s².
  4. Comparative IndexThe model combines demand, exposure and road context under the selected scenario.
Explore the seven stages and their units
  1. Mapped Inputs

    Coordinates, metres and road tags

    Start with the source coordinates and road tags. Record the original vertex count and available length. A dense interpolated line does not contain more original observations.

  2. Local Geometry

    Curvature in m⁻¹; radius in m where meaningful

    Inspect shape over a declared support span. Model 3.2 retains local curvature and distinguishes a supported straight section, one arc, compound geometry, a reverse curve and insufficient support.

  3. Physical Diagnostics

    Lateral acceleration in m/s²; stopping distance in m

    Combine speed with curvature to estimate lateral acceleration demand. Friction and reaction time support separate idealised comparisons. Neither a speed comparison nor a stopping distance is driving advice.

  4. Assumptions and Proxies

    Speed, friction, exposure and context

    Keep selected weather and behaviour separate from mapped data. Missing traffic or speed tags can invoke road-class proxies. Record which inputs were assumed for the selected road.

  5. Index Construction

    Dimensionless, displayed in percentage form

    For Model 3.2, compare the geometry-demand branch with the reference floor, then apply exposure and context. Floors and caps can make different inputs produce the same output.

  6. Aggregation

    Available sections and represented length

    A road mean weights available section values by length. An equally weighted section mean answers a different question. Missing output must stay missing, with the available count and length stated.

  7. Limits and Reproducibility

    Source, model, scenario and calculation identity

    Retain the geometry, settings and version so a result can be repeated. Known-answer fixtures test calculations; mapped-road comparisons test support and agreement; observed outcomes need a separate study.

See the Three-Point Curvature Construction
Geometry NotebookModel 3.2 · plan view
Fitting a circle to three positions on a mapped bendB is a mapped vertex. A and C are interpolated 12.5 metres either side of B along the road. The dashed circle passes through all three. The radius joins its centre O to B. The scale is the same in both directions.ABCOR5 m
■ Mapped vertex○ Interpolated support
Measuring a Bend. Travel 12.5 m along the line from B in each direction. A, B and C define the circle. A smaller radius gives greater curvature, |κ| = 1/R. Method · Schematic.

Compare the geometry experiments · Inspect the saved R238 case

Analytical illustration · a = v²/r

What Does It Take to Follow a Bend?

Acceleration rises with the square of speedThree curves give required lateral acceleration for fixed radii of 50, 100 and 200 metres as speed rises from zero to 90 kilometres per hour. The smallest radius requires the greatest acceleration. Selected values appear in the table.Lateral acceleration (m/s²)048120306090Speed (km/h)50 m100 m200 m
Read the Acceleration Values
Lateral acceleration (m/s²) by speed and bend radius
Speed50 m100 m200 m
30 km/h1.390.690.35
50 km/h3.861.930.96
70 km/h7.563.781.89
90 km/h12.56.253.13

Uniform circular motion. Speed is converted to m/s before squaring. Each cell prints the calculated value.

At a given speed, doubling the radius halves the required lateral acceleration. Along any one curve, doubling the speed multiplies the acceleration by four. Method library

Analytical illustration · level road

Where Does the Stopping Distance Go?

■ Reaction · vt▨ Braking · v²/(2μg)
30 km/h12.5 + 5.1 = 17.6 m
50 km/h20.8 + 14.1 = 34.9 m
70 km/h29.2 + 27.5 = 56.7 m
90 km/h37.5 + 45.5 = 83 m

Scale 0 to 90 m · reaction time 1.5 s · friction μ = 0.70 · g = 9.80665 m/s². Values rounded independently.

Reaction travel grows in proportion to speed. At fixed friction, braking distance grows with speed squared. These are illustrative calculations for the specified assumptions. Equations and assumptions

A Unitless Index, with Version-Specific Rules

The percentage display is 100 times the stored fraction. The road mean weights available section values by length; missing sections stay unavailable.

A unitless comparison shown in percentage form, not a collision probability.

What does this index mean?

Model 3.2: Controlled preview. For each available section, Model 3.2 uses the 95th percentile of local curvature magnitude, with zero curvature for a supported near-straight section. It forms the friction-normalised demand v²κ/(μg), bounds that demand between 0 and 3, and multiplies it by 0.015. The larger of this branch and the 0.000165 reference floor is multiplied by the exposure and context factors, then bounded between 0 and 1. The road summary weights available section values by their represented lengths.

Why a percentage?
The percentage display is 100 times the stored fraction: a fraction of 0.003 is displayed as 0.3%. This changes the notation, not the calculation. It does not mean that 0.3% of journeys or drivers will have a collision.
What does “annual” mean?
Annual is retained in the versioned ACI name and saved records. The calculation uses an AADT-based exposure factor, with a road-class proxy when tagged traffic data are absent. It does not integrate a year's journeys or contain an empirically calibrated annual collision rate.
Which inputs are measured or assumed?
Coordinates and road tags come from the selected map source; they are not independently surveyed here. Length and curvature are derived from those coordinates. Speed may come from a tag or a road-class assumption. Traffic may be tagged or proxied by road class. Weather, friction and behaviour are selected assumptions, not live measurements. Read the selected road's source and fallback details before interpreting its output.
Where do the constants come from?
Standard gravity (9.80665 m/s²) and the mechanics relationships have a physical basis. The reference floor 0.000165, demand scale 0.015, AADT reference 5000, scenario exposure exponent (typically 0.7, bounded between 0.1 and 1.2), exposure bounds 0.4–4, and context gains 0.35 and 0.12 are project choices. Scenario-to-friction and reaction-time mappings are assumptions, not measured conditions.
Which comparisons are useful?
Compare the same model, geometry, available sections and population while changing one named assumption. Record any change in the sections with output.
Separate physical diagnostics
Reaction-time settings affect stopping distance, not this index. Vehicle mass is reported but is not a multiplier in Model 3.2's lateral-demand calculation. The speed comparison is capped by road/advisory context and is not driving advice.

The index does not estimate collision probability, expected collisions, a legal or recommended speed, or an official safety rating. Values from different model versions or differently selected collections are not interchangeable.

How the public-default Model 2.0 differs

A unitless comparison shown in percentage form, not a collision probability.

What does this index mean?

Model 2.0: Public default and rollback model. The historical model constructs separate baseline and curvature branches, applies its scenario, intersection and traffic factors, selects the larger branch and bounds the output between zero and one. Its length and vehicle-mass rules differ from Model 3.2.

Why a percentage?
The percentage display is 100 times the stored fraction: a fraction of 0.003 is displayed as 0.3%. This changes the notation, not the calculation. It does not mean that 0.3% of journeys or drivers will have a collision.
What does “annual” mean?
Annual is a historical model label. Model 2 also retains a mathematical annual-to-daily conversion, d = 1 − (1 − I)^(1/365). That conversion is not evidence of an observed daily or annual collision rate.
Which inputs are measured or assumed?
Coordinates and road tags come from the selected map source; they are not independently surveyed here. Length and curvature are derived from those coordinates. Speed may come from a tag or a road-class assumption. Traffic may be tagged or proxied by road class. Weather, friction and behaviour are selected assumptions, not live measurements. Read the selected road's source and fallback details before interpreting its output.
Where do the constants come from?
Centripetal acceleration and idealised stopping distance have a physical basis. The branch floors, gains, vehicle-mass scaling, scenario multipliers and traffic transform are project rules, not an established collision calibration.
Which comparisons are useful?
Compare the same model, geometry, available sections and population while changing one named assumption. Record any change in the sections with output.
Separate physical diagnostics
Stopping distance and the curvature/friction speed comparison are separate diagnostics. Their presence does not establish that the comparative index predicts outcomes.

The index does not estimate collision probability, expected collisions, a legal or recommended speed, or an official safety rating. Values from different model versions or differently selected collections are not interchangeable.

Interpretation boundary. Road Risk produces comparative model output under stated assumptions. It does not calculate observed collision probability, issue an official safety rating, recommend a legal speed or reproduce a Road Safety Authority assessment.

Model ledger

Read Every Method in Its Correct Model Context

A mathematical expression can be implemented correctly while the model using it still lacks empirical validation.

The register below carries these statuses into every record: Model 2.0 is the registered public default, Model 3.2 is the controlled preview with insufficient evidence, and Model 3.3 candidates cannot alter the App result.

Inspect model release and validation status

Current model status

Model 2.0.0 Is the Public Default

Compare model versions

Model 2.0

Public default

Empirical decision: not assessed

Model 3.2

Controlled preview

Empirical decision: insufficient evidence

Model 3.3 Geometry Candidates

Diagnostic only

Empirical decision: insufficient evidence

Software verification and deployment status are reported separately from empirical evidence. No model output is an official safety rating or collision prediction.

Guided calculation

Follow Each Model in Dependency Order

The R238 chain distinguishes sequential calculations, parallel branches, branch selection, multiplication, numerical bounds, whole-road aggregation and separate diagnostics.

Guided R238 calculation

Follow the Value from Source Evidence to the Road Headline

The chain distinguishes steps that continue, run in parallel, select a branch, apply a bound or aggregate sections. Every shown R238 value comes from the production model snapshot.

Open this R238 example in the App
Road
Malin Road, R238
Road headline
0.092%

Worked scope: Local section 34 of 38, followed by the complete-road aggregate.

Step 1 of 8Road, scenario and model inputs

Start with the Reviewed Road and Declared Scenario

Starting inputs. This is the source state. Nothing has been combined into a comparative output yet.

Comes from

This chain starts with the external road, scenario and model inputs listed below.

In plain language

In Plain Language

The calculation must begin from an attributable road, scenario and model version before any branch is evaluated.

R238 result

59 frozen centreline coordinates; local section 34 of 38.

Show operations, inputs and calculation safeguards
How the Calculation Works
  1. 1
    Read the road

    Use the frozen OpenStreetMap centreline and tags rather than requesting a live provider.

  2. 2
    Choose the local section

    Inspect station 3630 m to 3740 m while preserving all other sections for the road aggregate.

  3. 3
    Retain provenance

    Keep observed tags, scenario choices, fallbacks and model constants distinguishable.

Inputs and Where They Came From
Frozen road geometry
59 WGS84 coordinates
Road or source data
Provides the centreline and road tags.
VVScenario speed
80 km/h
Scenario choice · km/h
Sets the speed used by physical comparisons.
μ\muEffective friction
0.7
Scenario choice
Represents the selected vehicle, surface and condition context.
AATraffic exposure input
9000 vehicles/day (road class proxy)
Road or source data · vehicles/day
Supplies the exposure proxy used to form the traffic factor.
Assumptions
  • • Mapped centreline geometry is used as a proxy for the travelled alignment.
Safeguards
  • • Invalid geometry or unavailable values are retained as unavailable rather than silently replaced with favourable values.
Limitations
  • • The frozen road is a repeatable software example, not an empirical validation case.

Produces

Reviewed Calculation State

Section 34: 110 m

A provenance-labelled input bundle ready for the two Model 2 branches.

Continues to

Why this step exists

Without a fixed input state, changes in geometry, scenario or fallbacks could be mistaken for changes caused by the equation itself.

Interpretation boundary. Model 2.0 produces comparative output under declared assumptions. It is not an observed collision probability, official safety rating or legal-speed recommendation.

View the wider method chapter map
  1. 01 · Road data and provenance

    Public road geometry, tags, assumptions, fallbacks and units enter the calculation with their source retained.

  2. 02 · Coordinate and distance processing

    Coordinates are cleaned, measured, projected and located along a road centreline.

  3. 03 · Road cleaning and section construction

    The road is divided into bounded local evidence sections with explicit tail and cap rules.

  4. 04 · Heading, turn, curvature and radius

    Heading changes and station-aligned geometry describe how the mapped centreline bends.

  5. 05 · Speed, friction and stopping comparisons

    Simplified physical relationships compare speed, curvature, friction, reaction and braking demand.

  6. 06 · Scenario, vehicle and road context

    Selected conditions, vehicle properties, road tags and traffic proxies modify the relevant model branches.

  7. 07 · Model 2.0 calculation

    The public-default model combines baseline and curvature branches before traffic and road aggregation.

  8. 08 · Model 3.2 calculation

    The controlled preview uses exact 100 m sections and local signed-curvature evidence.

  9. 09 · Route, Hotspot and Isochrone methods

    Spatial tools reuse model outputs with separate sampling, clipping, coverage and cap rules.

  10. 10 · Statistics and Graphs

    Distribution summaries describe position, spread and tails within a sampled comparison set.

  11. 11 · Observed collision comparison

    RSA records remain an external historical context used by evaluation procedures.

  12. 12 · Presentation

    Percent conversion, fixed scales, clipping and colour interpolation affect display only.

  13. 13 · Model 3.3 diagnostics

    Candidate geometry estimators are compared without changing the App result.

Worked mathematics

Calculate the Same Frozen R238 Road Through Both Current Models

Every displayed substitution and result is composed from the current production trace at build time. The page does not maintain a copied set of model outputs.

Open the production trace browser

Use this advanced view to compare the canonical trace records, substitutions and results after following the guided dependency chain above.

Frozen real-road walkthrough

Malin Road, R238

OpenStreetMap way 302735492, version 21

Open this R238 example in the App

Geometry and Inputs

Speed Conversion

Converts the scenario speed from kilometres per hour to metres per second.

Real OpenStreetMap centreline geometry, frozen for repeatable software demonstration. It is not a surveyed lane alignment, collision record, safety rating or empirical validation case. The two model versions may construct different local sections and their outputs are not observed collision probabilities.

Controlled examples

Small Examples for Branches One Road Cannot Show Clearly

These are explanatory fixtures, not named-road results or empirical validation cases. Open an example to see its given values, calculated result and purpose.

Haversine distanceOpen example

Given: (53.000°, −7.000°) to (53.000°, −6.999°)

Calculated result: Production Haversine helper: 66.92 m.

What this demonstrates: Shows why latitude affects the east-west distance represented by one degree.

Signed heading wrapOpen example

Given: 179° followed by −179°

Calculated result: Production heading-wrap helper: +2°, not −358°.

What this demonstrates: Preserves turn direction across the ±180° boundary.

Constant-radius arcOpen example

Given: A controlled circular arc with radius 200 m

Calculated result: Known curvature 1/R = 0.005 m⁻¹.

What this demonstrates: Separates geometry-method recovery from real-road uncertainty.

Short final sectionOpen example

Given: A 430 m road divided into 100 m sections

Calculated result: 5 sections: 100 m, 100 m, 100 m, 100 m, 30 m; total 430 m.

What this demonstrates: Shows why the final section is shorter without being discarded.

Length-weighted meanOpen example

Given: Outputs 0.2 and 0.8 over lengths 100 m and 25 m

Calculated result: (0.2×100 + 0.8×25) / 125 = 0.32.

What this demonstrates: Prevents a short section from carrying the same road-wide weight as a long section.

Midrank percentileOpen example

Given: Values 1, 2, 2, 4 with selected value 2

Calculated result: Production percentile helper: (1 + 0.5×2) / 4 = 0.50.

What this demonstrates: Handles tied model outputs without arbitrary ordering.

Histogram and KDEOpen example

Given: Values 1, 2, 2, 4; two requested histogram bins

Calculated result: Production helpers return bin counts 3 and 1 and KDE bandwidth 0.379.

What this demonstrates: Shows that graph shape depends on a declared display method, not new road evidence.

Missing evidence and clippingOpen example

Given: Unavailable curvature and an output above the 2% display maximum

Calculated result: Curvature remains unavailable; only the colour position is clipped while the exact output remains visible.

What this demonstrates: Shows that missingness and visual clipping do not alter model values.

Complete register

Search Every Equation, Algorithm and Supporting Method

The register reconciles the complete historical audit with current formula definitions, Model 3.2 geometry, spatial tools, presentation rules and diagnostic methods.

85

Typeset equations

6

Algorithms and rules

118

Constants and thresholds

3

Preserved historical steps

Open a record to inspect its equations and steps, or print the full method.

More filters

Showing 10 of 91 matching steps · 91 total

Constants, thresholds and defaults

Inspect Every Material Value That Controls a Calculation, Fallback or Display Rule

Unsourced project choices are identified directly. A value appearing in a formula does not make it an external standard.

Showing 10 of 118 matching constants · 118 total

C001Earth radius6,371,008.8 msupporting method · public default · Low risk

Purpose

Haversine/projection

Source or rationale

Standard mean Earth radius

Basis

road risk heuristic

Applicable model

2.0.0 or shared supporting method

Limitation: Interpret with the stated purpose, model version and source rationale.
C002Gravity9.81 m/s^2supporting method · public default · Low risk

Purpose

Physics equations

Source or rationale

Established approximation

Basis

engineering simplification

Applicable model

2.0.0 or shared supporting method

Limitation: Interpret with the stated purpose, model version and source rationale.
C003Responsible-driver factor0.015supporting method · public default · High risk

Purpose

Curvature annual branch

Source or rationale

No source found

Basis

road risk heuristic

Applicable model

2.0.0 or shared supporting method

Limitation: Road Risk design choice; no validating source recorded.
C004Baseline coefficient1.5e-6 per mmodel output · public default · High risk

Purpose

Baseline raw

Source or rationale

No source found

Basis

road risk heuristic

Applicable model

2.0.0 or shared supporting method

Limitation: Road Risk design choice; no validating source recorded.
C005Curvature minimum step2 mavailability · public default · Medium risk

Purpose

Point filtering

Source or rationale

Road Risk stability choice

Basis

road risk heuristic

Applicable model

2.0.0 or shared supporting method

Limitation: Interpret with the stated purpose, model version and source rationale.
C006Curvature epsilon1e-6 kmavailability · public default · Low risk

Purpose

Divide guard

Source or rationale

Numerical guard

Basis

numerical guard

Applicable model

2.0.0 or shared supporting method

Limitation: Interpret with the stated purpose, model version and source rationale.
C007Mean-curvature lower anchor0.8 rad/kmmodel output · public default · High risk

Purpose

Score normalisation

Source or rationale

No source found

Basis

road risk heuristic

Applicable model

2.0.0 or shared supporting method

Limitation: Road Risk design choice; no validating source recorded.
C008Mean-curvature upper anchor4 rad/kmmodel output · public default · High risk

Purpose

Score normalisation

Source or rationale

No source found

Basis

road risk heuristic

Applicable model

2.0.0 or shared supporting method

Limitation: Road Risk design choice; no validating source recorded.
C009Sharp-curvature lower anchor2 rad/kmmodel output · public default · High risk

Purpose

Score normalisation

Source or rationale

No source found

Basis

road risk heuristic

Applicable model

2.0.0 or shared supporting method

Limitation: Road Risk design choice; no validating source recorded.
C010Sharp-curvature upper anchor12 rad/kmmodel output · public default · High risk

Purpose

Score normalisation

Source or rationale

No source found

Basis

road risk heuristic

Applicable model

2.0.0 or shared supporting method

Limitation: Road Risk design choice; no validating source recorded.

Preserved methods

Historical Models Remain Readable Without Being Presented as Current

Model 1, Model 3.0 and Model 3.1 artifacts remain provenance records. Their formulae and limitations are discoverable through the Historical lifecycle filter in the register.

Historical methods explain older imports without being promoted or silently recalculated. Known limitations, including the preserved Model 2 radius construction and superseded RGB presentation rule, remain attached to their records. Current citations or statuses are not inherited merely because a title is similar.

Reading rule

Correct Mathematics and Validated Road-Safety Prediction Are Different Claims

Speed, radius, friction and stopping relationships are simplified comparisons, not surveyed design checks or driving advice. The Annual Comparative Index is model-specific, not an expected collision count. RSA history can support future evaluation, but current context displays do not prove a named-road result.