function addWay(Way $way)
 {
     $this->ways[] = $way;
     foreach ($way->getNodes() as $node) {
         $this->addNode($node);
     }
 }
                     if (is_numeric($v[0])) {
                         sort($v, SORT_NUMERIC);
                     } else {
                         sort($v);
                     }
                 }
                 $node->tags[$k] = implode(';', $v);
             }
         }
         $osm->nodes[] = $node;
     }
 }
 // behúzzuk a vonalakat
 $newcells = array();
 foreach ($cellNodesBySite[$site['mcc']][$site['mnc']][$site['site']] as $cell) {
     $way = new Way();
     $way->id = $cell->id;
     $way->attr['version'] = '9999';
     $way->addNode($node);
     $way->addNode($cell);
     $way->tags = $cell->tags;
     // ha meglevő node, akkor figyelmeztetjük az új cellákra
     if ($nodeid !== null) {
         $net = $cell->tags['net'];
         $key = 'cellid';
         if (!isset($cells_at_node[$net]) || !in_array($cell->tags[$key], $cells_at_node[$net])) {
             $way->tags['fixme'] = 'new cell';
             $newcells[$net][] = $cell->tags;
             if (!isset($params['noautotag'])) {
                 $way->tags['tagged'] = 'auto';
                 $cell->tags['tagged'] = 'auto';