code cleanup
This commit is contained in:
parent
74f1abd6f8
commit
a83afa71cd
19 changed files with 57 additions and 119 deletions
|
|
@ -20,7 +20,7 @@ const buildForecast = (forecast, city, cityXY) => {
|
|||
const getRegionalObservation = async (point, city) => {
|
||||
try {
|
||||
// get stations
|
||||
const stations = await json(`https://api.weather.gov/gridpoints/${point.wfo}/${point.x},${point.y}/stations`);
|
||||
const stations = await json(`https://api.weather.gov/gridpoints/${point.wfo}/${point.x},${point.y}/stations?limit=1`);
|
||||
|
||||
// get the first station
|
||||
const station = stations.features[0].id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue