Chapter 5 of The Nature of Code, Autonomous Agents, implements Reynolds steering and the three boids rules: separation, alignment, and cohesion. The environment here contains real independent agents.

I drop the flock into live OpenSky traffic over the Alps, so separation has to work against real aircraft, not only other boids.

The page fetches live aircraft states over the Alps from the OpenSky Network (position, true track, ground speed) and draws each as an oriented marker. A boids flock runs the three rules plus a repulsion from every real aircraft, so the emergent flocking must resolve against measured air traffic.

The three steering vectors are separation \(\mathbf{s} = -\sum_{j} \mathbf{r}_{ij}/\lVert \mathbf{r}_{ij} \rVert^2\), alignment \(\mathbf{a} = \langle \mathbf{v}_j \rangle - \mathbf{v}_i\), and cohesion \(\mathbf{c} = \langle \mathbf{x}_j \rangle - \mathbf{x}_i\), summed into a force limited by \(\lVert \mathbf{F} \rVert \le F_{\max}\) with speed capped at \(\lVert \mathbf{v} \rVert \le v_{\max}\). The naive neighbor evaluation over \(n\) agents is \(O(n^2)\). Aircraft headings are ADS-B true-track angles.

Data source: The OpenSky Network states API
Endpoint: https://opensky-network.org/api/states/all?lamin=45&lomin=5&lamax=48&lomax=11
Access: Public, no key. Loaded from an hourly server-side refresh when possible, with a bundled snapshot fallback, and a live browser fetch only when the API allows CORS. Data window: Aug 27, 2026 (pulled Aug 27, 2026 UTC)

Latest data pull 104 rows
Aug 27, 2026 (pulled Aug 27, 2026 UTC)
Callsign
Latitude
Longitude
Heading (°)
Speed (m/s)
TVF51EN
47.312
5.929
296.5
212.1
PGT1753
47.733
9.794
267.7
207.5
IBE06SF
46.16
5.994
227.5
100.5
DLH569
45.58
8.698
22.7
260.4
WZZ8686
47.707
10.696
279.7
167.5
EJU573R
45.651
8.728
352.8
86.1
CCA445
45.425
8.975
229.4
118.6
VOE5MZ
45.239
5.054
192.9
175.7
CRL773
45.083
9.932
307.3
209.6
DLH4AC
47.603
7.523
334.7
9.3
BEL4BE
47.233
6.26
357.5
262.6
ETH718
46.713
9.314
296.5
221.8
ETH736
45.645
8.709
348.3
70.9
ETH738
45.928
6.936
298.1
187.8
AFR655
47.473
5.066
320.5
240.8
RYR72NK
45.313
8.52
208.9
168.1
SWR1317
47.706
8.639
190
144.7
SWR2WZ
47.999
8.818
200.4
146
SWR2170
47.442
8.561
244.7
0
DCHJD
47.317
7.403
229.1
192.6
ETH574
46.156
6.92
318.9
243.6
CCA839
46.346
6.742
212.4
216.2
RYR8XV
45.261
10.453
115.4
222.8
BCU1
45.626
8.73
168.8
6.4
TVF40JP
45.559
5.327
103.6
179.9
EJU47EZ
45.618
8.732
168.8
7.7
SRR6374
45.723
5.084
354.4
14.9
SRR6498
45.585
9.741
229.7
115.3
BAW765
47.599
7.528
112.5
0
SWR
47.443
8.563
64.7
0
SWR7DC
47.446
8.566
345.9
0
TAP945
46.23
6.104
45
0
SWR155
47.448
8.918
193.6
146.6
SWR3W
47.248
8.547
93.2
121.1
SWR7C
47.47
8.541
53.4
6.9
SWR147
47.462
8.553
185.6
1.3
TE23
47.452
8.559
199.7
6.4
TE24
47.45
8.558
180
8.2
ATL778
47.453
8.559
109.7
1
ATL780
47.444
8.563
143.4
0
DAH1337
45.729
5.083
357.2
13.9
AFR1391
46.195
8.047
292
213
DLH561
46.168
9.04
4.3
253.3
SWR2V
47.827
6.636
108.2
233.9
EDW398E
47.453
8.559
275.6
0.9
EJU75PJ
45.449
5.96
112
213
EZS86ZE
45.745
6.443
143.3
198.2
EZS72WT
47.609
7.519
334.7
13.9
VIKTOR33
47.455
8.57
95.6
0.1
ZEBRA7
47.455
8.572
56.3
6.9
ZEBRA2
47.444
8.566
182.8
9.8
ZEBRA3
47.462
8.557
272.8
5.1
RYR9LC
45.669
8.631
204.7
158.6
DHK12G
46.234
6.107
137.8
4.4
TUI3WL
46.425
6.658
207.4
203.4
TUI87J
47.91
7.747
199
214.9
TUI54T
45.973
6.115
192.4
197
TSW4W
45.294
9.614
141.3
135.8
RYR95YC
47.986
10.232
239.1
8.8
ANA207
46.868
8.372
173.3
236.7
RYR3TW
46.461
6.914
294
212.8
CCA949
45.402
8.798
348.7
107.6
ENT8YP
45.787
10.213
229.2
207.2
KLC20Q
45.455
8.086
43.2
189.3
RYR8628
47.836
9.691
245.4
202.6
ICV29
45.606
8.733
39.4
3.6
CES249
47.539
7.727
212.3
220.8
SIA356
45.269
8.829
348.2
117.7
TVF8776
45.715
5.078
104.1
0
EZS25QK
46.234
6.107
42.2
9.3
EZS98FK
47.585
7.533
156.2
85.5
EJU82PN
46.24
6.115
45
9.8
EZS34KT
47.617
7.51
154.7
0.3
EZS21MA
47.618
7.513
315
4.9
EZS62HY
46.221
6.086
222.2
80.5
AIZ749P
46.41
5.486
127.5
250.2
BCS4894
46.235
6.108
45
8.2
ITY1285
45.453
9.28
270
0
CMA731
46.84
5.979
319.1
242.9
EWG42M
46.54
6.696
206
199.7
EWG22FU
47.172
6.325
188.6
206
VOE6JK
45.716
5.08
210.9
1
AFR24QN
45.274
7.721
115.4
129.3
RYR1MT
45.187
7.646
182.8
6.4
EWG4LQ
45.462
5.774
193.6
190
SWR3KT
45.616
8.737
14.1
1
WMT743
45.612
8.722
168.8
7.7
AFR722
46.32
5.114
354
251.4
AFR551
46.456
6.366
309.3
234.7
WMT9XQ
45.684
8.776
102.2
102.6
FDX5342
47.948
7.489
111.7
272.9
SVA143
45.024
10.979
288.2
209.5
SVA131
45.823
7.409
311.1
230.8
EDW25G
47.162
8.242
55.6
183.9
EWG9TZ
46.906
7.053
208.4
200
EDW88Z
47.449
8.558
244.7
0
EDW370L
47.412
9.308
90.3
211.4
SWR177
47.379
8.603
334.9
92.1
BCS942
47.951
6.326
140.4
222.5
SWR
47.447
8.567
64.7
0
SWR105W
47.454
8.559
5.6
0
VOE9ZA
45.357
10.792
236.4
127.3
SWR2EY
46.432
6.433
59.2
195.9
SWR283
47.464
8.548
154.7
9.8

All 104 aircraft are listed below.