Request SolarGIS for the United States and Canada.
Install solargis
using the devtools
package.
devtools::install_github("jmousseau/solargis")
Let A
be an existing location with data from 2015-01-01 to 2016-01-01. If a
user requests location A
data from 2013-01-01 to 2014-01-01, the meta.csv
record will say that location A
data exits from 2013-01-01 to 2016-01-01
even though 2014 data was not fetched. To fix this issue, a new data range
representation is required in the meta.csv
file. For example, the two
ranges above could be stored as "2013-01-01:2014-01-01 2015-01-01:2016-01-01"
.
Request data for a location. In this example, the store/
directory will be
used to keep a single point of truth for request history.
data_file_path <- solargis::request("store/", "0001", 41.8, -87.6, "2017-03-08",
"2018-11-20", "api-key")
Interface with the Usage API. All routes are supported.
solargis::usage_calls("api-key")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.