File: buildMetarDB.php
Source Location: /Services_Weather-1.3.2/buildMetarDB.php
Classes:
Page Details:
This script downloads, saves and processes the textfiles needed for the building the databases to enable searching for METAR stations.
You can download the locations, which is a database of about 12000 world- wide locations, which can be used to determine the coordinates of your city or you can download a file with 6500 airports providing the metar data. This database is used for the next-METAR-station search. Please see the apropriate documentation in the Services_Weather_Metar class. For usage of this script, invoke with '-h'.
Includes:
Services_Weather_checkData [line 66]
bool Services_Weather_checkData(
array $data, array $dataOrder)
|
|
Services_Weather_checkData Checks the data for a certain string-length and if it either consists of a certain char-type or a string of "-" as replacement.
Parameters
array |
$data |
The data to be checked |
array |
$dataOrder |
Because the data is in different locations, we provide this |
Services_Weather_getNextArg [line 105]
string|bool Services_Weather_getNextArg(
&$c, int $c)
|
|
Services_Weather_getNextArg Checks, if the next argument is a parameter to a predecessing option. Returns either that parameter or false, if the next argument is an option
Parameters
int |
$c |
Internal argument counter |
|
&$c |
|
Documentation generated on Mon, 11 Mar 2019 14:17:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|