MCPcopy Create free account
hub / github.com/codemistic/Web-Development / requestApi

Function requestApi

Weather Forecast Webapp/js/script.js:26–29  ·  view source on GitHub ↗
(city)

Source from the content-addressed store, hash-verified

24});
25
26function requestApi(city){
27 api = `https://api.openweathermap.org/data/2.5/weather?q=${city}&units=metric&appid=${'de1400a8c4500ee4e0ebe2e706f9d077'}`;
28 fetchData();
29}
30
31function onSuccess(position){
32 const {latitude, longitude} = position.coords;

Callers 1

script.jsFile · 0.85

Calls 1

fetchDataFunction · 0.70

Tested by

no test coverage detected