JOpenstreetmap

Joomla Platform class for interact with Openstreetmap API.

deprecated
since

3.2.0

deprecated

4.0 Use the joomla/openstreetmap package via Composer instead

package

Joomla.Platform

Methods

__construct

Constructor.

__construct(\JOpenstreetmapOauth $oauth = null, \Joomla\Registry\Registry $options = null, \JHttp $client = null) 
since

3.2.0

Arguments

$oauth

\JOpenstreetmapOauthOpenstreetmap oauth client

$options

\Joomla\Registry\RegistryOpenstreetmap options object

$client

\JHttpThe HTTP client object

__get

Method to get object instances

__get(string $name) : \JOpenstreetmapObject
since

3.2.0

throws

\InvalidArgumentException

Arguments

$name

stringName of property to retrieve

Response

\JOpenstreetmapObjectOpenstreetmap API object

getOption

Get an option from the JOpenstreetmap instance.

getOption(string $key) : mixed
since

3.2.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) : \JOpenstreetmap
since

3.2.0

Arguments

$key

stringThe name of the option to set.

$value

mixedThe option value to set.

Response

\JOpenstreetmapThis object for method chaining.

Properties

options

Options for the Openstreetmap object.

since

3.2.0

Type(s)

\Joomla\Registry\Registry

client

The HTTP client object to use in sending HTTP requests.

since

3.2.0

Type(s)

\JHttp

oauth

The OAuth client.

since

3.2.0

Type(s)

\JOpenstreetmapOauth

changesets

Openstreetmap API object for changesets.

since

3.2.0

Type(s)

\JOpenstreetmapChangesets

elements

Openstreetmap API object for elements.

since

3.2.0

Type(s)

\JOpenstreetmapElements

gps

Openstreetmap API object for GPS.

since

3.2.0

Type(s)

\JOpenstreetmapGps

info

Openstreetmap API object for info.

since

3.2.0

Type(s)

\JOpenstreetmapInfo

user

Openstreetmap API object for user.

since

3.2.0

Type(s)

\JOpenstreetmapUser