Services_OpenStreetMap
[ class tree: Services_OpenStreetMap ] [ index: Services_OpenStreetMap ] [ all elements ]

Class: Services_OpenStreetMap_Node

Source Location: /Services_OpenStreetMap-1.0.0RC2/Services/OpenStreetMap/Node.php

Class Overview

Services_OpenStreetMap_Object
   |
   --Services_OpenStreetMap_Node

Services_OpenStreetMap_Node


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Services_OpenStreetMap_Object

Services_OpenStreetMap_Object::delete()
Mark the object as deleted.
Services_OpenStreetMap_Object::getAttributes()
Return the attributes set for this object in question.
Services_OpenStreetMap_Object::getConfig()
Get current Config object
Services_OpenStreetMap_Object::getId()
Retrieve the id of the object in question.
Services_OpenStreetMap_Object::getOsmChangeXml()
Generate and return the OsmChange XML required to record the changes made to the object in question.
Services_OpenStreetMap_Object::getRelations()
Get all relations referring to the object in question.
Services_OpenStreetMap_Object::getTag()
Return value of specified tag as set against this object.
Services_OpenStreetMap_Object::getTags()
Return the tags set for this object in question.
Services_OpenStreetMap_Object::getTransport()
Retrieve the current Transport instance.
Services_OpenStreetMap_Object::getType()
Return which type of object this is.
Services_OpenStreetMap_Object::getUid()
Retrieve the uid of the object in question.
Services_OpenStreetMap_Object::getUser()
Retrieve the user (creator/editor) of the object in question.
Services_OpenStreetMap_Object::getVersion()
Retrieve the version of the object in question
Services_OpenStreetMap_Object::getXml()
Get XML.
Services_OpenStreetMap_Object::history()
Get each distinct version of an object.
Services_OpenStreetMap_Object::isDirty()
Indicate whether object has had a tag added, edited or removed.
Services_OpenStreetMap_Object::osmChangeXml()
Amend changeXML with specific updates as appropriate.
Services_OpenStreetMap_Object::removeTag()
Remove a tag.
Services_OpenStreetMap_Object::removeTags()
Remove tags.
Services_OpenStreetMap_Object::setAllTags()
Set all tags.
Services_OpenStreetMap_Object::setChangesetId()
Set the Changeset Id for this object.
Services_OpenStreetMap_Object::setConfig()
Set Config object
Services_OpenStreetMap_Object::setId()
Set the id value of the object in question.
Services_OpenStreetMap_Object::setTag()
Set tag to [new] key/value pair.
Services_OpenStreetMap_Object::setTags()
Set tags.
Services_OpenStreetMap_Object::setTransport()
Set the Transport instance.
Services_OpenStreetMap_Object::setVal()
Store a specified value.
Services_OpenStreetMap_Object::setXml()
Set XML.
Services_OpenStreetMap_Object::__toString()
If modified, return the osmChangeXML for the object, otherwise the defining XML.

Class Details

[line 27]
Services_OpenStreetMap_Node


[ Top ]


Class Variables

$type =  'node'

[line 34]

What type of object this is.
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]



Method Detail

getAddress   [line 129]

array getAddress( )

Return address [tags], as an array, if set.
  • Access: public

[ Top ]

getLat   [line 41]

float getLat( )

Latitude of node
  • Access: public

[ Top ]

getLon   [line 51]

float getLon( )

Longitude of node
  • Access: public

[ Top ]

getWays   [line 158]

Services_OpenStreetMap_Ways getWays( )

Return a collection of Services_OpenStreetMap_Way objects that use the node in question.
  • Access: public

[ Top ]

setLat   [line 70]

Services_OpenStreetMap_Node setLat( float $value)

Set the Latitude of the node

Value must be in range of -90 to 90 degrees.

  1.  $node->setLat($lat)->setLon($lon);

  • Throws: Services_OpenStreetMap_InvalidArgumentException
  • Access: public

Parameters:

float   $value   —  Latitude (-90 < y < 90)

[ Top ]

setLon   [line 104]

Services_OpenStreetMap_Node setLon( float $value)

Set the Longitude of the node

Value must be in range of -180 to 180 degrees.

  1.  $node->setLat($lat)->setLon($lon);

  • Throws: Services_OpenStreetMap_InvalidArgumentException
  • Access: public

Parameters:

float   $value   —  Longitude (-180 < x < 180)

[ Top ]


Documentation generated on Tue, 28 May 2019 19:19:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.