-
π
Get Location Coordinates:
When you enter a city name or click on the map, TempTracker uses the
Open-Meteo Geocoding API
to convert your input into latitude and longitude.
-
π¦οΈ
Fetch Weather Data:
Using JavaScript's
fetch()
, the app calls the
Open-Meteo Weather API
to get current weather, wind, and sunrise/sunset information for those coordinates.
-
πΊοΈ
Interactive Map:
The map is built with
Leaflet.js,
which lets you explore locations visually and select spots to get weather details.
-
π»
Client-Side Processing:
All the data fetching and UI updates happen in your browser using JavaScript β making the app fast and responsive without needing a backend server.