powered by
Query the NREL Alternative Fuel API
altfuel_api(api_key, endpoint, params = list(NULL))
Character. An authorized API key for the NREL API service. API keys can be requested at https://developer.nrel.gov/signup/
Character. Path to the specific API endpoint. Options available at https://developer.nrel.gov/docs/transportation/alt-fuel-stations-v1/
A list of parameters for the API call. See ?nrel_params for options.
An object of class nrel_api, containing content, parameters, and response.
# NOT RUN { altfuel_api(MY_API_KEY, endpoint = "/api/alt-fuel-stations/v1") # }
Run the code above in your browser using DataLab