Video Thumbnail

Unlock this lesson

Sign up for a plan to instantly unlock all premium lessons.

Unlock Lesson

Premium Features

Video unavailable for download

Insert Bulk Country Data

Country API Data: https://restcountries.eu/rest/v2/all

Let's face it, populating a globe manually by calling createBox over and over again is quite tiresome. Rather than calling a function multiple times and inserting data by hand, we can create a bulk insert function that takes data from a comprehensive source, and parses it into boxes that are automatically placed on our globe.

We'll be using https://restcountries.eu/ as the source for our country data which includes the countries names, populations, latitudes, and longitudes.

Comments

Want to participate?

Create a free Chris Courses account to begin

No comments yet, be the first to add one