Skip to content
Analytica > Blogs > Plotting over a Google Map

Plotting over a Google Map

Here is what the result graph for the variable Generation Capacity looks like:

It uses symbol size to depict the generation capacity and symbol shape and color to depict fuel type for all California power plants identified by the California Natural Resources Agency. Using a pulldown in the model, you can select any subset of fuel types to show, with the full set of fuel type options being Battery, Coal, Biomass, Landfill gas, Digester gas, MSW, Gas, Hydro, Nuclear, Solar, Solar thermal, Geothermal and Wind. 

The example model includes these highlights:

  • It is quite fun to explore the data, learn where the different types of power plants are in California (and a few in neighboring regions).
  • The data is downloaded from the California Natural Resources Agency’s website as a CSV file. 
  • If the download fails, if falls over to a cached snapshot on a Lumina web server.  See how easy this is to accomplish.
  • It parses the CSV file. (an example of Analytica’s ParseCSV function in action).
  • User selects a subset of the fuel types using a MultiChoice pulldown.
  • Downloads and displays a Google Map behind the data. It gets the map for to the data being plotted.
  • The first time you try it, it guides you through the process of getting your own Google API key, and saves it so you never have to enter it a second time.

The model requires the Analytica Enterprise edition or better, and Analytica 5.2 for both the data download and the Google map download. With an Analytica subscription, you can get the beta build from the Beta Tester Page. If you are reading this after the 5.2 release (in or after April 2019), just use the current Analytica release.

Of course the flashiest part (and the title of this blog post) is the plotting of the data over the Google Map, and I’m sure this is something many of you will want to do in your own models. I’ve created an Analytica 5 Video Short showing how I did it in this example with Generation Capacity. 


If you enjoyed this, please remember to follow / befriend Lumina’s social media channels!

Share now   

See also

Building electrification: heat pump technology

Lumina set out to build a useful tool to assess the benefits of heat pumps. Learn more about heat pumps and their impact.

More…

Decision making when there is little historic precedent

Learn how to make decisions and strategic plans in uncertain situations, where historical data is not available. See how to model this in Analytica with clarity and insight.

More…

Does GPT-4 pass the Turing test?

UCSD researchers conducted an online Turing test of GPT-4 with 652 human participants. Humans were not fooled ~60% of the time.

More…

What is Analytica software?

Analytica is a decision analysis tool that helps you generate clearer and more justified results through modeling.

More…

Download the free edition of Analytica

The free version of Analytica lets you create and edit models with up to 101 variables, which is pretty substantial since each variable can be a multidimensional array. It also lets you run larger modes in ‘browse mode.’ Learn more about the free edition.

While Analytica doesn’t run on macOS, it does work with Parallels or VMWare through Windows.


    Analytica Cubes Pattern

    Download the free edition of Analytica

    The free version of Analytica lets you create and edit models with up to 101 variables, which is pretty substantial since each variable can be a multidimensional array. It also lets you run larger modes in ‘browse mode.’ Learn more about the free edition.

    While Analytica doesn’t run on macOS, it does work with Parallels or VMWare through Windows.


      Analytica Cubes Pattern