Merge pull request 'Draw Madring's track: take upstream's GPS trace instead of a point' (#10) from fix/madring-trace into master

This commit was merged in pull request #10.
This commit is contained in:
2026-11-30 09:25:41 +00:00
17 changed files with 1305 additions and 648 deletions
+1 -1
View File
@@ -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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -191,4 +191,4 @@ Formula 1™ circuits data are not official, and they are not approved nor endor
## License ## 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
@@ -3,7 +3,7 @@
"name": "az-2016", "name": "az-2016",
"bbox": [ "bbox": [
49.830927, 49.830927,
40.362639, 40.362541,
49.855189, 49.855189,
40.376148 40.376148
], ],
@@ -15,21 +15,13 @@
"Location": "Baku", "Location": "Baku",
"Name": "Baku City Circuit", "Name": "Baku City Circuit",
"opened": 2016, "opened": 2016,
"seasons": [ "firstgp": 2016,
2017,
2018,
2019,
2021,
2022,
2023,
2024
],
"length": 6003, "length": 6003,
"altitude": -25 "altitude": -25
}, },
"bbox": [ "bbox": [
49.830927, 49.830927,
40.362639, 40.362541,
49.855189, 49.855189,
40.376148 40.376148
], ],
@@ -41,340 +33,340 @@
40.372688 40.372688
], ],
[ [
49.851442, 49.855023,
40.372113 40.373268
],
[
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.855117, 49.855117,
40.373325 40.373325
], ],
[ [
49.855023, 49.855177,
40.373268 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, 49.853247,
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 23 KiB

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg"> <svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg">
<title>Baku City Circuit - Baku</title> <title>Baku City Circuit - Baku</title>
<path d="M132.27,27.98 L122.12,31.22 L106.62,36.25 L100.56,38.34 L85.63,43.21 L79.51,45.39 L72.62,47.59 L70.46,48.38 L68.13,49.34 L66.07,50.37 L50.80,59.40 L49.87,60.04 L49.07,60.94 L48.67,61.89 L47.74,66.74 L47.30,67.64 L46.44,68.57 L35.83,75.94 L34.83,76.92 L33.97,78.13 L30.24,83.38 L29.67,83.86 L28.81,84.31 L27.57,84.46 L26.51,84.33 L24.62,83.81 L21.16,82.64 L8.81,77.71 L8.08,77.05 L7.78,76.39 L6.82,65.81 L7.02,64.78 L9.98,57.13 L10.84,55.77 L11.78,54.82 L12.97,54.08 L18.99,51.33 L28.11,47.93 L33.83,46.42 L34.63,46.45 L35.16,46.71 L35.53,47.06 L36.29,48.96 L36.72,49.47 L37.59,49.73 L38.39,49.68 L39.22,49.66 L40.02,49.81 L41.32,50.42 L42.18,50.42 L42.85,50.53 L43.28,50.87 L46.87,58.92 L47.67,59.59 L48.63,59.62 L49.60,59.11 L51.89,57.52 L65.47,49.52 L67.73,48.01 L68.23,47.64 L68.26,47.16 L67.27,45.50 L67.13,44.96 L67.50,44.59 L73.45,41.68 L77.88,39.83 L85.70,37.02 L86.39,36.41 L86.36,35.72 L81.87,26.84 L81.87,25.86 L82.77,25.15 L96.50,20.35 L112.44,14.89 L124.12,11.45 L133.67,8.54 L134.26,8.62 L134.73,8.85 L137.56,13.75 L140.98,18.82 L143.01,22.82 L143.18,23.48 L143.11,23.93 L142.78,24.40 L142.25,24.72 L132.27,27.98" fill="none" stroke="black" stroke-width="2"/> <path d="M132.27,27.71 L142.25,24.45 L142.78,24.13 L143.11,23.66 L143.18,23.20 L143.01,22.54 L140.39,18.25 L137.56,13.48 L134.73,8.58 L134.26,8.34 L133.67,8.26 L124.12,11.17 L112.44,14.62 L96.50,20.08 L82.77,24.87 L81.59,25.38 L81.35,26.48 L86.45,35.99 L86.40,36.62 L82.92,37.83 L76.03,40.07 L71.35,42.22 L68.69,43.50 L67.54,44.57 L67.57,45.71 L68.26,47.06 L68.03,47.69 L67.14,48.36 L58.18,53.56 L51.89,57.25 L49.25,58.73 L48.38,59.26 L47.55,59.28 L46.87,58.65 L43.44,51.15 L42.89,49.98 L42.32,49.81 L41.46,50.03 L40.35,49.56 L39.44,49.23 L37.77,49.31 L36.76,49.21 L36.28,48.90 L36.02,48.14 L35.39,46.65 L34.73,45.92 L33.76,46.00 L29.80,47.08 L26.24,48.18 L18.34,51.02 L12.55,53.67 L11.11,54.51 L10.26,55.78 L8.72,59.77 L6.90,64.62 L6.82,65.54 L7.59,75.57 L7.52,76.52 L7.84,77.03 L21.16,82.36 L23.49,83.20 L26.10,84.19 L27.88,84.74 L28.81,84.58 L29.67,83.58 L31.41,81.15 L33.28,78.47 L35.03,75.92 L35.51,75.43 L45.16,68.74 L46.54,67.76 L47.37,66.28 L48.43,61.25 L48.78,60.15 L49.55,59.30 L51.20,58.37 L64.36,50.62 L66.78,49.28 L68.24,48.65 L72.55,47.13 L81.88,44.11 L90.87,41.11 L99.75,38.22 L106.62,35.97 L122.12,30.94 L132.27,27.71" fill="none" stroke="black" stroke-width="2"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

+479 -16
View File
@@ -1,34 +1,497 @@
{ {
"type": "FeatureCollection", "type": "FeatureCollection",
"name": "es-madring", "name": "es-2026",
"bbox": [ "bbox": [
-3.62, -3.62534,
40.462, 40.464278,
-3.61, -3.611988,
40.47 40.480641
], ],
"features": [ "features": [
{ {
"type": "Feature", "type": "Feature",
"properties": { "properties": {
"id": "es-madring", "id": "es-2026",
"Location": "Madrid", "Location": "Madrid",
"Name": "Madring", "Name": "Circuito de Madring",
"opened": 2026, "opened": 2026,
"length": 5416, "firstgp": 2026,
"altitude": 620 "length": 5474,
"altitude": 646
}, },
"bbox": [ "bbox": [
-3.62, -3.62534,
40.462, 40.464278,
-3.61, -3.611988,
40.47 40.480641
], ],
"geometry": { "geometry": {
"type": "Point", "type": "LineString",
"coordinates": [ "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
]
] ]
} }
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

@@ -2,10 +2,10 @@
"type": "FeatureCollection", "type": "FeatureCollection",
"name": "us-2023", "name": "us-2023",
"bbox": [ "bbox": [
-115.173015, -115.173181,
36.108017, 36.107928,
-115.160217, -115.160107,
36.125492 36.12554
], ],
"features": [ "features": [
{ {
@@ -16,65 +16,101 @@
"Name": "Las Vegas Street Circuit", "Name": "Las Vegas Street Circuit",
"opened": 2023, "opened": 2023,
"firstgp": 2023, "firstgp": 2023,
"length": 6116, "length": 6201,
"altitude": 610 "altitude": 610
}, },
"bbox": [ "bbox": [
-115.173015, -115.173181,
36.108017, 36.107928,
-115.160217, -115.160107,
36.125492 36.12554
], ],
"geometry": { "geometry": {
"type": "LineString", "type": "LineString",
"coordinates": [ "coordinates": [
[ [
-115.162219, -115.161202,
36.109017 36.109904
], ],
[ [
-115.16025, -115.160589,
36.110295 36.110461
],
[
-115.160217,
36.110399
],
[
-115.160308,
36.110513
], ],
[ [
-115.160459, -115.160459,
36.110517 36.110578
], ],
[ [
-115.161489, -115.160366,
36.110472 36.110705
], ],
[ [
-115.162366, -115.160335,
36.110008 36.110856
], ],
[ [
-115.162725, -115.160414,
36.109881 36.110992
], ],
[ [
-115.163063, -115.160543,
36.109861 36.111079
], ],
[ [
-115.163375, -115.160775,
36.109975 36.11115
], ],
[ [
-115.163698, -115.160996,
36.110252 36.111179
], ],
[ [
-115.163981, -115.161209,
36.110815 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, -115.164082,
@@ -85,52 +121,96 @@
36.119152 36.119152
], ],
[ [
-115.163838, -115.163908,
36.11919 36.119211
], ],
[ [
-115.162026, -115.161934,
36.119181
],
[
-115.161342,
36.119184 36.119184
], ],
[ [
-115.161677, -115.161033,
36.119275 36.119242
], ],
[ [
-115.1614, -115.160908,
36.119472 36.119329
], ],
[ [
-115.160834, -115.160559,
36.120057 36.119604
], ],
[ [
-115.160596, -115.160402,
36.120547 36.119783
], ],
[ [
-115.160557, -115.160282,
36.120991 36.119976
], ],
[ [
-115.160616, -115.160195,
36.121204 36.120145
], ],
[ [
-115.160853, -115.160143,
36.121263 36.120365
], ],
[ [
-115.160926, -115.160107,
36.121353 36.120627
], ],
[ [
-115.160735, -115.160117,
36.122189 36.120781
], ],
[ [
-115.160754, -115.160225,
36.122295 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, -115.160959,
@@ -173,87 +253,183 @@
36.125279 36.125279
], ],
[ [
-115.169159, -115.168652,
36.125492 36.125432
], ],
[ [
-115.169376, -115.169318,
36.125433 36.12554
], ],
[ [
-115.169429, -115.169409,
36.125279 36.125522
], ],
[ [
-115.171142, -115.169496,
36.122745 36.125468
], ],
[ [
-115.171849, -115.169564,
36.121548 36.125284
], ],
[ [
-115.17235, -115.169633,
36.120307 36.125158
], ],
[ [
-115.172666, -115.170324,
36.119312 36.124067
], ],
[ [
-115.172857, -115.170754,
36.118128 36.123418
], ],
[ [
-115.17289, -115.170978,
36.117356 36.123089
], ],
[ [
-115.172857, -115.171208,
36.114684 36.122772
], ],
[ [
-115.173015, -115.171605,
36.108714 36.122215
], ],
[ [
-115.172877, -115.172013,
36.10857 36.121466
], ],
[ [
-115.1726, -115.172229,
36.108469 36.1209
], ],
[ [
-115.172383, -115.172466,
36.108448 36.120249
], ],
[ [
-115.172126, -115.172625,
36.108235 36.119783
], ],
[ [
-115.171981, -115.172744,
36.108091 36.119319
], ],
[ [
-115.17173, -115.172839,
36.108038 36.118849
], ],
[ [
-115.163947, -115.17294,
36.108017 36.11816
], ],
[ [
-115.16371, -115.172965,
36.108091 36.117758
], ],
[ [
-115.162219, -115.172991,
36.109017 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
] ]
] ]
} }
} }
] ]
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 18 KiB

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg"> <svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg">
<title>Las Vegas Street Circuit - Nevada</title> <title>Las Vegas Street Circuit - Nevada</title>
<path d="M96.27,83.93 L105.80,77.75 L105.96,77.25 L105.52,76.70 L104.79,76.68 L99.80,76.90 L95.56,79.14 L93.82,79.75 L92.19,79.85 L90.68,79.30 L89.12,77.96 L87.75,75.24 L87.26,35.47 L87.55,34.90 L88.44,34.72 L97.21,34.75 L98.90,34.31 L100.24,33.35 L102.97,30.52 L104.13,28.15 L104.31,26.00 L104.03,24.97 L102.88,24.69 L102.53,24.25 L103.45,20.21 L103.36,19.69 L102.37,19.56 L87.23,19.25 L81.63,18.60 L79.78,17.88 L77.74,16.18 L75.99,13.35 L73.31,8.26 L71.59,6.79 L69.80,5.80 L67.99,5.26 L62.70,4.23 L61.65,4.51 L61.39,5.26 L53.10,17.52 L49.68,23.31 L47.26,29.31 L45.73,34.13 L44.81,39.85 L44.65,43.59 L44.81,56.52 L44.04,85.40 L44.71,86.10 L46.05,86.59 L47.10,86.69 L48.34,87.72 L49.04,88.41 L50.26,88.67 L87.91,88.77 L89.06,88.41 L96.27,83.93" fill="none" stroke="black" stroke-width="2"/> <path d="M101.12,79.29 L104.07,76.61 L104.69,76.05 L105.14,75.44 L105.29,74.72 L104.91,74.06 L104.29,73.65 L103.17,73.31 L102.11,73.17 L101.09,73.21 L100.14,73.44 L98.04,74.46 L96.11,76.01 L95.36,76.41 L93.74,76.70 L92.86,76.69 L91.27,76.26 L90.39,75.86 L89.57,75.30 L88.22,73.82 L87.67,72.57 L87.30,35.45 L87.58,34.89 L88.13,34.61 L97.61,34.75 L100.45,34.74 L101.94,34.46 L102.54,34.04 L104.21,32.72 L104.96,31.86 L105.54,30.94 L105.96,30.13 L106.21,29.07 L106.38,27.81 L106.33,27.07 L105.81,26.81 L104.44,26.68 L103.96,26.44 L103.55,25.93 L103.39,25.12 L103.46,24.54 L104.79,22.68 L105.02,22.19 L105.58,21.33 L105.38,20.43 L104.30,19.86 L102.29,19.68 L87.27,19.37 L81.72,18.72 L79.88,18.00 L77.86,16.31 L76.12,13.51 L73.46,8.46 L71.75,7.00 L69.98,6.02 L68.18,5.48 L65.36,4.75 L62.16,4.23 L61.73,4.31 L61.31,4.57 L60.98,5.46 L60.65,6.06 L57.33,11.30 L55.27,14.41 L54.19,15.99 L53.09,17.51 L51.18,20.19 L49.23,23.78 L48.19,26.50 L47.05,29.63 L46.29,31.86 L45.72,34.09 L45.26,36.35 L44.78,39.65 L44.66,41.58 L44.53,43.88 L44.58,50.11 L44.61,53.67 L44.63,56.36 L43.99,70.46 L43.80,77.70 L43.79,81.31 L43.62,85.66 L43.92,86.01 L44.33,86.12 L45.32,86.11 L46.05,86.33 L47.70,87.66 L49.13,88.33 L51.04,88.63 L59.36,88.77 L70.24,88.67 L79.20,88.71 L83.57,88.66 L87.15,88.26 L90.89,87.68 L91.87,87.32 L92.66,86.92 L93.28,86.44 L101.12,79.29" fill="none" stroke="black" stroke-width="2"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 995 B

After

Width:  |  Height:  |  Size: 1.5 KiB

@@ -2,10 +2,10 @@
"type": "FeatureCollection", "type": "FeatureCollection",
"name": "us-2022", "name": "us-2022",
"bbox": [ "bbox": [
-80.244805, -80.244783,
25.955259, 25.955221,
-80.229711, -80.229764,
25.960590 25.96059
], ],
"features": [ "features": [
{ {
@@ -15,22 +15,66 @@
"Location": "Miami", "Location": "Miami",
"Name": "Miami International Autodrome", "Name": "Miami International Autodrome",
"opened": 2022, "opened": 2022,
"seasons": [2022, 2023, 2024], "firstgp": 2022,
"length": 5412, "length": 5412,
"altitude": 1 "altitude": 1
}, },
"bbox": [ "bbox": [
-80.244805, -80.244783,
25.955259, 25.955221,
-80.229711, -80.229764,
25.96059 25.96059
], ],
"geometry": { "geometry": {
"type": "LineString", "type": "LineString",
"coordinates": [ "coordinates": [
[ [
-80.236636, -80.237371,
25.955895 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, -80.236928,
@@ -125,20 +169,20 @@
25.957311 25.957311
], ],
[ [
-80.24439, -80.244395,
25.957229 25.957215
], ],
[ [
-80.244562, -80.244562,
25.957076 25.957076
], ],
[ [
-80.244706, -80.244721,
25.956851 25.956852
], ],
[ [
-80.244805, -80.244783,
25.956619 25.956614
], ],
[ [
-80.244776, -80.244776,
@@ -165,132 +209,124 @@
25.956157 25.956157
], ],
[ [
-80.243762, -80.243761,
25.956178 25.956156
], ],
[ [
-80.243527, -80.243194,
25.956146 25.956048
], ],
[ [
-80.242561, -80.242156,
25.955939 25.955859
], ],
[ [
-80.242249, -80.241083,
25.955896 25.955887
], ],
[ [
-80.241873, -80.239445,
25.955898 25.955948
], ],
[ [
-80.239344, -80.238992,
25.955952 25.955819
], ],
[ [
-80.23896, -80.238432,
25.955847 25.955639
], ],
[ [
-80.238518, -80.237981,
25.955702
],
[
-80.23788,
25.955496 25.955496
], ],
[ [
-80.237521, -80.237375,
25.955398 25.955323
], ],
[ [
-80.237233, -80.236745,
25.955329 25.955228
], ],
[ [
-80.236835, -80.236112,
25.955278 25.955221
], ],
[ [
-80.236256, -80.235447,
25.955259 25.955319
],
[
-80.235521,
25.955351
], ],
[ [
-80.23484, -80.23484,
25.955511 25.955511
], ],
[ [
-80.233638, -80.233453,
25.955878 25.955966
], ],
[ [
-80.232783, -80.232648,
25.956175 25.956242
], ],
[ [
-80.23226, -80.23226,
25.956397 25.956397
], ],
[ [
-80.231591, -80.231268,
25.956683 25.956871
],
[
-80.231134,
25.956926
], ],
[ [
-80.230734, -80.230734,
25.957178 25.957178
], ],
[ [
-80.230629, -80.230627,
25.957322 25.957308
], ],
[ [
-80.230624, -80.230662,
25.957412 25.957416
], ],
[ [
-80.230714, -80.230759,
25.957497 25.9575
], ],
[ [
-80.230859, -80.231004,
25.957578 25.957633
], ],
[ [
-80.231179, -80.231175,
25.957794 25.957748
], ],
[ [
-80.231252, -80.231268,
25.95794 25.957916
], ],
[ [
-80.231269, -80.231288,
25.958145 25.958091
], ],
[ [
-80.231191, -80.231233,
25.958304 25.958304
], ],
[ [
-80.23101, -80.231101,
25.958424 25.958423
], ],
[ [
-80.2307, -80.230946,
25.958456 25.958479
], ],
[ [
-80.23036, -80.230487,
25.958483 25.958454
],
[
-80.230258,
25.958482
], ],
[ [
-80.230157, -80.230157,
@@ -301,44 +337,44 @@
25.958676 25.958676
], ],
[ [
-80.229711, -80.229764,
25.959114 25.95906
], ],
[ [
-80.229723, -80.22978,
25.95918 25.959144
], ],
[ [
-80.229857, -80.229896,
25.95923 25.959186
], ],
[ [
-80.229938, -80.230001,
25.959267 25.959256
], ],
[ [
-80.229971, -80.230005,
25.959336 25.959399
], ],
[ [
-80.229829, -80.229815,
25.959781 25.95995
], ],
[ [
-80.22977, -80.22983,
25.960005 25.960044
], ],
[ [
-80.22979, -80.229916,
25.960073 25.960107
], ],
[ [
-80.22988, -80.230394,
25.960131 25.960146
], ],
[ [
-80.23021, -80.237297,
25.960149 25.960366
], ],
[ [
-80.242801, -80.242801,
@@ -361,108 +397,48 @@
25.960144 25.960144
], ],
[ [
-80.242262, -80.242453,
25.959854 25.959941
], ],
[ [
-80.242062, -80.242134,
25.959736 25.959787
], ],
[ [
-80.24179, -80.241874,
25.959705 25.959728
], ],
[ [
-80.241472, -80.241645,
25.95977 25.959745
], ],
[ [
-80.240543, -80.241365,
25.960163 25.959836
], ],
[ [
-80.240237, -80.240712,
25.960266 25.960112
], ],
[ [
-80.239932, -80.240346,
25.96027 25.9602
], ],
[ [
-80.239632, -80.239896,
25.96024 25.960235
], ],
[ [
-80.23935, -80.239452,
25.960194 25.960179
], ],
[ [
-80.238934, -80.239033,
25.960033 25.960022
], ],
[ [
-80.235522, -80.237371,
25.95807 25.959092
],
[
-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
] ]
] ]
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg"> <svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg">
<title>Miami International Autodrome - Miami</title> <title>Miami International Autodrome - Miami</title>
<path d="M80.62,64.84 L77.98,65.49 L75.33,66.03 L71.43,66.11 L68.37,65.61 L64.78,64.17 L46.59,54.36 L43.98,52.94 L42.64,52.73 L41.10,52.62 L39.57,52.80 L37.62,53.35 L35.97,54.18 L34.29,55.40 L32.54,56.45 L30.24,56.79 L28.18,56.62 L25.95,55.66 L23.87,53.98 L21.97,52.29 L19.84,51.34 L17.64,50.94 L14.99,51.36 L12.56,52.04 L10.57,52.78 L9.01,54.17 L7.71,56.20 L6.82,58.29 L7.08,60.14 L7.52,61.35 L8.25,62.18 L9.75,62.91 L11.54,62.91 L13.77,62.47 L16.24,62.28 L18.36,62.57 L27.09,64.44 L29.91,64.83 L33.31,64.81 L56.15,64.32 L59.62,65.27 L63.62,66.58 L69.38,68.44 L72.62,69.33 L75.23,69.95 L78.82,70.41 L84.05,70.58 L90.69,69.75 L96.84,68.30 L107.70,64.99 L115.43,62.31 L120.15,60.30 L126.20,57.72 L130.33,55.52 L133.94,53.24 L134.89,51.94 L134.93,51.13 L134.12,50.36 L132.81,49.63 L129.92,47.68 L129.26,46.36 L129.11,44.51 L129.81,43.07 L131.45,41.99 L134.25,41.70 L137.32,41.45 L139.15,40.93 L140.54,39.71 L143.18,35.75 L143.07,35.16 L141.86,34.71 L141.13,34.37 L140.83,33.75 L142.12,29.73 L142.65,27.70 L142.47,27.09 L141.66,26.57 L138.67,26.40 L24.92,22.42 L23.47,22.76 L23.16,23.79 L23.66,25.08 L25.38,26.45 L29.79,29.07 L31.60,30.13 L34.06,30.41 L36.93,29.83 L45.32,26.28 L48.09,25.35 L50.84,25.31 L53.55,25.58 L56.10,26.00 L59.86,27.45 L90.68,45.19 L92.10,46.05 L92.75,46.78 L92.87,47.63 L92.02,48.81 L90.62,49.59 L89.16,50.58 L87.11,52.52 L86.51,54.30 L87.04,56.37 L87.11,57.91 L86.70,60.26 L85.77,61.55 L84.49,62.77 L83.06,63.56 L80.62,64.84" fill="none" stroke="black" stroke-width="2"/> <path d="M74.11,35.73 L92.75,46.19 L93.06,46.96 L92.93,47.68 L92.37,48.63 L88.41,51.28 L87.17,52.48 L86.76,54.64 L87.17,56.93 L86.78,59.75 L85.83,61.56 L82.23,64.15 L78.14,65.42 L75.48,65.95 L71.55,66.03 L68.48,65.53 L64.87,64.08 L46.59,54.22 L43.96,52.80 L42.62,52.59 L41.07,52.48 L39.53,52.66 L37.57,53.21 L35.92,54.05 L34.23,55.28 L32.47,56.33 L30.16,56.67 L28.08,56.50 L25.85,55.53 L23.75,53.84 L21.84,52.14 L19.70,51.19 L17.50,50.79 L14.84,51.21 L12.39,51.90 L10.34,52.77 L8.82,54.03 L7.38,56.07 L6.82,58.23 L6.88,60.03 L7.33,61.25 L8.06,62.08 L9.56,62.82 L11.37,62.82 L13.60,62.38 L16.10,62.38 L21.25,63.37 L30.67,65.08 L40.41,64.83 L55.28,64.27 L59.40,65.44 L64.48,67.08 L68.58,68.38 L74.08,69.95 L79.80,70.81 L85.55,70.87 L91.58,69.98 L97.09,68.24 L109.69,64.11 L117.00,61.60 L120.52,60.20 L129.53,55.89 L134.37,53.11 L135.35,51.92 L135.03,50.94 L134.15,50.18 L131.92,48.97 L130.37,47.93 L129.53,46.40 L129.34,44.82 L129.84,42.88 L131.04,41.80 L132.45,41.29 L136.62,41.52 L138.70,41.27 L139.61,40.73 L141.01,39.50 L143.18,36.02 L143.04,35.26 L141.98,34.87 L141.03,34.24 L140.99,32.94 L142.72,27.94 L142.58,27.08 L141.80,26.51 L137.46,26.16 L74.79,24.16 L24.81,22.13 L23.35,22.47 L23.04,23.51 L23.54,24.80 L25.28,26.18 L27.97,28.02 L30.87,29.42 L33.23,29.95 L35.31,29.80 L37.85,28.97 L43.78,26.47 L47.10,25.67 L51.19,25.35 L55.22,25.86 L59.02,27.28 L74.11,35.73" fill="none" stroke="black" stroke-width="2"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

+11 -4
View File
@@ -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 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.) 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 **`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 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 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). 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 `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). (backed up; fetched again if lost).
## Finished images (kept, capped) ## Finished images (kept, capped)
@@ -160,6 +166,7 @@ else a failure says which address failed and why.
## Not in this change ## Not in this change
The disk tile store (replaced by kept layers); renaming the service away from "F1"; the four layouts whose trace The disk tile store (replaced by kept layers); renaming the service away from "F1"; the three layouts whose trace
is empty or a point, and the Bahrain and Donington traces that sit off their real track (traced separately); the is empty (Mont-Tremblant 1968-1970, Buddh 2011-2013, Yeongam 2010-2013), Bahrain's trace that sits off its real
season photos matched to the operator's curated cars. track, and Donington's, a copy of Aintree's trace (traced separately); the season photos matched to the
operator's curated cars.
+2 -2
View File
@@ -10,8 +10,8 @@
# What the image ships, compiled before the merge: every Python file the service's image copies, and the # 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 # 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 # 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 # its name; every layout a race from 2020 on draws has a traced line, never a point; a failed Jolpica
# request is asked again; a poster's options, keys, cache headers and store cap, its satellite source, credits and # 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). # 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 # **Said, never passed silently**: the service's dependencies (service/requirements.txt) are the image's to
+43
View File
@@ -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()