Files
f1-circuits/README.md
T
jschoubben 4362e2d10b Draw a picked photo only with bg=photo, keep bg=satellite to aerial imagery
The operator judged the Commons-photo poster unfit as a default: its crop lands beside the circuit and shows the
track only as an inset. bg=satellite is now the national aerial photo, else EOxCloudless (or the dark map where
"use": "map" is set); the new bg=photo draws the layout's picked photo and without one falls back to what
bg=satellite draws. A picks entry may hold the photo fields, "use": "map", or both; an unknown use and incomplete
photo fields are refused at load. The smallest width is 400 px so the full credit line stays readable, and the
ASCII credit header spells out ß, æ, ø, œ and đ so names stay readable.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 15:18:09 +01:00

193 lines
22 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# F1 Circuits
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.
* **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
How posters are made (sources and their licences, kept layers, options, credits): [docs/posters.md](docs/posters.md).
## The API
| 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?…` | a 1000×1500 race poster: the round, the race's name and date and its track over a picture of its circuit |
| `GET /posters/season/{season}.png?…` | a 1000×1500 season poster: the year over a picked photo of that season's cars, or over black |
| `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 |
| `GET /licences` | every source a picture may be made from: its licence, its credit and its terms, and how a picture's licence follows from them |
The three picture routes take the same options as query parameters ([docs/posters.md](docs/posters.md) lists
them): `style` (`classic`, `minimal`), `bg` (`satellite`, its alias `aerial`, `photo`, `osm`, `dark`, `light`, `none`),
`photo` (`natural`, `bw`), `show` (a comma list of `wordmark`, `round`, `name`, `subtitle`, `date`, `circuit`,
`locality`, `session`), `locator` and `checker` (`on`, `off`), `track` (`off`, or a colour with an optional width,
`#ffffff,6`), `dim` (0 to 1), `accent` (a colour), `width` (400 up to the picture's own) and `format` (`png`, `jpg`,
`webp`). An unknown option or value is answered 422, naming it. `bg=satellite` takes the national aerial photo
(USGS in the United States, PDOK in the Netherlands, IGN in France), else EOxCloudless; `{"use": "map"}` for a
layout in [circuits/photos.json](circuits/photos.json) makes it draw the dark map instead of EOxCloudless. `bg=photo`
takes the layout's picked Wikimedia Commons photo from that file, with the track as an inset, and without a pick
falls back to `bg=satellite`; no style takes it by default. Every picture carries the credit line of its sources at its
bottom and in `X-Credits`, its licence in `X-License` (it follows its sources), and `Link: </licences>; rel="license"`.
An unknown country, locality, circuit or layout, or a year no layout of the circuit covers, is answered 404, naming it.
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.
## The data
`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` | [1967](circuits/france/le-mans/le-mans/1967.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-](circuits/malaysia/kuala-lumpur/sepang-international-circuit/1999-.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.
## Caching
Race schedules from Jolpica are kept in `cache/jolpica/` (a season that is over for good, the running one for six
hours). What a picture needs from the network is a layer, kept for good in `layers/` (the module's `layers` directory,
backed up and fetched again if lost): the map picture of one source around a layout, a picked photo cropped to the
picture, the world locator and the track's outline. A layer is kept only whole, when every tile came and they are
not all one picture. Every finished picture is kept in `posters/` under a key of its route, its options and its
layers, at most 2 GB, the least recently used going first; a second season of a circuit draws from the kept layers
and fetches nothing. A picture whose map or photo did not arrive is served without it, kept nowhere, and sent with
five minutes' `Cache-Control` and no `ETag`.
Clients keep an address that carries the render version (`?v=r3`, as the Kometa file writes it) for good
(`immutable`); any other address a day, then ask again with its `ETag` and get a 304 while it is unchanged. Every
request the service makes carries the User-Agent `f1-circuits/<version> (+<its public address>)`. OpenStreetMap tiles
are fetched only when a picture asks for them, at most two at once; Wikimedia Commons is asked one request at a time.
## 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, an unknown circuit or layout is named; a poster's satellite source,
credits and licence, its options, keys and cache headers, and the picture store's cap).
## Acknowledgment
* 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) (CC BY-NC-SA 4.0); the posters' pictures from
Wikimedia Commons, USGS, PDOK (Beeldmateriaal Nederland), IGN, EOX (EOxCloudless) and OpenStreetMap, each under
its licence and with its credit: `/licences` and [docs/posters.md](docs/posters.md).
## 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.
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