class JOpenstreetmap

Joomla Platform class for interact with Openstreetmap API.

Methods

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

Constructor.

__get( string $name)

Method to get object instances

mixed
getOption( string $key)

Get an option from the JOpenstreetmap instance.

setOption( string $key, mixed $value)

Set an option for the Openstreetmap instance.

Details

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

Constructor.

Parameters

JOpenstreetmapOauth $oauth Openstreetmap oauth client
Registry $options Openstreetmap options object
JHttp $client The HTTP client object

JOpenstreetmapObject __get( string $name)

Method to get object instances

Parameters

string $name Name of property to retrieve

Return Value

JOpenstreetmapObject Openstreetmap API object

Exceptions

InvalidArgumentException

mixed getOption( string $key)

Get an option from the JOpenstreetmap instance.

Parameters

string $key The name of the option to get.

Return Value

mixed The option value.

JOpenstreetmap setOption( string $key, mixed $value)

Set an option for the Openstreetmap instance.

Parameters

string $key The name of the option to set.
mixed $value The option value to set.

Return Value

JOpenstreetmap This object for method chaining.