This commit is contained in:
Matt Walsh
2022-12-06 16:14:56 -06:00
parent b71d696670
commit 6933e7b7f1
26 changed files with 600 additions and 873 deletions

View File

@@ -0,0 +1,16 @@
import { json } from './fetch.mjs';
const getPoint = async (lat, lon) => {
try {
return await json(`https://api.weather.gov/points/${lat},${lon}`);
} catch (e) {
console.log(`Unable to get point ${lat}, ${lon}`);
console.error(e);
return false;
}
};
export {
// eslint-disable-next-line import/prefer-default-export
getPoint,
};