Taxonomy Icon

Mobile Development

Create a mobile app with weather forecasting

Get the code Build on IBM Cloud

Summary

Weather is estimated to be responsible for nearly a trillion dollars of annual economic impact in the US alone. With this code pattern, you can use the Weather Company Data in your iOS app for a more comprehensive experience.

Description

This code pattern gives you the foundation you need to start creating an app that uses the Weather Company Data immediately. Or, you can copy and paste the code into an existing application. The code pattern shows a map that you can click on to bring up the 3-day and 7-day forecast for that pin drop.

While weather data is becoming increasingly available, precise and granular, apps and business processes frequently still treat every day as though external conditions are the same.

The impact of weather can be felt across industries. Here are a few examples:

  • Energy and Utilities – weather patterns can be used to predict peak load and energy generation can be directed at regions where it’s needed to avoided outages
  • Government and Public Safety – during extreme weather situations, predicting, preparing for and responding to events is critical
  • Insurance – weather data can be used to notify customers that hail is incoming/possible, thus reducing claims
  • Travel & Transportation – ships can re-route travel based on local weather conditions
  • Retail – campaigns and promotions can be aligned to snow, rain, etc
  • Agriculture – if heavy rain is expected, a farmer may delay planting new crops

In all of these scenarios the real value comes from not only knowing a weather report, but being able mix that data with your own data and then have certain scenarios kick off operational responses. You can do that by connecting to the Weather Company Data service on IBM Cloud.

In this code pattern you will learn how to:

  • Provision and integrate Weather Company Data service
  • Connect to additional IBM Cloud services
  • Use geolocation information integrated with Apple Maps

Flow

Weather forecasting for iOS architecture diagram

  1. The mobile user indicates its specified geographic region and forecast preferences.
  2. The Weather Company Data Service will process the request and return the appropriate content back to the mobile user.

Instructions

See the detailed instructions in the README file.