remove additional jquery ajax requests
This commit is contained in:
parent
5a766a809d
commit
456af1b09a
11 changed files with 86 additions and 124 deletions
|
|
@ -57,7 +57,7 @@ const navigation = (() => {
|
|||
const point = await utils.weather.getPoint(latLon.lat, latLon.lon);
|
||||
|
||||
// get stations
|
||||
const stations = utils.fetch.json(point.properties.observationStations);
|
||||
const stations = await utils.fetch.json(point.properties.observationStations);
|
||||
|
||||
const StationId = stations.features[0].properties.stationIdentifier;
|
||||
|
||||
|
|
@ -68,7 +68,6 @@ const navigation = (() => {
|
|||
city = city.split('/')[0];
|
||||
}
|
||||
|
||||
|
||||
// populate the weather parameters
|
||||
weatherParameters.latitude = latLon.lat;
|
||||
weatherParameters.longitude = latLon.lon;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue