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);
};
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023