Kasi Lake Consulting LLC logo


Python NWS API Test


Javascript is used to display a map of the U.S. via Leaflet and Mapbox, and it obtains a weather forecast from the National Weather Service via a Flask Python API.

Use:

  1. Click on a point on the U.S. map to obtain the forecast for that area.
  2. Use the +/- map buttons, or use native options, to affect the zoom level.
  3. Click-drag on the map to move it.
  4. To reset the map, reload the page.


Forecast information will appear here.


References:

Leaflet: leafletjs.com
Mapbox: mapbox.com
OpenStreetMap: openstreetmap.org/about
GitHub: github.com/kasilakeconsulting/python-flask-forecast-map


Copyright © 2021, Kasi Lake Consulting LLC
Trademarks are owned by their respective companies.