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: Nov 16, 2026 (pulled Nov 16, 2026 UTC)

Latest data pull 136 rows
Nov 16, 2026 (pulled Nov 16, 2026 UTC)
Callsign
Latitude
Longitude
Heading (°)
Speed (m/s)
TVF46UU
47.194
5.187
286.5
155.6
TVF47ZD
46.254
6.766
308.4
182.4
EJU73FJ
46.508
8.268
158.2
255.4
EWG9X
45.461
9.276
355.8
77.4
EJU54UM
46.057
8.584
292.1
190.4
IBE06GZ
47.316
8.497
49.8
177.8
WMT9VW
45.62
10.875
97.2
228.7
WZZ339
45.688
9.426
66.3
185.9
WZZ6UH
45.372
10.487
100.9
214.3
EJU73WR
47.548
8.328
32.1
211.3
EJU61RU
47.732
6.799
280
189.1
EJU46KQ
46.309
10.576
213.5
220.2
EJU71XZ
45.037
9.144
324.2
157.3
WZZ1M
45.676
9.188
93.2
173.1
M02
47.599
7.528
348.8
9.3
WZZ46
45.659
8.728
357.6
85.5
ITY219
45.455
9.28
90
4.6
EZS75PH
45.725
7.259
304.1
165.9
WZZ4040
47.269
9.136
68.1
238.9
ITY1IP
45.168
9.751
141.5
221.5
FGMQL
45.385
5.348
276.3
46.6
VLG24TY
47.094
7.546
231.4
198
ANE1315
47.724
10.428
60.3
230.4
THY9BC
47.498
5.595
311
189.6
UAE8T
47.528
8.487
298.4
84.3
BEL56L
45.606
8.73
98.4
2.3
JFA99P
46.415
5.761
325.2
73.9
AFR256
47.695
10.691
112.1
291.9
VLG9RY
46.615
8.277
151.5
255.8
KLC1949
47.782
7.395
153
109.8
DLA1EM
45.448
10.749
198.1
154.2
DLA2PP
45.405
8.785
349.3
96.9
KLM1435
45.747
5.09
176
59.3
EZY79RK
46.606
9.734
302
186.3
ABR176
45.34
10.457
315
79.3
LGL68A
46.706
6.848
351.8
159
RYR5DG
46.804
6.758
232
217.3
SRN1997
47.599
7.495
340.7
90.5
IBE06BF
45.46
9.28
0
0
ETH733
47.4
9.251
106.7
236.8
KLC1659
45.681
10.998
167
253
AFR1414
47.427
8.89
306.6
94.9
RGA03
46.911
7.502
306.3
31.3
AFR62NF
46.513
6.167
315.2
190.6
AFR37VQ
47.841
7.319
123.6
264.3
EIN40W
45.957
5.314
320
190.6
TVF53VY
45.608
8.734
19.7
5.9
DKH1668
45.404
10.977
104.7
268
ANE88SC
46.197
6.418
49.3
230.2
RYR5AF
45.305
7.478
76.4
247.7
EJU51HN
45.595
8.733
349.1
70.7
AFR51BF
47.983
6.783
115.1
260.8
SWR1886
47.457
8.557
95.6
9.3
SWR96B
47.454
8.561
185.6
0
SWR9DV
47.417
6.655
178.2
197.6
SWR91Z
47.651
9.298
230.8
128.7
SWR259T
47.442
8.563
64.7
0
SWR357
46.472
6.414
180.5
132.2
SWR4KB
45.361
6.086
198.6
241.6
DLH7KW
47.885
8.563
176.5
158.8
DLH51F
46.251
5.738
235.2
217.3
DLH77A
47.202
6.464
211.1
229.4
DLH3CW
47.7
7.64
199
207.3
LHX22J
46.387
6.022
235.7
216.2
TE26
47.444
8.566
171.6
2.3
TE22
47.444
8.566
185.6
1.5
AFR1732
45.259
9.293
7.4
103.8
ATL786
47.442
8.562
120.9
5.7
AFR48QR
45.049
8.273
120
253.1
AFR46MX
47.434
7.342
148.6
263.9
EZY78KG
45.492
5.644
328.1
191.6
EDW66
47.46
8.554
95.6
0
EDW144
47.452
8.559
185.6
0
ATL783
47.461
8.552
213.8
0.1
EJU68NF
47.457
8.378
143.5
148.6
EZS98PF
45.676
5.589
47.4
187.9
KLM65X
46.792
10.548
163
273.2
SWR3PD
47.474
8.548
317.8
75
ATL779
47.46
8.554
284.1
0
BAW750
46.365
6.296
225.8
81.9
TUI2CN
45.674
10.172
39.6
233.5
THY3WC
45.629
8.714
303.8
3.1
THY60A
47.691
10.489
274.4
167.2
KLC79M
45.94
6.547
137.2
251.9
ZEBRA8
47.449
8.55
244.7
6.7
(none)
45.459
9.281
50.6
1.3
FLORIAN1
47.446
8.553
281.3
1.5
DLY620P
47.449
8.551
177.2
4.6
KLM64B
47.969
6.3
355.4
203.9
RYR7XV
47.455
10.135
146
272.4
RYR24BE
45.738
8.827
273.4
192.2
RYR57NZ
45.51
8.756
349.1
94.8
KLM47G
47.444
8.744
274.3
89.3
TECH37
47.598
7.53
182.8
1.3
ICV9261
45.614
8.72
258.8
0
IBE08PW
45.253
8.827
348.1
117.2
RYR48CV
47.98
10.543
355.2
134.2
EZS53PQ
47.909
7.774
274.1
121.7
EZS41AG
45.457
5.146
55.2
207.4
EZS21BE
47.597
7.532
64.7
1.8
EZS52PF
47.865
7.61
274
103.7
RYR80VW
46.547
8.547
307.5
186.8
SAZ55
47.489
9.029
193.4
108.4
IBE0621
45.918
6.599
349
182.9
RYR42PR
45.648
9.635
225
85.9
CMA840
47.456
9.833
104.3
287.2
WMT4XQ
45.633
8.72
312.2
8.2
RYR37ZA
46.499
8.394
154.3
257
RYR47RL
46.217
10.876
164.1
276.5
RYR9XK
45.664
9.726
284.8
76.6
WMT507
45.624
8.72
258.8
6.2
RYR62LZ
45.586
8.992
126.9
154.3
AFR73HY
45.717
5.083
264.4
8.8
RYR76TC
46.907
6.002
324.5
188.9
RYR80TT
45.191
7.647
213.8
6.4
RYR86UP
45.628
8.719
78.8
0
RYR392E
45.63
8.715
348.8
2.6
RYR7KN
45.053
10.596
315.3
190.3
RYR11WR
47.436
5.65
322.2
188.1
ABR468
45.348
10.655
196.5
141.1
BAW637
47.504
7.277
291.7
182.7
BAW561L
45.13
8.067
323
194
ITY1702
45.385
9.284
355.1
66.6
BAW661
46.448
10.134
295.8
200.6
EDW45L
47.213
10.712
306.5
183.6
AFR510
47.481
8.473
123.2
296.9
CSW631
47.579
9.051
197
128.6
CSW615
47.309
9.055
312.6
165.7
EXS9F
47.31
7.526
292
186.5
SWR9VE
46.022
7.263
22.6
223.9
SWISS
47.448
8.559
244.7
0
SWR
47.448
8.559
244.7
0
SWR7XK
47.454
8.557
5.6
0
SWR7LW
46.286
6.179
225.3
65.8
HOP1502
46.264
5.58
124.4
272.4
RYR98ZC
47.498
6.661
182
253.8

All 136 aircraft are listed below.