Get from a specific station
this.$api.weather.find_metar_by_icao(icao, (metar_callback) => {
// metar here
})
icao
: (String) ICAO of the station to look for.metar_callback(Object)
: Result of the search will be returned here. Null if nothing was found.
Get from the closest station
this.$api.weather.find_metar_from_coords(lat, lon, (metar_callback) => {
// metar here
})
lon, lat
: (Number) Coordinatesmetar_callback(Object)
: Result of the search will be returned here. Null if nothing was found.