From b753a5b08200697a3ceda832e2147419b090b040 Mon Sep 17 00:00:00 2001 From: MG <mathsgregory@gmail.com> Date: Mon, 20 Mar 2017 08:57:36 +0200 Subject: [PATCH 1/3] Update morning-challenge-apis.md --- coursebook/week8/morning-challenge-apis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coursebook/week8/morning-challenge-apis.md b/coursebook/week8/morning-challenge-apis.md index 3437aeb..44dc9a9 100644 --- a/coursebook/week8/morning-challenge-apis.md +++ b/coursebook/week8/morning-challenge-apis.md @@ -3,7 +3,7 @@ ## Goal **Master callbacks** -![callback-hell](https://s3-ap-southeast-1.amazonaws.com/kipalog.com/B4UaJfMCQAE67QB.png_mnu9u7omer) +![callback-hell](https://s3-ap-southeast-1.amazonaws.com/kipalog.com/B4UaJfMCQAE67QB.png) ### If you don't have an idea, try this: 1. Starting from a chosen address (or using javascript to find client location), retrieve location info with **[Google Maps geocoding](https://developers.google.com/maps/documentation/geocoding/intro#geocoding)** From bb8ad8682409efc769185a83da6a5e848097eafc Mon Sep 17 00:00:00 2001 From: MG <mathsgregory@gmail.com> Date: Mon, 20 Mar 2017 08:58:26 +0200 Subject: [PATCH 2/3] Update morning-challenge-apis.md Updating image --- coursebook/week8/morning-challenge-apis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coursebook/week8/morning-challenge-apis.md b/coursebook/week8/morning-challenge-apis.md index 44dc9a9..d04b5be 100644 --- a/coursebook/week8/morning-challenge-apis.md +++ b/coursebook/week8/morning-challenge-apis.md @@ -3,7 +3,7 @@ ## Goal **Master callbacks** -![callback-hell](https://s3-ap-southeast-1.amazonaws.com/kipalog.com/B4UaJfMCQAE67QB.png) +![callback hell](https://cloud.githubusercontent.com/assets/12934669/24090698/4dafbc96-0d4b-11e7-8fe8-b279b28bd23d.png) ### If you don't have an idea, try this: 1. Starting from a chosen address (or using javascript to find client location), retrieve location info with **[Google Maps geocoding](https://developers.google.com/maps/documentation/geocoding/intro#geocoding)** From cca7f4cb3716bc064babfa2191d3b28e9e86f55a Mon Sep 17 00:00:00 2001 From: MG <mathsgregory@gmail.com> Date: Mon, 20 Mar 2017 09:01:53 +0200 Subject: [PATCH 3/3] Update morning-challenge-apis.md --- coursebook/week8/morning-challenge-apis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coursebook/week8/morning-challenge-apis.md b/coursebook/week8/morning-challenge-apis.md index d04b5be..f609004 100644 --- a/coursebook/week8/morning-challenge-apis.md +++ b/coursebook/week8/morning-challenge-apis.md @@ -5,7 +5,7 @@ ![callback hell](https://cloud.githubusercontent.com/assets/12934669/24090698/4dafbc96-0d4b-11e7-8fe8-b279b28bd23d.png) -### If you don't have an idea, try this: +### Steps: 1. Starting from a chosen address (or using javascript to find client location), retrieve location info with **[Google Maps geocoding](https://developers.google.com/maps/documentation/geocoding/intro#geocoding)** 2. Retrieve the weather forecast for the next 5 days for that location with **[MetaWeather API](https://www.metaweather.com/api)**. You will probably need 2 separate calls for that (one for location id, one for weather result). 3. Store the each day's forecast in a separate json file. If you haven't tried node's **fs** module yet, the docs are **[here](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback)**.