Get Location
get_locationFetch approximate car positions on a Formula 1 circuit from OpenF1 for a session and driver; use date_from/date_to to narrow results to a lap or time window.
Instructions
Fetch approximate car positions on the circuit from OpenF1.
Sampled at ~3.7 Hz — always narrow down with date_from/date_to (e.g., a single lap) to keep responses usable. Useful for gauging progress along the track, but lacks lateral placement (left/right side). The origin point (0, 0, 0) is arbitrary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x_max | No | ||
| x_min | No | ||
| y_max | No | ||
| y_min | No | ||
| z_max | No | ||
| z_min | No | ||
| date_to | No | ||
| date_from | No | ||
| session_key | No | int | str — required, positive int or 'latest'. Session identifier; use get_sessions to discover it. | |
| driver_number | No | int — required, 1-99. Driver number for the season. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |