Commit Graph
103 Commits
Author SHA1 Message Date
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
jschoubben d514eb57a3 Name an unknown circuit, layout or year with a 404 instead of a 500
The circuit and track routes walked circuits.json with chained lookups, so an unknown country, locality, circuit
or layout, or a year no layout covers, raised and answered 500 (/circuits/photos.json among them). One lookup now
names the first unknown part and the API answers it 404. numpy loads only where a script uses it, so the models,
and this lookup's test, need the standard library alone.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 15:13:34 +01:00
jschoubben db5c19f0d4 Draw posters from kept layers of licensed sources, credited on every picture
Esri's, Bing's and Google's terms forbid keeping or serving pictures made from their maps, so the posters move to
sources whose licence allows a kept copy: a picked Wikimedia Commons photo, USGS, PDOK and IGN's frozen 2021-2023
mosaic by country, else EOxCloudless's newest mosaic, and OpenStreetMap for the maps and the locator. What needs
the network is a layer fetched once and kept whole in layers/; texts, colours, size and format are drawn on every
request, and finished pictures are kept in posters/ up to 2 GB. Every picture carries its sources' credit line,
X-Credits, X-License (which follows its sources) and a link to /licences. Options are checked into a named 422;
the Kometa file states Jolpica's licence and versions its addresses so clients keep them for good. A layout whose
trace is a point (Madring) is drawn at the circuit's location instead of failing.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 15:13:29 +01:00
jschoubben 4f00403e13 Design the posters: licensed sources, kept layers, options, credits
Decided with the operator on 2026-11-27 after reading every source's
terms: Esri (and Bing, Azure, Google, Mapbox, MapTiler) do not allow
keeping or serving images made from their maps, so satellite pictures
come from picked Commons photos, national open aerial photos and
EOxCloudless, maps from OpenStreetMap. Heavy layers are fetched once and
kept; options are drawn on the fly; every picture carries its sources'
credits. The design lives in docs/posters.md.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 14:37:13 +01:00
jschoubben 6e62440102 Drop the tile store; a map counts only when every tile came
Review round 3 found two more holes in the disk tile store: a lone
fetched placeholder tile could not be judged and was kept, then vouched
for its neighbours; and a map with some tiles on disk and the rest
refused counted as whole, so a poster with black squares was kept for
good. Three rounds on one part: the store is taken out of this change,
to come back designed whole (placeholders remembered, a lone tile
judged against a fresh neighbour).

Tiles are fetched in parallel as before, all from the network. A map is
drawn only when every tile it needs came and they are not all one
picture; otherwise it is None, and its poster or thumb is drawn
without it, served for five minutes and not kept. A race poster is kept
only when its world locator came too.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 10:46:12 +01:00
jschoubben 670ecc0162 Judge fetched tiles apart from kept ones; share Esri's request slots
Review round 2: with part of a map's tiles on disk, the placeholder
check saw several pictures and let a provider's placeholder through,
drew it and kept it for 30 days. The tiles fetched now are judged on
their own: two or more that are all one picture matching no kept tile
are a placeholder, and the map fails whole (nothing drawn or kept, the
poster served for five minutes). A real uniform tile, such as open sea,
matches one kept before and passes.

From its notes: the request slots are per tile host, so the satellite
and both grey canvases share Esri's six; a weak If-None-Match matches;
the README says a poster is kept once its map or photo came.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 10:42:48 +01:00
jschoubben b6652c9955 Name the Le Mans and Sepang layouts by the years F1 raced on them
The Bugatti Circuit held one Grand Prix, in 1967 (1965 is when it opened),
and Sepang returns in 2026 on the same track, so its layout runs on from 1999.
A race resolves its layout by year, so the old names missed 1967 and 2026.
The README's circuit table is regenerated from circuits.json to follow.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 10:37:17 +01:00
jschoubben 8237aabd87 Say in the README what the service keeps in its cache and for how long
Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 10:31:48 +01:00
jschoubben ec94c69222 Draw dark and light posters from Esri; keep no poster whose picture failed
CARTO's basemaps now need an API key and answer every tile with an "API
KEY REQUIRED" picture under a 200, so the dark and light backgrounds and
the world locator showed that text. They now use Esri's grey canvases,
which need no key and draw to zoom 16; each provider names its deepest
zoom, and a race poster resolves its position once, capped to it, for
the map, the projected track and the locator alike. One tile stitcher
replaces three copies and refuses a map whose tiles are all the same
picture: a provider's placeholder is said in the log, not drawn.

A race poster, a thumb or a season poster whose map or photo failed is
served but no longer kept, so the next ask renders it again; race
posters carry a render version in their file name, so those drawn over
CARTO's placeholder are rendered again.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 09:58:14 +01:00
jschoubben 4c4a561141 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
2026-11-27 09:48:30 +01:00
jschoubben c94ebcfb22 Add all local circuit work — year-by-year SVGs and tooling 2026-03-25 22:17:47 +01:00
Tomislav Bacinger fbdfdbb87b ReadMe file 2024-02-08 12:44:13 +01:00
Tomislav Bacinger 4fb47c4634 ReadMe file 2024-02-08 12:40:24 +01:00
Tomislav Bacinger bc0faf01dc ReadMe file 2024-02-08 12:38:52 +01:00
Tomislav Bacinger d8a2fe292c ReadMe file 2024-01-16 10:17:58 +01:00
Tomislav Bacinger 9351a8beb0 ReadMe file 2023-10-31 12:31:01 +01:00
Tomislav Bacinger c07b004f63 ReadMe file 2023-10-26 13:24:03 +02:00
Tomislav Bacinger 86ee665a34 ReadMe file 2023-09-07 09:54:31 +02:00
Tomislav Bacinger c26936b022 ReadMe file 2023-03-16 09:13:28 +01:00
Tomislav Bacinger e667e15830 ReadMe file 2022-11-11 14:02:21 +01:00
Tomislav Bacinger ccbbc5765d ReadMe file 2022-11-11 14:01:53 +01:00
Tomislav Bacinger 9efe305a7c ReadMe file 2022-11-11 13:53:47 +01:00
Tomislav Bacinger 0f2f92e665 ReadMe file 2022-09-22 10:04:24 +02:00
Tomislav Bacinger abf57fd454 ReadMe file 2022-09-21 11:02:00 +02:00
Tomislav Bacinger 1fab95311b Fix Austin length 2022-09-21 10:01:46 +02:00
Tomislav Bacinger 67ccc5542b ReadMe file 2022-09-20 19:22:12 +02:00
Tomislav Bacinger 468d0e5329 ReadMe file 2022-09-20 18:36:29 +02:00
Eric Bradley ec0e926694 Fixed typo in readme 2022-02-14 23:54:36 -06:00
Eric Bradley c92ffc1772 Added Miami International Autodrome 2022-02-14 23:53:38 -06:00
Tomislav Bacinger 5e44780a48 ReadMe file 2021-03-20 11:07:15 +01:00
Tomislav Bacinger 9f8ed6a630 ReadMe file 2021-03-19 21:03:21 +01:00
Tomislav Bacinger ee54f3999b ReadMe file 2021-03-19 20:58:32 +01:00
Tomislav Bacinger 8755c5fe4b ReadMe file 2021-03-14 13:35:01 +01:00
Tomislav Bacinger d952c7ec90 ReadMe file 2021-03-13 19:06:39 +01:00
Tomislav Bacinger 22def59183 ReadMe file 2021-03-12 11:45:55 +01:00
Tomislav Bacinger bda0e8d77c ReadMe file 2021-01-13 11:19:26 +01:00
Tomislav Bacinger ad2bfd5441 ReadMe file 2020-12-06 20:17:22 +01:00
Tomislav Bacinger b46c5cfdf5 ReadMe file 2020-12-06 18:16:25 +01:00
Tomislav Bacinger 5a7dc707c4 ReadMe file 2020-11-28 20:43:59 +01:00
Tomislav Bacinger b2400a4a59 ReadMe file 2020-11-23 14:44:31 +01:00
Tomislav Bacinger b822c0c1ba ReadMe file 2020-11-08 20:47:26 +01:00
Tomislav Bacinger 5b869925ec ReadMe file 2020-11-08 20:43:47 +01:00
Tomislav Bacinger b679154a38 Update wording 2020-11-08 20:42:50 +01:00
Tomislav Bacinger cecc452a51 ReadMe file 2020-11-07 13:57:05 +01:00
Tomislav Bacinger f1c40fc4e0 ReadMe file 2020-11-07 13:53:48 +01:00
Tomislav Bacinger d6fc0fd555 ReadMe file 2020-11-07 13:43:03 +01:00
Tomislav Bacinger 8fca6f60aa ReadMe file 2020-11-02 13:48:40 +01:00
Tomislav Bacinger e426a92966 ReadMe file 2020-11-02 13:46:25 +01:00
Tomislav Bacinger 4589c2e461 Add Spielberg 2020-11-02 13:39:47 +01:00
Tomislav Bacinger 0cb189baa1 Add Spa 2020-11-02 13:36:49 +01:00