OpenStreetMap

Joomla Framework class for interacting with the OpenStreetMap API.

deprecated
since

1.0

deprecated

The joomla/openstreetmap package is deprecated

Methods

__construct

Constructor.

__construct(\Joomla\OpenStreetMap\OAuth $oauth = null, array $options = array(), \Joomla\Http\Http $client = null) 
since

1.0

Arguments

$oauth

\Joomla\OpenStreetMap\OAuthOpenStreetMap OAuth client

$options

arrayOpenStreetMap options object

$client

\Joomla\Http\HttpThe HTTP client object

__get

Method to get object instances

__get(string $name) : \Joomla\OpenStreetMap\OpenStreetMapObject
since

1.0

throws

\InvalidArgumentException

Arguments

$name

stringName of property to retrieve

Response

\Joomla\OpenStreetMap\OpenStreetMapObjectOpenStreetMap API object

getOption

Get an option from the OpenStreetMap instance.

getOption(string $key) : mixed
since

1.0

Arguments

$key

stringThe name of the option to get.

Response

mixedThe option value.

setOption

Set an option for the OpenStreetMap instance.

setOption(string $key, mixed $value) : \Joomla\OpenStreetMap\OpenStreetMap
since

1.0

Arguments

$key

stringThe name of the option to set.

$value

mixedThe option value to set.

Response

\Joomla\OpenStreetMap\OpenStreetMapThis object for method chaining.

Properties

options

Options for the OpenStreetMap object.

since

1.0

Type(s)

array

client

The HTTP client object to use in sending HTTP requests.

since

1.0

Type(s)

\Joomla\Http\Http

oauth

The OAuth client.

since

1.0

Type(s)

\Joomla\OpenStreetMap\OAuth

changesets

OpenStreetMap API object for changesets.

elements

OpenStreetMap API object for elements.

since

1.0

Type(s)

\Joomla\OpenStreetMap\Elements

gps

OpenStreetMap API object for GPS.

since

1.0

Type(s)

\Joomla\OpenStreetMap\GPS

info

OpenStreetMap API object for info.

since

1.0

Type(s)

\Joomla\OpenStreetMap\Info

user

OpenStreetMap API object for user.

since

1.0

Type(s)

\Joomla\OpenStreetMap\User