$form->addAttribute('level','exact'); */ // CREATE INSERT IN DB $currentPlace = new Place(); $currentPlace->title = $streetName; $currentPlace->content = $streetHisto; $currentPlace->origin = $origin; $currentPlace->filesourceTitle = $fileTitle; $currentPlace->licence = $licence; // YakCat $cat = array("GEOLOCALISATION#RUE", "GEOLOCALISATION"); $currentPlace->setYakCat($cat); $currentPlace->zone = 1; $locationQuery = $streetName . ',Paris, France'; $res = $currentPlace->saveToMongoDB($locationQuery, $debug, $updateFlag); foreach ($res as $k => $v) { if (isset($v)) { $results[$k] += $v; } } $results['parse']++; } } $results['row']++; $row++; } fclose($handle); } //$res = $ontolgyXML->asXML($outputFile); $currentPlace->prettyLog($results);
$place->setYakCat($cat); $place->setYakCat(array($data[9])); if (!empty($data[33]) || !empty($data[34]) || !empty($data[20])) { $place->setTagCarPark(); } $transportation = ""; if (!empty($data[37])) { $transportation = "Tram: " . $data[37] . "<br>"; } if (!empty($data[38])) { $transportation = "Bus: " . $data[37]; } $place->contact->transportation = $transportation; $locationQuery = $data[10] . ', ' . $data[11] . ' ' . $data[12] . ', France'; $res = $place->saveToMongoDB($locationQuery, $debug, $updateFlag); foreach ($res as $k => $v) { if (isset($v)) { $results[$k] += $v; } } $results['parse']++; } $results['row']++; $row++; } fclose($handle); $place->prettyLog($results); } ?> </body> </html>