> ## Documentation Index
> Fetch the complete documentation index at: https://offthepace.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# stg_circuit_info

> Corner geometry from FastF1 circuit_info.corners.

<Note>Part of the [Staging](/transform/families/staging) family.</Note>

Corner geometry from FastF1 circuit\_info.corners. One row per corner per race, ordered by distance along the lap. race\_year is part of the key   geometry can vary slightly year to year. Not yet read by any downstream dbt model or app feature.

## Lineage

```mermaid theme={null}
flowchart LR
  stg_circuit_info --> dim_corners
  style stg_circuit_info fill:#e40404,stroke:#e40404,color:#fff
```

## Overview

| Property          | Value                                  |
| ----------------- | -------------------------------------- |
| Layer             | `staging`                              |
| Family            | [Staging](/transform/families/staging) |
| Contract enforced | No                                     |

**6 tests** [guard](/transform/ci/overview) this model  -  5 generic, 1 singular.

## Columns

| Column              | Type      | Nullable | Tests                                                                        | Description                                                                                |
| ------------------- | --------- | -------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| `corner_id`         | `varchar` | Yes      | [`not_null`](/transform/ci/structural), [`unique`](/transform/ci/structural) | Surrogate key   \{race\_id}\_\{corner\_number}\{corner\_letter}.                           |
| `race_year`         | `integer` | Yes      | [`not_null`](/transform/ci/structural)                                       | Season year.                                                                               |
| `race_id`           | `varchar` | Yes      | [`not_null`](/transform/ci/structural)                                       | Numeric FastF1 event id cast to string; matches stg\_laps.race\_id.                        |
| `race_slug`         | `varchar` | Yes      |                                                                              | Human-readable event name.                                                                 |
| `corner_number`     | `integer` | Yes      |                                                                              | Corner number along the lap.                                                               |
| `corner_letter`     | `varchar` | Yes      |                                                                              | Optional suffix distinguishing corners that share a number (e.g. 7a/7b); NULL when absent. |
| `corner_x`          | `double`  | Yes      |                                                                              | Corner x-coordinate in the FastF1 track frame.                                             |
| `corner_y`          | `double`  | Yes      |                                                                              | Corner y-coordinate in the FastF1 track frame.                                             |
| `corner_angle_deg`  | `double`  | Yes      |                                                                              | Corner orientation angle (degrees) in the track frame.                                     |
| `corner_distance_m` | `double`  | Yes      | [`not_null`](/transform/ci/structural)                                       | Distance of the corner along the lap from start/finish (m).                                |
