all_stations: Find All Alternate Fuel Stations by Criteria

Description Usage Arguments Value Examples

View source: R/altfuel_api.R

Description

Find All Alternate Fuel Stations by Criteria

Usage

1
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

1
2
3
4
5
6
## 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)

## End(Not run)

altfuelr documentation built on Jan. 13, 2021, 10:19 a.m.