asArray [line 510]
Return all config settings in an array.
getApiStatus [line 731]
null|string getApiStatus(
)
|
|
Status of the main OSM API (offline/readonly/online).
getDatabaseStatus [line 721]
null|string getDatabaseStatus(
)
|
|
Status of the OSM database (offline/readonly/online).
getGenerator [line 751]
Name of what generated the Capabilities XML.
getGpxStatus [line 741]
null|string getGpxStatus(
)
|
|
Status of the OSM GPX API (offline/readonly/online).
getMaxArea [line 617]
Max size of area that can be downloaded in one request.
Use like:
getMaxElements [line 711]
Maximum number of elements allowed per changeset.
Use like:
getMaxNodes [line 695]
Maximum number of nodes per way.
Anymore than that and the way must be split.
getMaxVersion [line 651]
Maximum API version supported by connected server.
Use like: $config = array('user' => 'fred@example.net', 'password' => 'wilma4eva');
getMinVersion [line 634]
Minimum API version supported by connected server.
Use like: $config = array('user' => 'fred@example.net', 'password' => 'wilma4eva');
getTimeout [line 662]
Return the number of seconds that must elapse before a connection is considered to have timed-out.
getTracepointsPerPage [line 678]
int getTracepointsPerPage(
)
|
|
Maximum number of tracepoints per page.
Use like:
getTransport [line 500]
Services_OpenStreetMap_Transport. getTransport(
)
|
|
Retrieve the current Transport instance.
getValue [line 206]
mixed getValue(
[string
$name = null])
|
|
Get the value of a configuration setting - if none is set all are returned.
Use like: $config = $osm->getConfig();
Parameters:
getXmlValue [line 766]
string getXmlValue(
SimpleXMLElement
$xml, string
$tag, string
$attribute, [mixed
$default = null])
|
|
Given SimpleXMLElement, retrieve tag value.
Parameters:
setAcceptLanguage [line 333]
Set the 'Accept' language.
Parameters:
setPasswordfile [line 441]
Set and parse a password file, setting username and password as specified in the file.
A password file is a ASCII text file, with username and passwords pairs on each line, separated [delimited] by a semicolon. Lines starting with a hash [#] are comments. If only one non-commented line is present in the file, that username and password will be used for authentication. If more than one set of usernames and passwords are present, the username must be specified, and the matching password from the file will be used.
# Example password file.
fredfs@example.com:Wilma4evah
barney@example.net:B3ttyRawks
Parameters:
setServer [line 395]
Connect to specified server.
Parameters:
setTransport [line 488]
Set the Transport instance.
Parameters:
setValue [line 260]
Set at least one configuration variable.
Use like: $osm->setConfig('user', 'fred@example.com');
$osm->setConfig(array('user' => 'fred@example.com', 'password' => 'Simples'));
$osm->setConfig('user' => 'f@example.com')->setConfig('password' => 'Sis');
The following parameters are available:
- 'accept-language' - language to use for queries with Nominatim
- 'adapter' - adapter to use (string)
- 'api_version' - Version of API to communicate via (string)
- 'password' - password (string, optional)
- 'passwordfile' - passwordfile (string, optional)
- 'server' - server to connect to (string)
- 'User-Agent' - User-Agent (string)
- 'user' - user (string, optional)
- 'verbose' - verbose (boolean, optional)
- 'oauth_token' - false
- 'oauth_token_secret' - false
- 'oauth_consumer_key' - false
- 'consumer_secret' - false
- 'ssl_verify_peer' - true
- 'ssl_verify_host' - true
- 'ssl_cafile' - null
- 'ssl_local_cert' - null
- 'ssl_passphrase' - null
SSL related parameters are documented at http://pear.php.net/manual/en/package.http.http-request2.config.php
Parameters: