diff --git a/LICENSE.md b/LICENSE.md index 0e2f714..0dea871 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2019-2024 Tomislav Bacinger +Copyright (c) 2019-2025 Tomislav Bacinger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c9c857e..f443f13 100644 --- a/README.md +++ b/README.md @@ -189,4 +189,4 @@ Formula 1™ circuits data are not official, and they are not approved nor endor ## License -[The MIT License (MIT)](LICENSE.md) - Copyright (c) 2019-2024 Tomislav Bacinger +[The MIT License (MIT)](LICENSE.md) - Copyright (c) 2019-2025 Tomislav Bacinger diff --git a/circuits/azerbaijan/baku/baku-city-circuit/2016-.geo.json b/circuits/azerbaijan/baku/baku-city-circuit/2016-.geo.json index 3bed2c8..3f360a0 100644 --- a/circuits/azerbaijan/baku/baku-city-circuit/2016-.geo.json +++ b/circuits/azerbaijan/baku/baku-city-circuit/2016-.geo.json @@ -3,7 +3,7 @@ "name": "az-2016", "bbox": [ 49.830927, - 40.362639, + 40.362541, 49.855189, 40.376148 ], @@ -15,21 +15,13 @@ "Location": "Baku", "Name": "Baku City Circuit", "opened": 2016, - "seasons": [ - 2017, - 2018, - 2019, - 2021, - 2022, - 2023, - 2024 - ], + "firstgp": 2016, "length": 6003, "altitude": -25 }, "bbox": [ 49.830927, - 40.362639, + 40.362541, 49.855189, 40.376148 ], @@ -41,340 +33,340 @@ 40.372688 ], [ - 49.851442, - 40.372113 - ], - [ - 49.848684, - 40.371218 - ], - [ - 49.847606, - 40.370845 - ], - [ - 49.844949, - 40.369978 - ], - [ - 49.84386, - 40.369591 - ], - [ - 49.842635, - 40.3692 - ], - [ - 49.84225, - 40.369059 - ], - [ - 49.841836, - 40.368889 - ], - [ - 49.841469, - 40.368705 - ], - [ - 49.838752, - 40.367098 - ], - [ - 49.838586, - 40.366985 - ], - [ - 49.838444, - 40.366824 - ], - [ - 49.838373, - 40.366655 - ], - [ - 49.838207, - 40.365792 - ], - [ - 49.83813, - 40.365632 - ], - [ - 49.837976, - 40.365467 - ], - [ - 49.836088, - 40.364156 - ], - [ - 49.835911, - 40.363982 - ], - [ - 49.835757, - 40.363765 - ], - [ - 49.835094, - 40.362832 - ], - [ - 49.834993, - 40.362747 - ], - [ - 49.834839, - 40.362667 - ], - [ - 49.83462, - 40.362639 - ], - [ - 49.834431, - 40.362662 - ], - [ - 49.834094, - 40.362756 - ], - [ - 49.833478, - 40.362964 - ], - [ - 49.831282, - 40.363841 - ], - [ - 49.831152, - 40.363958 - ], - [ - 49.831099, - 40.364076 - ], - [ - 49.830927, - 40.365957 - ], - [ - 49.830963, - 40.366141 - ], - [ - 49.831489, - 40.367503 - ], - [ - 49.831643, - 40.367744 - ], - [ - 49.831809, - 40.367913 - ], - [ - 49.832022, - 40.368045 - ], - [ - 49.833093, - 40.368535 - ], - [ - 49.834715, - 40.369139 - ], - [ - 49.835733, - 40.369408 - ], - [ - 49.835875, - 40.369403 - ], - [ - 49.83597, - 40.369356 - ], - [ - 49.836035, - 40.369294 - ], - [ - 49.836171, - 40.368955 - ], - [ - 49.836248, - 40.368865 - ], - [ - 49.836402, - 40.368818 - ], - [ - 49.836544, - 40.368828 - ], - [ - 49.836692, - 40.368832 - ], - [ - 49.836834, - 40.368804 - ], - [ - 49.837065, - 40.368696 - ], - [ - 49.837219, - 40.368696 - ], - [ - 49.837337, - 40.368677 - ], - [ - 49.837414, - 40.368616 - ], - [ - 49.838053, - 40.367183 - ], - [ - 49.838195, - 40.367065 - ], - [ - 49.838367, - 40.36706 - ], - [ - 49.838539, - 40.36715 - ], - [ - 49.838947, - 40.367432 - ], - [ - 49.841362, - 40.368856 - ], - [ - 49.841764, - 40.369125 - ], - [ - 49.841853, - 40.369191 - ], - [ - 49.841859, - 40.369276 - ], - [ - 49.841682, - 40.369572 - ], - [ - 49.841658, - 40.369667 - ], - [ - 49.841723, - 40.369733 - ], - [ - 49.842783, - 40.370251 - ], - [ - 49.84357, - 40.370581 - ], - [ - 49.844961, - 40.371081 - ], - [ - 49.845085, - 40.371189 - ], - [ - 49.845079, - 40.371312 - ], - [ - 49.84428, - 40.372891 - ], - [ - 49.84428, - 40.373065 - ], - [ - 49.84444, - 40.373193 - ], - [ - 49.846884, - 40.374046 - ], - [ - 49.849719, - 40.375017 - ], - [ - 49.851797, - 40.37563 - ], - [ - 49.853496, - 40.376148 - ], - [ - 49.853602, - 40.376134 - ], - [ - 49.853685, - 40.376092 - ], - [ - 49.854188, - 40.37522 - ], - [ - 49.854798, - 40.374319 - ], - [ - 49.855159, - 40.373607 - ], - [ - 49.855189, - 40.37349 - ], - [ - 49.855177, - 40.373409 + 49.855023, + 40.373268 ], [ 49.855117, 40.373325 ], [ - 49.855023, - 40.373268 + 49.855177, + 40.373409 + ], + [ + 49.855189, + 40.37349 + ], + [ + 49.855159, + 40.373607 + ], + [ + 49.854693, + 40.374371 + ], + [ + 49.854188, + 40.37522 + ], + [ + 49.853685, + 40.376092 + ], + [ + 49.853602, + 40.376134 + ], + [ + 49.853496, + 40.376148 + ], + [ + 49.851797, + 40.37563 + ], + [ + 49.849719, + 40.375017 + ], + [ + 49.846884, + 40.374046 + ], + [ + 49.84444, + 40.373193 + ], + [ + 49.84423, + 40.373102 + ], + [ + 49.844188, + 40.372906 + ], + [ + 49.845096, + 40.371215 + ], + [ + 49.845087, + 40.371103 + ], + [ + 49.844467, + 40.370887 + ], + [ + 49.843241, + 40.370488 + ], + [ + 49.842408, + 40.370106 + ], + [ + 49.841935, + 40.369878 + ], + [ + 49.841731, + 40.369687 + ], + [ + 49.841736, + 40.369485 + ], + [ + 49.841859, + 40.369244 + ], + [ + 49.841817, + 40.369132 + ], + [ + 49.84166, + 40.369013 + ], + [ + 49.840066, + 40.368088 + ], + [ + 49.838947, + 40.367432 + ], + [ + 49.838477, + 40.367168 + ], + [ + 49.838321, + 40.367075 + ], + [ + 49.838174, + 40.367071 + ], + [ + 49.838053, + 40.367183 + ], + [ + 49.837442, + 40.368517 + ], + [ + 49.837345, + 40.368726 + ], + [ + 49.837243, + 40.368755 + ], + [ + 49.837091, + 40.368716 + ], + [ + 49.836893, + 40.3688 + ], + [ + 49.836732, + 40.368858 + ], + [ + 49.836434, + 40.368845 + ], + [ + 49.836255, + 40.368863 + ], + [ + 49.836168, + 40.368917 + ], + [ + 49.836123, + 40.369052 + ], + [ + 49.836011, + 40.369317 + ], + [ + 49.835893, + 40.369447 + ], + [ + 49.835721, + 40.369434 + ], + [ + 49.835016, + 40.369241 + ], + [ + 49.834382, + 40.369045 + ], + [ + 49.832977, + 40.368541 + ], + [ + 49.831946, + 40.368068 + ], + [ + 49.83169, + 40.36792 + ], + [ + 49.831539, + 40.367693 + ], + [ + 49.831265, + 40.366983 + ], + [ + 49.830942, + 40.36612 + ], + [ + 49.830927, + 40.365957 + ], + [ + 49.831065, + 40.364172 + ], + [ + 49.831051, + 40.364003 + ], + [ + 49.831108, + 40.363913 + ], + [ + 49.833478, + 40.362964 + ], + [ + 49.833894, + 40.362815 + ], + [ + 49.834357, + 40.362639 + ], + [ + 49.834674, + 40.362541 + ], + [ + 49.83484, + 40.36257 + ], + [ + 49.834993, + 40.362747 + ], + [ + 49.835303, + 40.363179 + ], + [ + 49.835635, + 40.363656 + ], + [ + 49.835947, + 40.36411 + ], + [ + 49.836032, + 40.364197 + ], + [ + 49.837749, + 40.365388 + ], + [ + 49.837995, + 40.365562 + ], + [ + 49.838142, + 40.365825 + ], + [ + 49.838331, + 40.36672 + ], + [ + 49.838393, + 40.366915 + ], + [ + 49.83853, + 40.367067 + ], + [ + 49.838823, + 40.367233 + ], + [ + 49.841165, + 40.368612 + ], + [ + 49.841595, + 40.36885 + ], + [ + 49.841856, + 40.368962 + ], + [ + 49.842622, + 40.369232 + ], + [ + 49.844282, + 40.36977 + ], + [ + 49.845881, + 40.370304 + ], + [ + 49.847461, + 40.370818 + ], + [ + 49.848684, + 40.371218 + ], + [ + 49.851442, + 40.372113 ], [ 49.853247, diff --git a/circuits/azerbaijan/baku/baku-city-circuit/2016-.png b/circuits/azerbaijan/baku/baku-city-circuit/2016-.png index e1621af..28e2238 100644 Binary files a/circuits/azerbaijan/baku/baku-city-circuit/2016-.png and b/circuits/azerbaijan/baku/baku-city-circuit/2016-.png differ diff --git a/circuits/azerbaijan/baku/baku-city-circuit/2016-.svg b/circuits/azerbaijan/baku/baku-city-circuit/2016-.svg index dbe81a6..9d21602 100644 --- a/circuits/azerbaijan/baku/baku-city-circuit/2016-.svg +++ b/circuits/azerbaijan/baku/baku-city-circuit/2016-.svg @@ -1,5 +1,5 @@ Baku City Circuit - Baku - + \ No newline at end of file diff --git a/circuits/spain/madrid/madring/2026-.geo.json b/circuits/spain/madrid/madring/2026-.geo.json index 614ad04..b954f8f 100644 --- a/circuits/spain/madrid/madring/2026-.geo.json +++ b/circuits/spain/madrid/madring/2026-.geo.json @@ -1,34 +1,497 @@ { "type": "FeatureCollection", - "name": "es-madring", + "name": "es-2026", "bbox": [ - -3.62, - 40.462, - -3.61, - 40.47 + -3.62534, + 40.464278, + -3.611988, + 40.480641 ], "features": [ { "type": "Feature", "properties": { - "id": "es-madring", + "id": "es-2026", "Location": "Madrid", - "Name": "Madring", + "Name": "Circuito de Madring", "opened": 2026, - "length": 5416, - "altitude": 620 + "firstgp": 2026, + "length": 5474, + "altitude": 646 }, "bbox": [ - -3.62, - 40.462, - -3.61, - 40.47 + -3.62534, + 40.464278, + -3.611988, + 40.480641 ], "geometry": { - "type": "Point", + "type": "LineString", "coordinates": [ - -3.61528, - 40.46528 + [ + -3.616887, + 40.465178 + ], + [ + -3.619097, + 40.464882 + ], + [ + -3.619229, + 40.464821 + ], + [ + -3.61925, + 40.464438 + ], + [ + -3.619316, + 40.464377 + ], + [ + -3.619673, + 40.464327 + ], + [ + -3.620088, + 40.464278 + ], + [ + -3.620452, + 40.464294 + ], + [ + -3.620904, + 40.464438 + ], + [ + -3.621225, + 40.464671 + ], + [ + -3.622922, + 40.466741 + ], + [ + -3.62384, + 40.467827 + ], + [ + -3.624116, + 40.468257 + ], + [ + -3.624284, + 40.46855 + ], + [ + -3.624364, + 40.468728 + ], + [ + -3.624554, + 40.469276 + ], + [ + -3.624641, + 40.469864 + ], + [ + -3.624612, + 40.470307 + ], + [ + -3.624532, + 40.470784 + ], + [ + -3.624313, + 40.471233 + ], + [ + -3.624095, + 40.47151 + ], + [ + -3.624007, + 40.471604 + ], + [ + -3.624007, + 40.471681 + ], + [ + -3.624131, + 40.471737 + ], + [ + -3.624233, + 40.471814 + ], + [ + -3.624218, + 40.471909 + ], + [ + -3.624131, + 40.472003 + ], + [ + -3.62408, + 40.472114 + ], + [ + -3.624109, + 40.472335 + ], + [ + -3.624262, + 40.47274 + ], + [ + -3.624393, + 40.473017 + ], + [ + -3.624583, + 40.473244 + ], + [ + -3.624743, + 40.47341 + ], + [ + -3.62483, + 40.473604 + ], + [ + -3.625056, + 40.474303 + ], + [ + -3.62518, + 40.474563 + ], + [ + -3.625333, + 40.47469 + ], + [ + -3.62534, + 40.474779 + ], + [ + -3.625209, + 40.474857 + ], + [ + -3.624976, + 40.474992 + ], + [ + -3.624852, + 40.475148 + ], + [ + -3.624852, + 40.475303 + ], + [ + -3.624932, + 40.475491 + ], + [ + -3.625297, + 40.476001 + ], + [ + -3.625326, + 40.476142 + ], + [ + -3.62534, + 40.477106 + ], + [ + -3.625304, + 40.477483 + ], + [ + -3.625158, + 40.477641 + ], + [ + -3.624838, + 40.477829 + ], + [ + -3.624481, + 40.478051 + ], + [ + -3.624342, + 40.478262 + ], + [ + -3.62435, + 40.478517 + ], + [ + -3.624393, + 40.478669 + ], + [ + -3.62483, + 40.479472 + ], + [ + -3.624874, + 40.479738 + ], + [ + -3.624845, + 40.48001 + ], + [ + -3.624692, + 40.480254 + ], + [ + -3.624459, + 40.480464 + ], + [ + -3.624109, + 40.480597 + ], + [ + -3.62373, + 40.480641 + ], + [ + -3.623322, + 40.480625 + ], + [ + -3.622922, + 40.48047 + ], + [ + -3.622536, + 40.480209 + ], + [ + -3.622303, + 40.47991 + ], + [ + -3.622237, + 40.479561 + ], + [ + -3.622266, + 40.479245 + ], + [ + -3.622426, + 40.478913 + ], + [ + -3.622667, + 40.478594 + ], + [ + -3.622791, + 40.478439 + ], + [ + -3.623993, + 40.477298 + ], + [ + -3.62459, + 40.476599 + ], + [ + -3.624641, + 40.476477 + ], + [ + -3.624597, + 40.476306 + ], + [ + -3.624342, + 40.476123 + ], + [ + -3.623483, + 40.475666 + ], + [ + -3.623133, + 40.475433 + ], + [ + -3.62298, + 40.475239 + ], + [ + -3.622907, + 40.47504 + ], + [ + -3.622907, + 40.47405 + ], + [ + -3.622864, + 40.473856 + ], + [ + -3.622725, + 40.473629 + ], + [ + -3.622521, + 40.473394 + ], + [ + -3.622303, + 40.473211 + ], + [ + -3.622004, + 40.473072 + ], + [ + -3.621654, + 40.472984 + ], + [ + -3.620044, + 40.472984 + ], + [ + -3.619768, + 40.473078 + ], + [ + -3.619484, + 40.4732 + ], + [ + -3.619345, + 40.473228 + ], + [ + -3.619221, + 40.473144 + ], + [ + -3.618784, + 40.472646 + ], + [ + -3.618238, + 40.471917 + ], + [ + -3.618129, + 40.471734 + ], + [ + -3.61799, + 40.471579 + ], + [ + -3.617735, + 40.471457 + ], + [ + -3.617488, + 40.471424 + ], + [ + -3.616541, + 40.471518 + ], + [ + -3.616089, + 40.471512 + ], + [ + -3.61563, + 40.471391 + ], + [ + -3.615324, + 40.471161 + ], + [ + -3.615178, + 40.47095 + ], + [ + -3.614654, + 40.468719 + ], + [ + -3.614603, + 40.468445 + ], + [ + -3.614537, + 40.468312 + ], + [ + -3.614348, + 40.468295 + ], + [ + -3.614071, + 40.468451 + ], + [ + -3.613904, + 40.468484 + ], + [ + -3.612782, + 40.468589 + ], + [ + -3.61268, + 40.468506 + ], + [ + -3.612461, + 40.467946 + ], + [ + -3.612228, + 40.467212 + ], + [ + -3.61201, + 40.466237 + ], + [ + -3.611988, + 40.465982 + ], + [ + -3.61217, + 40.465821 + ], + [ + -3.612454, + 40.465771 + ], + [ + -3.616887, + 40.465178 + ] ] } } diff --git a/circuits/spain/madrid/madring/2026-.png b/circuits/spain/madrid/madring/2026-.png index 1a30972..c5ef18d 100644 Binary files a/circuits/spain/madrid/madring/2026-.png and b/circuits/spain/madrid/madring/2026-.png differ diff --git a/circuits/spain/madrid/madring/2026-.svg b/circuits/spain/madrid/madring/2026-.svg index 48e0823..e57633e 100644 --- a/circuits/spain/madrid/madring/2026-.svg +++ b/circuits/spain/madrid/madring/2026-.svg @@ -1,5 +1,5 @@ - + Madring - Madrid - + \ No newline at end of file diff --git a/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.geo.json b/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.geo.json index ec3fec3..45d7590 100644 --- a/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.geo.json +++ b/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.geo.json @@ -2,10 +2,10 @@ "type": "FeatureCollection", "name": "us-2023", "bbox": [ - -115.173015, - 36.108017, - -115.160217, - 36.125492 + -115.173181, + 36.107928, + -115.160107, + 36.12554 ], "features": [ { @@ -16,65 +16,101 @@ "Name": "Las Vegas Street Circuit", "opened": 2023, "firstgp": 2023, - "length": 6116, + "length": 6201, "altitude": 610 }, "bbox": [ - -115.173015, - 36.108017, - -115.160217, - 36.125492 + -115.173181, + 36.107928, + -115.160107, + 36.12554 ], "geometry": { "type": "LineString", "coordinates": [ [ - -115.162219, - 36.109017 + -115.161202, + 36.109904 ], [ - -115.16025, - 36.110295 - ], - [ - -115.160217, - 36.110399 - ], - [ - -115.160308, - 36.110513 + -115.160589, + 36.110461 ], [ -115.160459, - 36.110517 + 36.110578 ], [ - -115.161489, - 36.110472 + -115.160366, + 36.110705 ], [ - -115.162366, - 36.110008 + -115.160335, + 36.110856 ], [ - -115.162725, - 36.109881 + -115.160414, + 36.110992 ], [ - -115.163063, - 36.109861 + -115.160543, + 36.111079 ], [ - -115.163375, - 36.109975 + -115.160775, + 36.11115 ], [ - -115.163698, - 36.110252 + -115.160996, + 36.111179 ], [ - -115.163981, - 36.110815 + -115.161209, + 36.111169 + ], + [ + -115.161408, + 36.111121 + ], + [ + -115.161844, + 36.110909 + ], + [ + -115.162247, + 36.110586 + ], + [ + -115.162402, + 36.110503 + ], + [ + -115.162741, + 36.110442 + ], + [ + -115.162924, + 36.110445 + ], + [ + -115.163255, + 36.110535 + ], + [ + -115.163438, + 36.110617 + ], + [ + -115.163608, + 36.110734 + ], + [ + -115.16389, + 36.111042 + ], + [ + -115.164004, + 36.111303 ], [ -115.164082, @@ -85,52 +121,96 @@ 36.119152 ], [ - -115.163838, - 36.11919 + -115.163908, + 36.119211 ], [ - -115.162026, + -115.161934, + 36.119181 + ], + [ + -115.161342, 36.119184 ], [ - -115.161677, - 36.119275 + -115.161033, + 36.119242 ], [ - -115.1614, - 36.119472 + -115.160908, + 36.119329 ], [ - -115.160834, - 36.120057 + -115.160559, + 36.119604 ], [ - -115.160596, - 36.120547 + -115.160402, + 36.119783 ], [ - -115.160557, - 36.120991 + -115.160282, + 36.119976 ], [ - -115.160616, - 36.121204 + -115.160195, + 36.120145 ], [ - -115.160853, - 36.121263 + -115.160143, + 36.120365 ], [ - -115.160926, - 36.121353 + -115.160107, + 36.120627 ], [ - -115.160735, - 36.122189 + -115.160117, + 36.120781 ], [ - -115.160754, - 36.122295 + -115.160225, + 36.120836 + ], + [ + -115.160511, + 36.120862 + ], + [ + -115.160611, + 36.120913 + ], + [ + -115.160697, + 36.12102 + ], + [ + -115.160731, + 36.121187 + ], + [ + -115.160715, + 36.121309 + ], + [ + -115.160438, + 36.121696 + ], + [ + -115.16039, + 36.121799 + ], + [ + -115.160274, + 36.121977 + ], + [ + -115.160316, + 36.122164 + ], + [ + -115.160541, + 36.122284 ], [ -115.160959, @@ -173,87 +253,183 @@ 36.125279 ], [ - -115.169159, - 36.125492 + -115.168652, + 36.125432 ], [ - -115.169376, - 36.125433 + -115.169318, + 36.12554 ], [ - -115.169429, - 36.125279 + -115.169409, + 36.125522 ], [ - -115.171142, - 36.122745 + -115.169496, + 36.125468 ], [ - -115.171849, - 36.121548 + -115.169564, + 36.125284 ], [ - -115.17235, - 36.120307 + -115.169633, + 36.125158 ], [ - -115.172666, - 36.119312 + -115.170324, + 36.124067 ], [ - -115.172857, - 36.118128 + -115.170754, + 36.123418 ], [ - -115.17289, - 36.117356 + -115.170978, + 36.123089 ], [ - -115.172857, - 36.114684 + -115.171208, + 36.122772 ], [ - -115.173015, - 36.108714 + -115.171605, + 36.122215 ], [ - -115.172877, - 36.10857 + -115.172013, + 36.121466 ], [ - -115.1726, - 36.108469 + -115.172229, + 36.1209 ], [ - -115.172383, - 36.108448 + -115.172466, + 36.120249 ], [ - -115.172126, - 36.108235 + -115.172625, + 36.119783 ], [ - -115.171981, - 36.108091 + -115.172744, + 36.119319 ], [ - -115.17173, - 36.108038 + -115.172839, + 36.118849 ], [ - -115.163947, - 36.108017 + -115.17294, + 36.11816 ], [ - -115.16371, - 36.108091 + -115.172965, + 36.117758 ], [ - -115.162219, - 36.109017 + -115.172991, + 36.117279 + ], + [ + -115.17298, + 36.115982 + ], + [ + -115.172974, + 36.115241 + ], + [ + -115.172971, + 36.114679 + ], + [ + -115.173104, + 36.111742 + ], + [ + -115.173144, + 36.110235 + ], + [ + -115.173145, + 36.109483 + ], + [ + -115.173181, + 36.108577 + ], + [ + -115.173118, + 36.108504 + ], + [ + -115.173032, + 36.10848 + ], + [ + -115.172826, + 36.108483 + ], + [ + -115.172674, + 36.108436 + ], + [ + -115.172332, + 36.108159 + ], + [ + -115.172033, + 36.108021 + ], + [ + -115.171635, + 36.107958 + ], + [ + -115.169902, + 36.107928 + ], + [ + -115.167635, + 36.10795 + ], + [ + -115.16577, + 36.107941 + ], + [ + -115.164859, + 36.107951 + ], + [ + -115.164113, + 36.108035 + ], + [ + -115.163333, + 36.108155 + ], + [ + -115.16313, + 36.10823 + ], + [ + -115.162966, + 36.108313 + ], + [ + -115.162835, + 36.108413 + ], + [ + -115.161202, + 36.109904 ] ] } } ] -} +} \ No newline at end of file diff --git a/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.png b/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.png index 74dfafc..8831f6f 100644 Binary files a/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.png and b/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.png differ diff --git a/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.svg b/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.svg index fef2c8f..21fe53d 100644 --- a/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.svg +++ b/circuits/united-states/las-vegas/las-vegas-strip-street-circuit/2023-.svg @@ -1,5 +1,5 @@ Las Vegas Street Circuit - Nevada - + \ No newline at end of file diff --git a/circuits/united-states/miami/miami-international-autodrome/2022-.geo.json b/circuits/united-states/miami/miami-international-autodrome/2022-.geo.json index d9e5803..e45a77d 100644 --- a/circuits/united-states/miami/miami-international-autodrome/2022-.geo.json +++ b/circuits/united-states/miami/miami-international-autodrome/2022-.geo.json @@ -2,10 +2,10 @@ "type": "FeatureCollection", "name": "us-2022", "bbox": [ - -80.244805, - 25.955259, - -80.229711, - 25.960590 + -80.244783, + 25.955221, + -80.229764, + 25.96059 ], "features": [ { @@ -15,22 +15,66 @@ "Location": "Miami", "Name": "Miami International Autodrome", "opened": 2022, - "seasons": [2022, 2023, 2024], + "firstgp": 2022, "length": 5412, "altitude": 1 }, "bbox": [ - -80.244805, - 25.955259, - -80.229711, + -80.244783, + 25.955221, + -80.229764, 25.96059 ], "geometry": { "type": "LineString", "coordinates": [ [ - -80.236636, - 25.955895 + -80.237371, + 25.959092 + ], + [ + -80.235319, + 25.95794 + ], + [ + -80.235284, + 25.957855 + ], + [ + -80.235299, + 25.957776 + ], + [ + -80.23536, + 25.957671 + ], + [ + -80.235797, + 25.957379 + ], + [ + -80.235933, + 25.957247 + ], + [ + -80.235978, + 25.957009 + ], + [ + -80.235933, + 25.956757 + ], + [ + -80.235976, + 25.956446 + ], + [ + -80.236081, + 25.956247 + ], + [ + -80.236477, + 25.955962 ], [ -80.236928, @@ -125,20 +169,20 @@ 25.957311 ], [ - -80.24439, - 25.957229 + -80.244395, + 25.957215 ], [ -80.244562, 25.957076 ], [ - -80.244706, - 25.956851 + -80.244721, + 25.956852 ], [ - -80.244805, - 25.956619 + -80.244783, + 25.956614 ], [ -80.244776, @@ -165,132 +209,124 @@ 25.956157 ], [ - -80.243762, - 25.956178 + -80.243761, + 25.956156 ], [ - -80.243527, - 25.956146 + -80.243194, + 25.956048 ], [ - -80.242561, - 25.955939 + -80.242156, + 25.955859 ], [ - -80.242249, - 25.955896 + -80.241083, + 25.955887 ], [ - -80.241873, - 25.955898 + -80.239445, + 25.955948 ], [ - -80.239344, - 25.955952 + -80.238992, + 25.955819 ], [ - -80.23896, - 25.955847 + -80.238432, + 25.955639 ], [ - -80.238518, - 25.955702 - ], - [ - -80.23788, + -80.237981, 25.955496 ], [ - -80.237521, - 25.955398 + -80.237375, + 25.955323 ], [ - -80.237233, - 25.955329 + -80.236745, + 25.955228 ], [ - -80.236835, - 25.955278 + -80.236112, + 25.955221 ], [ - -80.236256, - 25.955259 - ], - [ - -80.235521, - 25.955351 + -80.235447, + 25.955319 ], [ -80.23484, 25.955511 ], [ - -80.233638, - 25.955878 + -80.233453, + 25.955966 ], [ - -80.232783, - 25.956175 + -80.232648, + 25.956242 ], [ -80.23226, 25.956397 ], [ - -80.231591, - 25.956683 - ], - [ - -80.231134, - 25.956926 + -80.231268, + 25.956871 ], [ -80.230734, 25.957178 ], [ - -80.230629, - 25.957322 + -80.230627, + 25.957308 ], [ - -80.230624, - 25.957412 + -80.230662, + 25.957416 ], [ - -80.230714, - 25.957497 + -80.230759, + 25.9575 ], [ - -80.230859, - 25.957578 + -80.231004, + 25.957633 ], [ - -80.231179, - 25.957794 + -80.231175, + 25.957748 ], [ - -80.231252, - 25.95794 + -80.231268, + 25.957916 ], [ - -80.231269, - 25.958145 + -80.231288, + 25.958091 ], [ - -80.231191, + -80.231233, 25.958304 ], [ - -80.23101, - 25.958424 + -80.231101, + 25.958423 ], [ - -80.2307, - 25.958456 + -80.230946, + 25.958479 ], [ - -80.23036, - 25.958483 + -80.230487, + 25.958454 + ], + [ + -80.230258, + 25.958482 ], [ -80.230157, @@ -301,44 +337,44 @@ 25.958676 ], [ - -80.229711, - 25.959114 + -80.229764, + 25.95906 ], [ - -80.229723, - 25.95918 + -80.22978, + 25.959144 ], [ - -80.229857, - 25.95923 + -80.229896, + 25.959186 ], [ - -80.229938, - 25.959267 + -80.230001, + 25.959256 ], [ - -80.229971, - 25.959336 + -80.230005, + 25.959399 ], [ - -80.229829, - 25.959781 + -80.229815, + 25.95995 ], [ - -80.22977, - 25.960005 + -80.22983, + 25.960044 ], [ - -80.22979, - 25.960073 + -80.229916, + 25.960107 ], [ - -80.22988, - 25.960131 + -80.230394, + 25.960146 ], [ - -80.23021, - 25.960149 + -80.237297, + 25.960366 ], [ -80.242801, @@ -361,108 +397,48 @@ 25.960144 ], [ - -80.242262, - 25.959854 + -80.242453, + 25.959941 ], [ - -80.242062, - 25.959736 + -80.242134, + 25.959787 ], [ - -80.24179, - 25.959705 + -80.241874, + 25.959728 ], [ - -80.241472, - 25.95977 + -80.241645, + 25.959745 ], [ - -80.240543, - 25.960163 + -80.241365, + 25.959836 ], [ - -80.240237, - 25.960266 + -80.240712, + 25.960112 ], [ - -80.239932, - 25.96027 + -80.240346, + 25.9602 ], [ - -80.239632, - 25.96024 + -80.239896, + 25.960235 ], [ - -80.23935, - 25.960194 + -80.239452, + 25.960179 ], [ - -80.238934, - 25.960033 + -80.239033, + 25.960022 ], [ - -80.235522, - 25.95807 - ], - [ - -80.235365, - 25.957974 - ], - [ - -80.235293, - 25.957894 - ], - [ - -80.23528, - 25.957799 - ], - [ - -80.235374, - 25.957669 - ], - [ - -80.235529, - 25.957582 - ], - [ - -80.235691, - 25.957473 - ], - [ - -80.235918, - 25.957258 - ], - [ - -80.235984, - 25.957061 - ], - [ - -80.235925, - 25.956832 - ], - [ - -80.235917, - 25.956661 - ], - [ - -80.235963, - 25.956401 - ], - [ - -80.236066, - 25.956259 - ], - [ - -80.236208, - 25.956124 - ], - [ - -80.236366, - 25.956036 - ], - [ - -80.236636, - 25.955895 + -80.237371, + 25.959092 ] ] } diff --git a/circuits/united-states/miami/miami-international-autodrome/2022-.png b/circuits/united-states/miami/miami-international-autodrome/2022-.png index 71cd556..1ae7760 100644 Binary files a/circuits/united-states/miami/miami-international-autodrome/2022-.png and b/circuits/united-states/miami/miami-international-autodrome/2022-.png differ diff --git a/circuits/united-states/miami/miami-international-autodrome/2022-.svg b/circuits/united-states/miami/miami-international-autodrome/2022-.svg index 6257e17..4810e6b 100644 --- a/circuits/united-states/miami/miami-international-autodrome/2022-.svg +++ b/circuits/united-states/miami/miami-international-autodrome/2022-.svg @@ -1,5 +1,5 @@ Miami International Autodrome - Miami - + \ No newline at end of file diff --git a/docs/posters.md b/docs/posters.md index 3b6c147..14d1ae7 100644 --- a/docs/posters.md +++ b/docs/posters.md @@ -39,6 +39,10 @@ the 2021–2023 mosaic covers the whole country, and its frozen date range is th for. EOX's 2016 mosaic (CC BY 4.0) was rejected by the operator: too soft to read a circuit. (EOX's capabilities also mark 2017 as CC BY 4.0.) +**The traces follow upstream.** A layout's trace is upstream's (bacinger/f1-circuits) newest trace of that +circuit, copied once into the repository word for word, never fetched at run time. A newer upstream trace of a +circuit already drawn is taken as a plain update. + **`bg=satellite`** (and `aerial`, kept for addresses already in use) takes, per layout, the national aerial photo of the circuit's country, else EOX's newest mosaic. The operator can switch a layout to the dark OpenStreetMap map, where EOX is too soft to read the circuit: `"use": "map"` in its entry of @@ -63,7 +67,9 @@ others. Commons: one API request at a time, at most five a second, at most two d A map is kept only when every tile came and the tiles are not all one picture (a provider's placeholder). `dark` and `light` are made from the kept OpenStreetMap layer. A layout whose trace is a point or empty is drawn -at the circuit's location, without a track. Layers live in the module's directory `layers`, class `rebuildable` +at the circuit's location, without a track; no current race may draw one, which the merge check holds: every +layout that `find_layout_slug_for_year` chooses for a season from 2020 on has a LineString trace of more than 10 +points (`tests/test_traces.py`). Layers live in the module's directory `layers`, class `rebuildable` (backed up; fetched again if lost). ## Finished images (kept, capped) @@ -153,6 +159,7 @@ logged when read: an unknown `use`, incomplete photo fields, an entry with neith ## Not in this change -The disk tile store (replaced by kept layers); renaming the service away from "F1"; the four layouts whose trace -is empty or a point, and the Bahrain and Donington traces that sit off their real track (traced separately); the -season photos matched to the operator's curated cars. +The disk tile store (replaced by kept layers); renaming the service away from "F1"; the three layouts whose trace +is empty (Mont-Tremblant 1968-1970, Buddh 2011-2013, Yeongam 2010-2013), Bahrain's trace that sits off its real +track, and Donington's, a copy of Aintree's trace (traced separately); the season photos matched to the +operator's curated cars. diff --git a/merge-check.sh b/merge-check.sh index 9d75e6c..828c819 100644 --- a/merge-check.sh +++ b/merge-check.sh @@ -10,8 +10,8 @@ # What the image ships, compiled before the merge: every Python file the service's image copies, and the # models it imports. Then the tests in tests/, which need the standard library only: every circuit in # circuits/circuits.json carries one unique ergastId, and a race's circuit resolves by that id, never by -# its name; a failed Jolpica fetch is never kept, a season that is over is read from disk, a throttled -# request is asked again; a poster's options, keys, cache headers and store cap, its satellite source, credits and +# its name; every layout a race from 2020 on draws has a traced line, never a point; a failed Jolpica +# fetch is never kept, a season that is over is read from disk, a throttled request is asked again; a poster's options, keys, cache headers and store cap, its satellite source, credits and # licence (poster_options.py and poster_sources.py, standard library only). # # **Said, never passed silently**: the service's dependencies (service/requirements.txt) are the image's to diff --git a/tests/test_traces.py b/tests/test_traces.py new file mode 100644 index 0000000..ffb529c --- /dev/null +++ b/tests/test_traces.py @@ -0,0 +1,43 @@ +"""Every layout a race from 2020 on draws has a traced line: a layout whose trace is a point or empty is drawn without +a track (docs/posters.md, Layers), so such a trace for a current race fails the merge check. + +The layouts are the ones the service picks for a season (CircuitService.find_layout_slug_for_year), read from +circuits.json, never from Jolpica's schedules. Standard library only, so the merge check runs it as it is. +""" +import json +import unittest +from datetime import date +from pathlib import Path + +from circuits_service import CircuitService + +ROOT = Path(__file__).resolve().parent.parent +FIRST_SEASON = 2020 +MIN_POINTS = 10 # more than a few: a point, an empty line or a stub of a line fails + + +class TraceTest(unittest.TestCase): + def test_every_layout_raced_from_2020_on_has_a_traced_line(self): + service = CircuitService(str(ROOT / "circuits" / "circuits.json")) + drawn = set() + # This season and the next: a layout added for next season's calendar is held from the day it is added. + for season in range(FIRST_SEASON, date.today().year + 2): + for country in service.circuit_data.values(): + for locality in country.localities.values(): + for circuit in locality.circuits.values(): + slug = service.find_layout_slug_for_year(circuit, season) + if slug is not None: + drawn.add(circuit.layouts[slug].relative_geojson_filepath) + self.assertIn(Path("spain/madrid/madring/2026-.geo.json"), drawn) # the newest layout is among them + for path in sorted(drawn): + with self.subTest(layout=str(path)): + geometry = json.loads((ROOT / "circuits" / path).read_text(encoding="utf-8"))["features"][0]["geometry"] + line = geometry["type"] == "LineString" + points = len(geometry["coordinates"]) if line else 0 + found = f"a LineString of {points} points" if line else f"a {geometry['type']}" + self.assertGreater(points, MIN_POINTS, f"{path} is {found}, not a traced line of more than " + f"{MIN_POINTS} points") + + +if __name__ == "__main__": + unittest.main()