Back

Version 9

9/4/2023
let untitled_harlequinCarp = (async () => {
let [{ lat, lon, display_name }] = await @stevekrouse
.nominatimSearch({
q: "atlantic terminal",
});
let query = new URLSearchParams({
lamax: String(@stevekrouse.round(lat, 2) + .1),
lamin: String(@stevekrouse.round(lat, 2) + .1),
lonmax: String(@stevekrouse.round(lon, 2) + .1),
lonmin: String(@stevekrouse.round(lon, 2) - .1),
});
console.log({ lat, lon, display_name });
let url = `https://opensky-network.org/api/states/all?${query}`;
return @stevekrouse.fetchJSON(url);
})();
Updated: October 23, 2023