Consuming JSON data

Since we have our corporate database ready, we can focus on the defined problem. Let's try to define the steps we need to take in order to complete our task:

  1. Obtain the weather forecast.
  2. Process the weather data and put it into the database.
  1. Assign the weather forecasts to the administrative boundaries.
  2. List the administrative units that meet a hypothetical alert watch.

Our company has decided to use a weather data provider called OpenWeatherMap. One can access the data via an API, and quite a lot of information is accessible with free accounts. One can also obtain data in bulk, though this requires a paid service subscription. We are not forcing you to use a commercial account, of course; we will use some data examples ...

Get Mastering PostGIS 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.