Rewrite the README for this repository, its API and its data

37 of its 39 links to files of the repository led nowhere: they named
the upstream's flat circuits/<id>.geojson, not this repository's
circuits/<country>/<locality>/<circuit>/<layout>.geo.json. It now says
what the API serves, where the example site is, how the data is laid
out, and lists every circuit with its Jolpica id and a link to each
layout's GPS trace, written from circuits.json. A test holds every
local link to a file.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
This commit is contained in:
2026-11-27 09:48:30 +01:00
parent 6490dc5933
commit 4c4a561141
2 changed files with 159 additions and 50 deletions
+139 -50
View File
@@ -1,68 +1,157 @@
# Formula 1™ circuits
# F1 Circuits
A repository of Formula 1™ circuits in [GeoJSON](http://geojson.org/) format (using .geo.json extension).
The circuits that have hosted a Formula 1™ Grand Prix (77 of the 78; Caesars Palace, 1981-82, is missing),
traced by GPS layout by layout, and an API that serves them: track maps as GeoJSON, SVG and PNG, and posters and thumbnails for a Formula 1 library in Plex, Emby or
Kometa.
* [Formula 1™ circuit tracks data in one GeoJSON file](f1-circuits.geojson)
* [Interactive Map of Formula 1™ circuit tracks](https://svemir.co/f1/)
* [Points of F1™ circuits in GeoJSON format](f1-locations.geojson)
* [List of F1™ circuits in JSON format](f1-locations.json)
* **The API**: https://f1-circuits.zurag.be ([OpenAPI docs](https://f1-circuits.zurag.be/docs))
* **The example site**: https://f1-circuits.zurag.be/examples/ (its pages are in [examples/](examples/index.html)),
one page per feature, each showing the request it makes
* **The data**: [circuits/circuits.json](circuits/circuits.json) and one folder per circuit under
[circuits/](circuits/) — 77 circuits, 122 layouts
| Location | Name | Grand Prix |
|:---|:---|:---|
| Austin | [Circuit of the Americas](circuits/us-2012.geojson) | United States Grand Prix |
| Baku | [Baku City Circuit](circuits/az-2016.geojson) | Azerbaijan Grand Prix |
| Barcelona | [Circuit de Barcelona-Catalunya](circuits/es-1991.geojson) | Spanish Grand Prix |
| Budapest | [Hungaroring](circuits/hu-1986.geojson) | Hungarian Grand Prix |
| Estoril | [Autódromo do Estoril](circuits/pt-1972.geojson) | Portuguese Grand Prix |
| Hockenheim | [Hockenheimring](circuits/de-1932.geojson) | German Grand Prix |
| Imola | [Autodromo Enzo e Dino Ferrari](circuits/it-1953.geojson) | San Marino / Emilia Romagna Grand Prix |
| Istanbul | [Intercity Istanbul Park](circuits/tr-2005.geojson) | Turkish Grand Prix |
| Jacarepaguá | [Autódromo Internacional Nelson Piquet](circuits/br-1977.geojson) | Brazilian Grand Prix |
| Jeddah | [Jeddah Corniche Circuit](circuits/sa-2021.geojson) | Saudi Arabian Grand Prix |
| Las Vegas | [Las Vegas Street Circuit](circuits/us-2023.geojson) | Las Vegas Grand Prix |
| Le Castellet | [Circuit Paul Ricard](circuits/fr-1969.geojson) | French Grand Prix |
| Lusail | [Losail International Circuit](circuits/qa-2004.geojson) | Qatar Grand Prix |
| Magny-Cours | [Circuit de Nevers Magny-Cours](circuits/fr-1960.geojson) | French Grand Prix |
| Melbourne | [Albert Park Circuit](circuits/au-1953.geojson) | Australian Grand Prix |
| Mexico City | [Autódromo Hermanos Rodríguez](circuits/mx-1962.geojson) | Mexican Grand Prix |
| Miami | [Miami International Autodrome](circuits/us-2022.geojson) | Miami Grand Prix |
| Monaco | [Circuit de Monaco](circuits/mc-1929.geojson) | Monaco Grand Prix |
| Montreal | [Circuit Gilles-Villeneuve](circuits/ca-1978.geojson) | Canadian Grand Prix |
| Monza | [Autodromo Nazionale Monza](circuits/it-1922.geojson) | Italian Grand Prix |
| Nürburg | [Nürburgring](circuits/de-1927.geojson) | German Grand Prix |
| Portimão | [Autódromo Internacional do Algarve](circuits/pt-2008.geojson) | Portuguese Grand Prix |
| Sakhir | [Bahrain International Circuit](circuits/bh-2002.geojson) | Bahrain Grand Prix |
| Sao Paulo | [Autódromo José Carlos Pace - Interlagos](circuits/br-1940.geojson) | Brazilian Grand Prix |
| Scarperia e San Piero | [Autodromo Internazionale del Mugello](circuits/it-1914.geojson) | Tuscan Grand Prix |
| Sepang | [Sepang International Circuit](circuits/my-1999.geojson) | Malaysian Grand Prix |
| Shanghai | [Shanghai International Circuit](circuits/cn-2004.geojson) | Chinese Grand Prix |
| Silverstone | [Silverstone Circuit](circuits/gb-1948.geojson) | British Grand Prix |
| Singapore | [Marina Bay Street Circuit](circuits/sg-2008.geojson) | Singapore Grand Prix |
| Sochi | [Sochi Autodrom](circuits/ru-2014.geojson) | Russian Grand Prix |
| Spa Francorchamps | [Circuit de Spa-Francorchamps](circuits/be-1925.geojson) | Belgian Grand Prix |
| Spielberg | [Red Bull Ring](circuits/at-1969.geojson) | Austrian Grand Prix |
| Suzuka | [Suzuka International Racing Course](circuits/jp-1962.geojson) | Japanese Grand Prix |
| Yas Marina | [Yas Marina Circuit](circuits/ae-2009.geojson) | Abu Dhabi Grand Prix |
| Zandvoort | [Circuit Zandvoort](circuits/nl-1948.geojson) | Dutch Grand Prix |
## The API
## Summary
| Request | Answers |
|:---|:---|
| `GET /circuits` | every country, with its localities, circuits and layouts |
| `GET /circuits/{country}` | the country's localities |
| `GET /circuits/{country}/{locality}` | the locality's circuits |
| `GET /circuits/{country}/{locality}/{circuit}` | one circuit: its name, Jolpica id, links and layouts |
| `GET /circuits/{country}/{locality}/{circuit}/layout/{layout}` | one layout and its description |
| `GET /circuits/{country}/{locality}/{circuit}/layout/{layout}/{format}` | the layout's file: `geojson`, `svg` or `png` |
| `GET /tracks/{country}/{locality}/{circuit}/year/{year}/{format}` | the layout the circuit used that year |
| `GET /grand-prix/{race}/{season}/{format}` | the layout a race ran on, such as `/grand-prix/Qatar Grand Prix/2025/geojson` |
| `GET /posters/race/{race}/{season}.png?bg=…` | a 1000×1500 race poster; `bg` is `aerial` (default), `osm`, `dark`, `light` or `none` |
| `GET /posters/season/{season}.png` | a 1000×1500 season poster |
| `GET /posters/session/{race}/{season}/{session}.png` | a 1920×1080 thumbnail for one session, such as `fp1`, `qualifying`, `sprint` or `race` |
| `GET /kometa/formula-1-metadata.yml` | [Kometa](https://kometa.wiki/) metadata that sets these posters on a Plex Formula 1 library |
Currently, the repository holds 35 out of [77 circuits that have hosted a Formula 1™ Grand Prix](https://en.wikipedia.org/wiki/List_of_Formula_One_circuits).
A race is named as [Jolpica](https://github.com/jolpica/jolpica-f1) (the Ergast API's successor) names it in
its schedule, and its circuit is found by Jolpica's circuit id (`ergastId` in `circuits.json`), never by the
circuit's name: Jolpica renames circuits (Losail became Lusail), the id stays.
## Altitude
## The data
Altitude data was mostly collected from the [Highs and lows - which F1 track has the most elevation changes?](https://www.formula1.com/en/latest/features/2016/10/highs-and-lows---which-f1-track-has-the-most-elevation-changes-.html) article and reference the start/finish point. For other tracks, official websites and wiki pages were used as sources, or the nearby city's altitude, if no other and more accurate data were available.
`circuits/circuits.json` holds country → locality → circuit → layout. A circuit has its `name`, its Jolpica
`ergastId`, links to Wikipedia and the F1 wiki, and its layouts. A layout is named by the years it was used:
`1950-` (from 1950 on), `2000-2007`, or `2010` (that year only). Each layout's files sit at
`circuits/<country>/<locality>/<circuit>/<layout>` with the extensions `.geo.json` (the GPS trace, a
GeoJSON LineString), `.svg` and `.png`.
| Country | Locality | Circuit | Jolpica id | Layouts (GPS trace) |
|:---|:---|:---|:---|:---|
| Argentina | Buenos Aires | Autodromo Juan y Oscar Gálvez | `galvez` | [1953-1960](circuits/argentina/buenos-aires/autodromo-juan-y-oscar-g%C3%A1lvez/1953-1960.geo.json) · [1971-1973](circuits/argentina/buenos-aires/autodromo-juan-y-oscar-g%C3%A1lvez/1971-1973.geo.json) · [1974-1981](circuits/argentina/buenos-aires/autodromo-juan-y-oscar-g%C3%A1lvez/1974-1981.geo.json) · [1995-1998](circuits/argentina/buenos-aires/autodromo-juan-y-oscar-g%C3%A1lvez/1995-1998.geo.json) |
| Australia | Adelaide | Adelaide Street Circuit | `adelaide` | [1985-1995](circuits/australia/adelaide/adelaide-street-circuit/1985-1995.geo.json) |
| Australia | Melbourne | Albert Park Grand Prix Circuit | `albert_park` | [1996-2019](circuits/australia/melbourne/albert-park-grand-prix-circuit/1996-2019.geo.json) · [2021-](circuits/australia/melbourne/albert-park-grand-prix-circuit/2021-.geo.json) |
| Austria | Spielberg | Red Bull Ring | `red_bull_ring` | [1970-1976](circuits/austria/spielberg/red-bull-ring/1970-1976.geo.json) · [1977-1987](circuits/austria/spielberg/red-bull-ring/1977-1987.geo.json) · [1997-2003](circuits/austria/spielberg/red-bull-ring/1997-2003.geo.json) · [2014-](circuits/austria/spielberg/red-bull-ring/2014-.geo.json) |
| Austria | Styria | Zeltweg | `zeltweg` | [1963-1964](circuits/austria/styria/zeltweg/1963-1964.geo.json) |
| Azerbaijan | Baku | Baku City Circuit | `baku` | [2016-](circuits/azerbaijan/baku/baku-city-circuit/2016-.geo.json) |
| Bahrain | Sakhir | Bahrain International Circuit | `bahrain` | [2004-](circuits/bahrain/sakhir/bahrain-international-circuit/2004-.geo.json) · [2010](circuits/bahrain/sakhir/bahrain-international-circuit/2010.geo.json) · [2020](circuits/bahrain/sakhir/bahrain-international-circuit/2020.geo.json) |
| Belgium | Brussels | Nivelles-Baulers | `nivelles` | [1972-1974](circuits/belgium/brussels/nivelles-baulers/1972-1974.geo.json) |
| Belgium | Spa | Circuit de Spa-Francorchamps | `spa` | [1950-1970](circuits/belgium/spa/circuit-de-spa-francorchamps/1950-1970.geo.json) · [1983-](circuits/belgium/spa/circuit-de-spa-francorchamps/1983-.geo.json) |
| Belgium | Zolder | Zolder | `zolder` | [1973-1984](circuits/belgium/zolder/zolder/1973-1984.geo.json) |
| Brazil | Rio de Janeiro | Autodromo Internacional Nelson Piquet | `jacarepagua` | [1978-1989](circuits/brazil/rio-de-janeiro/autodromo-internacional-nelson-piquet/1978-1989.geo.json) |
| Brazil | São Paulo | Autodromo Jose Carlos Pace | `interlagos` | [1972-1980](circuits/brazil/s%C3%A3o-paulo/aut%C3%B3dromo-jos%C3%A9-carlos-pace/1972-1980.geo.json) · [1990-](circuits/brazil/s%C3%A3o-paulo/aut%C3%B3dromo-jos%C3%A9-carlos-pace/1990-.geo.json) |
| Canada | Montreal | Circuit Gilles Villeneuve | `villeneuve` | [1978-](circuits/canada/montreal/circuit-gilles-villeneuve/1978-.geo.json) |
| Canada | Ontario | Mosport International Raceway | `mosport` | [1967-1977](circuits/canada/ontario/mosport-international-raceway/1967-1977.geo.json) |
| Canada | Quebec | Circuit Mont-Tremblant | `tremblant` | [1968-1970](circuits/canada/quebec/circuit-mont-tremblant/1968-1970.geo.json) |
| China | Shanghai | Shanghai International Circuit | `shanghai` | [2004-](circuits/china/shanghai/shanghai-international-circuit/2004-.geo.json) |
| France | Clermont-Ferrand | Charade Circuit | `charade` | [1965-1972](circuits/france/clermont-ferrand/charade-circuit/1965-1972.geo.json) |
| France | Dijon | Dijon-Prenois | `dijon` | [1974-1984](circuits/france/dijon/dijon-prenois/1974-1984.geo.json) |
| France | Le Castellet | Circuit Paul Ricard | `ricard` | [1971-1985](circuits/france/le-castellet/circuit-paul-ricard/1971-1985.geo.json) · [1986-1990](circuits/france/le-castellet/circuit-paul-ricard/1986-1990.geo.json) · [2018-](circuits/france/le-castellet/circuit-paul-ricard/2018-.geo.json) |
| France | Le Mans | Bugatti Circuit | `lemans` | [1965](circuits/france/le-mans/le-mans/1965.geo.json) |
| France | Magny Cours | Circuit de Nevers Magny-Cours | `magny_cours` | [1991-2008](circuits/france/magny-cours/circuit-de-nevers-magny-cours/1991-2008.geo.json) |
| France | Reims | Reims-Gueux | `reims` | [1950-1951](circuits/france/reims/reims-gueux/1950-1951.geo.json) · [1953-1966](circuits/france/reims/reims-gueux/1953-1966.geo.json) |
| France | Rouen | Rouen-Les-Essarts | `essarts` | [1952](circuits/france/rouen/rouen-les-essarts/1952.geo.json) · [1957-1968](circuits/france/rouen/rouen-les-essarts/1957-1968.geo.json) |
| Germany | Berlin | AVUS | `avus` | [1959](circuits/germany/berlin/avus/1959.geo.json) |
| Germany | Hockenheim | Hockenheimring | `hockenheimring` | [1970-](circuits/germany/hockenheim/hockenheimring/1970-.geo.json) |
| Germany | Nurburg | Nurburgring | `nurburgring` | [1951-](circuits/germany/n%C3%BCrburg/n%C3%BCrburgring/1951-.geo.json) |
| Hungary | Budapest | Hungaroring | `hungaroring` | [1986-1989](circuits/hungary/budapest/hungaroring/1986-1989.geo.json) · [1989-2002](circuits/hungary/budapest/hungaroring/1989-2002.geo.json) · [2003-](circuits/hungary/budapest/hungaroring/2003-.geo.json) |
| India | Uttar Pradesh | Buddh International Circuit | `buddh` | [2011-2013](circuits/india/uttar-pradesh/buddh-international-circuit/2011-2013.geo.json) |
| Italy | Imola | Autodromo Enzo e Dino Ferrari | `imola` | [1980-1994](circuits/italy/imola/autodromo-enzo-e-dino-ferrari/1980-1994.geo.json) · [1995-2006](circuits/italy/imola/autodromo-enzo-e-dino-ferrari/1995-2006.geo.json) · [2020-](circuits/italy/imola/autodromo-enzo-e-dino-ferrari/2020-.geo.json) |
| Italy | Monza | Autodromo Nazionale di Monza | `monza` | [1950-](circuits/italy/monza/autodromo-nazionale-di-monza/1950-.geo.json) |
| Italy | Mugello | Autodromo Internazionale del Mugello | `mugello` | [2020](circuits/italy/mugello/autodromo-internazionale-del-mugello/2020.geo.json) |
| Italy | Pescara | Pescara Circuit | `pescara` | [1957](circuits/italy/pescara/pescara-circuit/1957.geo.json) |
| Japan | Okayama | Okayama International Circuit | `okayama` | [1994-1995](circuits/japan/okayama/okayama-international-circuit/1994-1995.geo.json) |
| Japan | Oyama | Fuji Speedway | `fuji` | [1976-1977](circuits/japan/oyama/fuji-speedway/1976-1977.geo.json) · [2007-2008](circuits/japan/oyama/fuji-speedway/2007-2008.geo.json) |
| Japan | Suzuka | Suzuka Circuit | `suzuka` | [1987-](circuits/japan/suzuka/suzuka-circuit/1987-.geo.json) |
| Korea | Yeongam County | Korean International Circuit | `yeongam` | [2010-2013](circuits/korea/yeongam-county/korean-international-circuit/2010-2013.geo.json) |
| Malaysia | Kuala Lumpur | Sepang International Circuit | `sepang` | [1999-2017](circuits/malaysia/kuala-lumpur/sepang-international-circuit/1999-2017.geo.json) |
| Mexico | Mexico City | Autodromo Hermanos Rodriguez | `rodriguez` | [1962-1970](circuits/mexico/mexico-city/aut%C3%B3dromo-hermanos-rodr%C3%ADguez/1962-1970.geo.json) · [1986-1992](circuits/mexico/mexico-city/aut%C3%B3dromo-hermanos-rodr%C3%ADguez/1986-1992.geo.json) · [2015-](circuits/mexico/mexico-city/aut%C3%B3dromo-hermanos-rodr%C3%ADguez/2015-.geo.json) |
| Monaco | Monte-Carlo | Circuit de Monaco | `monaco` | [1950-1972](circuits/monaco/monte-carlo/circuit-de-monaco/1950-1972.geo.json) · [1973-1975](circuits/monaco/monte-carlo/circuit-de-monaco/1973-1975.geo.json) · [1976-1985](circuits/monaco/monte-carlo/circuit-de-monaco/1976-1985.geo.json) · [1986-1996](circuits/monaco/monte-carlo/circuit-de-monaco/1986-1996.geo.json) · [1997-2002](circuits/monaco/monte-carlo/circuit-de-monaco/1997-2002.geo.json) · [2003-2014](circuits/monaco/monte-carlo/circuit-de-monaco/2003-2014.geo.json) · [2015-](circuits/monaco/monte-carlo/circuit-de-monaco/2015-.geo.json) |
| Morocco | Casablanca | Ain Diab | `ain-diab` | [1957-1958](circuits/morocco/casablanca/ain-diab/1957-1958.geo.json) |
| Netherlands | Zandvoort | Circuit Park Zandvoort | `zandvoort` | [1952-1971](circuits/netherlands/zandvoort/circuit-park-zandvoort/1952-1971.geo.json) · [1972-1985](circuits/netherlands/zandvoort/circuit-park-zandvoort/1972-1985.geo.json) · [2020-](circuits/netherlands/zandvoort/circuit-park-zandvoort/2020-.geo.json) |
| Portugal | Estoril | Autódromo do Estoril | `estoril` | [1984-1993](circuits/portugal/estoril/aut%C3%B3dromo-do-estoril/1984-1993.geo.json) · [1994-1996](circuits/portugal/estoril/aut%C3%B3dromo-do-estoril/1994-1996.geo.json) |
| Portugal | Lisbon | Monsanto Park Circuit | `monsanto` | [1959](circuits/portugal/lisbon/monsanto-park-circuit/1959.geo.json) |
| Portugal | Oporto | Circuito da Boavista | `boavista` | [1958-1960](circuits/portugal/oporto/circuito-da-boavista/1958-1960.geo.json) |
| Portugal | Portimão | Autodromo Internacional do Algarve | `portimao` | [2020-](circuits/portugal/portim%C3%A3o/autodromo-internacional-do-algarve/2020-.geo.json) |
| Qatar | Al Daayen | Losail International Circuit | `losail` | [2021-](circuits/qatar/al-daayen/losail-international-circuit/2021-.geo.json) |
| Russia | Sochi | Sochi Autodrom | `sochi` | [2014-](circuits/russia/sochi/sochi-autodrom/2014-.geo.json) |
| Saudi Arabia | Jeddah | Jeddah Corniche Circuit | `jeddah` | [2021-](circuits/saudi-arabia/jeddah/jeddah-corniche-circuit/2021-.geo.json) |
| Singapore | Marina Bay | Marina Bay Street Circuit | `marina_bay` | [2008-2022](circuits/singapore/marina-bay/marina-bay-street-circuit/2008-2022.geo.json) · [2023-](circuits/singapore/marina-bay/marina-bay-street-circuit/2023-.geo.json) |
| South Africa | Eastern Cape Province | Prince George Circuit | `george` | [1960-1966](circuits/south-africa/eastern-cape-province/prince-george-circuit/1960-1966.geo.json) |
| South Africa | Midrand | Kyalami | `kyalami` | [1967-1985](circuits/south-africa/midrand/kyalami/1967-1985.geo.json) · [1992-1993](circuits/south-africa/midrand/kyalami/1992-1993.geo.json) |
| Spain | Barcelona | Circuit de Pedralbes | `pedralbes` | [1951-1954](circuits/spain/barcelona/circuit-de-pedralbes/1951-1954.geo.json) |
| Spain | Barcelona | Montjuïc | `montjuic` | [1969-1975](circuits/spain/barcelona/montju%C3%AFc/1969-1975.geo.json) |
| Spain | Jerez de la Frontera | Circuito de Jerez | `jerez` | [1986-1990](circuits/spain/jerez-de-la-frontera/circuito-de-jerez/1986-1990.geo.json) · [1994-1997](circuits/spain/jerez-de-la-frontera/circuito-de-jerez/1994-1997.geo.json) |
| Spain | Madrid | Jarama | `jarama` | [1967-1981](circuits/spain/madrid/jarama/1967-1981.geo.json) |
| Spain | Madrid | Madring | `madring` | [2026-](circuits/spain/madrid/madring/2026-.geo.json) |
| Spain | Montmelo | Circuit de Barcelona-Catalunya | `catalunya` | [1991-1993](circuits/spain/montmel%C3%B3/circuit-de-barcelona-catalunya/1991-1993.geo.json) · [1994](circuits/spain/montmel%C3%B3/circuit-de-barcelona-catalunya/1994.geo.json) · [1995-2003](circuits/spain/montmel%C3%B3/circuit-de-barcelona-catalunya/1995-2003.geo.json) · [2004-2006](circuits/spain/montmel%C3%B3/circuit-de-barcelona-catalunya/2004-2006.geo.json) · [2007-2020](circuits/spain/montmel%C3%B3/circuit-de-barcelona-catalunya/2007-2020.geo.json) · [2021-](circuits/spain/montmel%C3%B3/circuit-de-barcelona-catalunya/2021-.geo.json) |
| Spain | Valencia | Valencia Street Circuit | `valencia` | [2008-2012](circuits/spain/valencia/valencia-street-circuit/2008-2012.geo.json) |
| Sweden | Anderstorp | Scandinavian Raceway | `anderstorp` | [1973-1977](circuits/sweden/anderstorp/scandinavian-raceway/1973-1977.geo.json) · [1978](circuits/sweden/anderstorp/scandinavian-raceway/1978.geo.json) |
| Switzerland | Bern | Circuit Bremgarten | `bremgarten` | [1950-1954](circuits/switzerland/bern/circuit-bremgarten/1950-1954.geo.json) |
| Turkey | Istanbul | Istanbul Park | `istanbul` | [2005-](circuits/turkey/istanbul/istanbul-park/2005-.geo.json) |
| UK | Castle Donington | Donington Park | `donington` | [1993](circuits/uk/castle-donington/donington-park/1993.geo.json) |
| UK | Kent | Brands Hatch | `brands_hatch` | [1964-1974](circuits/uk/kent/brands-hatch/1964-1974.geo.json) · [1976-1986](circuits/uk/kent/brands-hatch/1976-1986.geo.json) |
| UK | Liverpool | Aintree | `aintree` | [1955-1962](circuits/uk/liverpool/aintree/1955-1962.geo.json) |
| UK | Silverstone | Silverstone Circuit | `silverstone` | [1950-](circuits/uk/silverstone/silverstone-circuit/1950-.geo.json) |
| USA | Austin | Circuit of the Americas | `americas` | [2012-](circuits/united-states/austin/circuit-of-the-americas/2012-.geo.json) |
| USA | California | Long Beach | `long_beach` | [1976-1981](circuits/united-states/california/long-beach/1976-1981.geo.json) · [1982](circuits/united-states/california/long-beach/1982.geo.json) · [1983](circuits/united-states/california/long-beach/1983.geo.json) |
| USA | California | Riverside International Raceway | `riverside` | [1960](circuits/united-states/california/riverside-international-raceway/1960.geo.json) |
| USA | Dallas | Fair Park | `dallas` | [1984](circuits/united-states/dallas/fair-park/1984.geo.json) |
| USA | Detroit | Detroit Street Circuit | `detroit` | [1982-1988](circuits/united-states/detroit/detroit-street-circuit/1982-1988.geo.json) |
| USA | Florida | Sebring International Raceway | `sebring` | [1959](circuits/united-states/florida/sebring-international-raceway/1959.geo.json) |
| USA | Indianapolis | Indianapolis Motor Speedway | `indianapolis` | [2000-2007](circuits/united-states/indianapolis/indianapolis-motor-speedway/2000-2007.geo.json) · [1950-1960](circuits/united-states/indianapolis/indianapolis-motor-speedway/1950-1960.geo.json) |
| USA | Miami | Miami International Autodrome | `miami` | [2022-](circuits/united-states/miami/miami-international-autodrome/2022-.geo.json) |
| USA | Nevada | Las Vegas Street Circuit | `vegas` | [2023-](circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.geo.json) |
| USA | New York State | Watkins Glen | `watkins_glen` | [1961-1980](circuits/united-states/new-york-state/watkins-glen/1961-1980.geo.json) |
| USA | Phoenix | Phoenix street circuit | `phoenix` | [1989-1990](circuits/united-states/phoenix/phoenix-street-circuit/1989-1990.geo.json) · [1991](circuits/united-states/phoenix/phoenix-street-circuit/1991.geo.json) |
| United Arab Emirates | Abu Dhabi | Yas Marina Circuit | `yas_marina` | [2009-](circuits/united-arab-emirates/abu-dhabi/yas-marina-circuit/2009-.geo.json) |
The upstream data this repository started from is kept as it was: [f1-circuits.geo.json](f1-circuits.geo.json)
(every circuit in one GeoJSON file), [f1-locations.geo.json](f1-locations.geo.json) (one point per circuit) and
[f1-locations.json](f1-locations.json).
## Logs
The service writes one line per request: the visitor's address (from the proxy's `X-Forwarded-For`), the request,
its status, size and duration, the referrer and the user agent. Race schedules come from Jolpica, paced under its
rate limit and kept in `cache/jolpica/`; a throttled or failed fetch is said in the log and never kept.
## Checks
`merge-check.sh` runs before a change merges: every Python file the service ships must parse, and the tests in
`tests/` must pass (every circuit has one unique `ergastId`, a race resolves by it, a failed Jolpica fetch is never
kept, every link in this README leads to a file).
## Acknowledgment
* [Initial circuits data source](https://www.google.com/maps/d/u/0/viewer?mid=1nv6ugq4H67CSzKUauW92-pPstYw&ll=-37.84579005412956%2C144.96881158570557&z=16)
* Started from [Tomislav Bacinger's f1-circuits](https://github.com/bacinger/f1-circuits), whose
[initial data source](https://www.google.com/maps/d/u/0/viewer?mid=1nv6ugq4H67CSzKUauW92-pPstYw&ll=-37.84579005412956%2C144.96881158570557&z=16)
and altitudes (from [Highs and lows - which F1 track has the most elevation changes?](https://www.formula1.com/en/latest/features/2016/10/highs-and-lows---which-f1-track-has-the-most-elevation-changes-.html))
are kept in the upstream files.
* Race schedules from [Jolpica](https://github.com/jolpica/jolpica-f1); poster backgrounds from Esri World
Imagery, OpenStreetMap and CARTO.
## Disclaimer
This repository is unofficial and is not associated in any way with the Formula 1 companies. F1, FORMULA ONE, FORMULA 1, FIA FORMULA ONE WORLD CHAMPIONSHIP, GRAND PRIX, and related marks are trademarks of Formula One Licensing B.V.
This repository is unofficial and is not associated in any way with the Formula 1 companies. F1, FORMULA ONE,
FORMULA 1, FIA FORMULA ONE WORLD CHAMPIONSHIP, GRAND PRIX, and related marks are trademarks of Formula One
Licensing B.V.
Formula 1™ circuits data are not official, and they are not approved nor endorsed by Formula One Licensing B.V.
## License
[The MIT License (MIT)](LICENSE.md) - Copyright (c) 2019-2024 Tomislav Bacinger
[The MIT License (MIT)](LICENSE.md) - Copyright (c) 2019-2024 Tomislav Bacinger