/** * Create and add a new way to the objects collection. * * @param array $nodes * @param array $tags * @return OSM_Objects_Way */ public function addNewWay(array $nodes = null, array $tags = null) { $way = new OSM_Objects_Way($this->_newIdCounter--); if (is_array($nodes)) { $way->addNodes($nodes); } if (is_array($tags)) { $way->addTags($tags); } return $way; }