Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gazaskygeeks #54

Open
wants to merge 6 commits into
base: week8
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions coursebook/week8/morning-challenge-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Goal
**Master callbacks**

![callback-hell](https://s3-ap-southeast-1.amazonaws.com/kipalog.com/B4UaJfMCQAE67QB.png_mnu9u7omer)
![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)**.
Expand Down