Description Usage Arguments Value Examples
Check For Alternate Fuel Nearby
1 | alt_fuel_near(api_key, location = NULL, miles = 5, fuel_type = NULL)
|
api_key |
Character. An authorized API key for the NREL API service. API keys can be requested at https://developer.nrel.gov/signup/ |
location |
A free-form input describing the address of the location. This may include the address given in a variety of formats, such as: street, city, state, postal code, etc. |
miles |
Numeric. The radius (in miles) around the search location to search for stations within. An explicit radius of up to 500.0 miles may be passed in, or the special infinite string may be passed in to find the nearest stations regardless of distance. Defaults to 5. |
fuel_type |
Optional. Filter results by a specific fuel type. Options: BD (biodiesel), CNG (compressed natural gas), ELEC (electric), E85 (ethanol/E85), HY (hydrogen), LNG (liquified natural gas), LPG, (propane). |
Logical value indicating whether at least one alternative fuel station exists for the given fuel in the given radius around the specified location.
1 2 3 4 5 | ## Not run:
alt_fuel_near(MY_API_KEY, "Nome, AK")
alt_fuel_near(MY_API_KEY, "Raleigh, NC", radius = 10, fuel_type = "LNG")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.