International Space Station tracker Async/Await
Display the coordinates and the country of the ISS
Display the position of the ISS (International Space Station) on a map.
The map is created with leaflet.js (code already available in the script).
Also display the coordinates (rounded to 6 decimal places) and the country over which the ISS is located.
- Locate ISS
- Fetch, every 5 seconds, the position of the ISS from: https://api.wheretheiss.at/v1/satellites/25544
- Update the
latandlngvalues of theissobject - Call de function
updateIssMarker()to update the map
- Find the country over which the ISS flies
- Use OpenStreetMaps reverse geocoding service to search for the country e.g:
Thomas More - campus Geel
Atlantic ocean
- Update the
countryvalue of theissobject (set the value to 'unknown' if no country was found) - Display the coordinates and the country in the green box above the map
- Use OpenStreetMaps reverse geocoding service to search for the country e.g:
- Custom marker (optional)
- Find an icon that matches the theme and replace the default marker with this icon
- Info: https://leafletjs.com/examples.html