Services_Weather_Metar::setMetarDB() – Sets the parameters needed for connecting to the DB, where the location- search is fetching its data from. You need to build a DB with the external tool buildMetarDB first, it fetches the locations and airports from a NOAA-website.


require_once '/Weather/Metar.php';

DB_Error|bool Services_Weather_Metar::setMetarDB ( string $dsn , array $dbOptions = array() )


This package is not documented yet.


string $dsn

array $dbOptions


see DB::parseDSN


throws DB_Error


This function can not be called statically.

Returns IDs with location-name for a given country or all available countries, if no value was given (Previous) Sets the source, where the class tries to locate the METAR data (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.