Replay an instant#
When something goes wrong on the apron, you need two answers: what happened, and what the people involved could have known. This guide reconstructs a pushback at stand C2 three ways: one instant, a replayed sequence, and the raw observations behind it.
The incident: at 10:31 Bangkok time (03:31Z), TG403 pushed back from C2 while a catering truck was still inside the stand's clearance area. The apron safety application raised no alert.
One instant#
Read everything within 60 metres of C2 at the moment the pushback began.
curl -G https://api.surfacelens.app/v1/airports/VTBS/entities \
-H "Authorization: Bearer $SURFACELENS_KEY" \
-d near=13.69214,100.75388 \
-d radius=60 \
-d type=aircraft,vehicle \
-d at=2026-11-23T03:31:00Z
{
"object": "list",
"airport": "VTBS",
"at": "2026-11-23T03:31:00Z",
"revision": 48371904,
"data": [
{
"id": "aircraft:8851a4",
"label": "HS-THB",
"distance_m": 3.6,
"attributes": { "movement": "pushback", "stand": "stand:C2" }
},
{
"id": "vehicle:TUG-114",
"label": "Pushback tug 114",
"distance_m": 21.4,
"attributes": { "vehicle_type": "pushback_tug", "movement": "moving" }
},
{
"id": "vehicle:CAT-22",
"label": "Catering 22",
"distance_m": 27.9,
"attributes": { "vehicle_type": "catering", "movement": "moving" }
}
],
"next_cursor": null
}
The truck was 28 metres away and moving. That is what was true. It is not yet what the safety application saw.
What was known then#
Repeat the read with known_at set to the same instant. Only observations that had reached SurfaceLens by 03:31:00 count.
curl -G https://api.surfacelens.app/v1/airports/VTBS/entities/vehicle:CAT-22 \
-H "Authorization: Bearer $SURFACELENS_KEY" \
-d at=2026-11-23T03:31:00Z \
-d known_at=2026-11-23T03:31:00Z
{
"id": "vehicle:CAT-22",
"object": "entity",
"type": "vehicle",
"label": "Catering 22",
"position": { "lat": 13.69301, "lon": 100.75461 },
"attributes": { "vehicle_type": "catering", "movement": "moving" },
"observed_at": "2026-11-23T03:29:44Z",
"provenance": { "position": "obs_4Nd7Sk2pV9xe" }
}
At 03:31:00 the latest known position of the truck was from 03:29:44, 125 metres away. The telematics feed had stalled. The application had nothing to alert on. Check the feed's health for the same window to confirm.
The sequence#
Replay the two minutes around the pushback as a stream, at four times real time, for the area around C2. The client is the same code you would use for a live subscription.
curl -N -G https://api.surfacelens.app/v1/airports/VTBS/events \
-H "Authorization: Bearer $SURFACELENS_KEY" \
-d types=aircraft,vehicle \
-d bbox=100.7532,13.6914,100.7546,13.6928 \
-d from=2026-11-23T03:30:00Z \
-d until=2026-11-23T03:32:00Z \
-d speed=4
id: 7:48369112
event: entity.snapshot
data: {"revision":48369112,"entity":{"id":"aircraft:8851a4","type":"aircraft","label":"HS-THB","attributes":{"movement":"parked","stand":"stand:C2"}}}
: two more entity.snapshot events omitted here
id: 7:48369112
event: snapshot.complete
data: {"revision":48369112,"count":3}
id: 7:48371904
event: entity.updated
data: {"revision":48371904,"entity":"aircraft:8851a4","changed":{"movement":"pushback"},"observed_at":"2026-11-23T03:31:00.200Z"}
id: 7:48372466
event: entity.updated
data: {"revision":48372466,"entity":"vehicle:CAT-22","changed":{"position":{"lat":13.69238,"lon":100.75402}},"observed_at":"2026-11-23T03:31:00.900Z"}
The stream opens with the state at from, then sends each change in observed_at order. Each entity.updated lists only what changed. The stream closes at until. Omit until to carry on into the present and then live.
Replays read at the current revision by default: late observations appear where they belong in time. To replay exactly as events arrived, add order=received, which orders changes by received_at and leaves out anything received after the moment being replayed.
The evidence#
For an investigation report, cite observations, not derived state. List the truck's position observations for the window:
curl -G https://api.surfacelens.app/v1/airports/VTBS/observations \
-H "Authorization: Bearer $SURFACELENS_KEY" \
-d entity=vehicle:CAT-22 \
-d kind=position \
-d from=2026-11-23T03:29:00Z \
-d to=2026-11-23T03:33:00Z
Each observation has observed_at, received_at, the feed it came from and, when retrieved individually, the raw record and mapping version. The gap between observed_at and received_at around 03:30 shows the stall directly.