JOpenstreetmapElements
class JOpenstreetmapElements extends JOpenstreetmapObject
Openstreetmap API Elements class for the Joomla Platform
Methods
Constructor
Get an option from the JOpenstreetmapObject instance.
Set an option for the JOpenstreetmapObject instance.
Method to send the request which does not require authentication.
Method to create a node
Method to create a way
Method to create a relation
Method to read an element [node|way|relation]
Method to update an Element [node|way|relation]
Method to delete an element [node|way|relation]
Method to get history of an element [node|way|relation]
Method to get details about a version of an element [node|way|relation]
Method to get data about multiple ids of an element [node|way|relation]
Method to get relations for an Element [node|way|relation]
Method to get ways for a Node element
Method to get full information about an element [way|relation]
Method used by the DWG to hide old versions of elements containing data privacy or copyright infringements
Details
__construct(
Registry $options = null,
JHttp $client = null,
JOpenstreetmapOauth $oauth = null)
Constructor
JOpenstreetmapObject
setOption(
string $key,
mixed $value)
Set an option for the JOpenstreetmapObject instance.
SimpleXMLElement
sendRequest(
string $path,
string $method = 'GET',
array $headers = array(),
mixed $data = '')
Method to send the request which does not require authentication.
array
createNode(
integer $changeset,
float $latitude,
float $longitude,
array $tags)
Method to create a node
array
updateElement(
string $element,
string $xml,
integer $id)
Method to update an Element [node|way|relation]
array
deleteElement(
string $element,
integer $id,
integer $version,
integer $changeset,
float $latitude = null,
float $longitude = null)
Method to delete an element [node|way|relation]
array
historyOfElement(
string $element,
integer $id)
Method to get history of an element [node|way|relation]
array
versionOfElement(
string $element,
integer $id,
integer $version)
Method to get details about a version of an element [node|way|relation]
array
multiFetchElements(
string $element,
string $params)
Method to get data about multiple ids of an element [node|way|relation]
array
relationsForElement(
string $element,
integer $id)
Method to get relations for an Element [node|way|relation]