A Weather-Forecast App

images/src/sketches/sketch_ios.png

This week we’ll build a weather app. It will allow users to get the current weather conditions and forecast for their current location, determined by the device’s location system. We’ll also let users search for weather at another location by putting in the name of somewhere in the world.

To do this we’ll use the API’s /weather endpoint, which is able to take a string description of a location, like a city name or a zip code, and return the current conditions and forecast. On Day 2 we’ll build a search UI, but for Day 1 we’ll use the iOS location manager to get the device’s current latitude and longitude and then reverse-geocode ...

Get Seven Mobile Apps in Seven Weeks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.