Learn R Programming

altfuelr (version 0.1.0)

all_stations: Find All Alternate Fuel Stations by Criteria

Description

Find All Alternate Fuel Stations by Criteria

Usage

all_stations(api_key, params = nrel_params(limit = "all"))

Arguments

api_key

Character. An authorized API key for the NREL API service. API keys can be requested at https://developer.nrel.gov/signup/

params

A list of parameters for the API call. See ?nrel_params for options.

Value

An object of class nrel_api, containing content, parameters, and response.

Examples

Run this code
# NOT RUN {
my_params <- nrel_params(fuel_type = "ELEC", ev_connector_type = "TESLA")
my_stations <- get_all_stations(MY_API_KEY, my_params)
stations(my_stations)
# }

Run the code above in your browser using DataLab