This function goes through the USAirportWeatherStations dataset and looks for matches. Usually, the 4 letter airportCode is what you are after.
String that you want to get the weatherStation code for
A qualifier about the station's location. It could be a continent or a country. If in the US, region is a two-letter state abbreviation. Ex. "AK" for Alaska
A one row data frame containing:
A string of Station Name that matched
the region. (two-letter state abbreviation if in the US)
The 4-letter weather
station ID. (This is the string you use when calling
For a world-wide list of possible stations, be sure to look
The ICAO (4-letter code is what needs to be input to
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.