SCENARIO
You are planning a short trip to explore England and want to determine your route based on the current weather in the locations you want to visit. To finalise your itinerary, you need to visit OpenWeather and consult the API on the current weather. The places you want to visit, with geographic coordinates, are:
- Lake District National Park (54.4609° N, 3.0886° W)
- Corfe Castle (50.6395° N, 2.0566° W)
- The Cotswolds (51.8330° N, 1.8433° W)
- Cambridge (52.2053° N, 0.1218° E)
- Bristol (51.4545° N, 2.5879° W)
- Oxford (51.7520° N, 1.2577° W)
- Norwich (52.6309° N, 1.2974° E)
- Stonehenge (51.1789° N, 1.8262° W)
- Watergate Bay (50.4429° N, 5.0553° W)
- Birmingham (52.4862° N, 1.8904° W)
STEP 2: CREATE AN API
You need to use the OpenWeather API . is compatible with GitHub. In general, APIs are integrated with JSON. However, the same key principles apply to any HTTP API that uses a data format.
STEP 3: CREATE A VISUAL MAP
Sign into Google, then go to Google EarthLinks to an external site. and use the API to create a visual map showing each location detailed in the scenario. Alternatively, you could install the Python version of the Google Earth API and integrate it with your OpenWeather coding project.