1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { runValAPI } from "https://esm.town/v/stevekrouse/runValAPI";
import { timed } from "https://esm.town/v/stevekrouse/timed";
import { panphoraDistanceTimes } from "https://esm.town/v/stevekrouse/panphoraDistanceTimes";
export const panphoraDistanceTimed = async () => {
panphoraDistanceTimes.push(
await timed(() =>
runValAPI(
"@panphora.distance",
"barclay center",
"brooklyn navy yard",
)
),
);
return panphoraDistanceTimes.at(-1);
};