altfuel_api: Query the NREL Alternative Fuel API

Description Usage Arguments Value Examples

View source: R/altfuel_api.R

Description

Query the NREL Alternative Fuel API

Usage

1
altfuel_api(api_key, endpoint, params = list(NULL))

Arguments

api_key

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

endpoint

Character. Path to the specific API endpoint. Options available at https://developer.nrel.gov/docs/transportation/alt-fuel-stations-v1/

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
## Not run: 
altfuel_api(MY_API_KEY, endpoint = "/api/alt-fuel-stations/v1")

## End(Not run)

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