. .


'600px', 'height' => '400px', 'lon' => '11.02751', 'lat' => '49.573781', 'zoom' => '16', 'desc' => 'Regionales Rechenzentrum
Martensstraße 1
91058 Erlangen', 'icontype' => 'default', 'scale' => '1', 'attribution' => '1', 'zoombar' => '1', 'xml' => '' ); // load options $fpath = 'options.conf'; $fpath_alternative = $_SERVER["DOCUMENT_ROOT"].'/vkdaten/osm-karte.conf'; if(file_exists($fpath_alternative)){ $fpath = $fpath_alternative; } $options = array(); $fh = fopen($fpath, 'r') or die('Cannot open file!'); while(!feof($fh)) { $line = fgets($fh); $line = trim($line); if((strlen($line) == 0) || (substr($line, 0, 1) == '#')) { continue; // ignore comments and empty rows } $arr_opts = preg_split('/\t/', $line); // tab separated $options[$arr_opts[0]] = $arr_opts[1]; } fclose($fh); // merge defaults with options $options = array_merge($defaults, $options); // load pathinfo if(isset($_SERVER['PATH_INFO'])){ $pathinfo = split("/", $_SERVER['PATH_INFO']); if(!empty($pathinfo[1])){ $options['xml'] = filter_var($pathinfo[1], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[a-z]*$/"))); } if(!empty($pathinfo[2])){ $options['width'] = filter_var($pathinfo[2], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-9px\%]{2,7}$/"))); } if(!empty($pathinfo[3])){ $options['height'] = filter_var($pathinfo[3], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-9px\%]{2,7}$/"))); } if(!empty($pathinfo[4])){ $options['lon'] = filter_var($pathinfo[4], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-9\.]{2,15}$/"))); } if(!empty($pathinfo[5])){ $options['lat'] = filter_var($pathinfo[5], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-9\.]{2,15}$/"))); } if(!empty($pathinfo[6])){ $options['zoom'] = filter_var($pathinfo[6], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-9]{1,2}$/"))); } } // load get variables if(!empty($_GET['xml'])){ $options['xml'] = filter_var($_GET['xml'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[a-z]*$/"))); } if(!empty($_GET['width'])){ $options['width'] = filter_var($_GET['width'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-9px\%]{2,7}$/"))); } if(!empty($_GET['height'])){ $options['height'] = filter_var($_GET['height'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-9px\%]{2,7}$/"))); } if(!empty($_GET['lon'])){ $options['lon'] = filter_var($_GET['lon'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-9\.]{2,15}$/"))); } if(!empty($_GET['lat'])){ $options['lat'] = filter_var($_GET['lat'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-9\.]{2,15}$/"))); } if(isset($_GET['zoom'])){ $options['zoom'] = filter_var($_GET['zoom'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-9]{1,2}$/"))); } if(!empty($_GET['desc'])){ $options['desc'] = filter_var($_GET['desc'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[\w\s]{1,70}$/"))); } if(!empty($_GET['icontype'])){ $options['icontype'] = filter_var($_GET['icontype'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[a-z\-]{1,20}$/"))); } if(isset($_GET['scale'])){ $options['scale'] = filter_var($_GET['scale'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-1]{1}$/"))); } if(isset($_GET['attribution'])){ $options['attribution'] = filter_var($_GET['attribution'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-1]{1}$/"))); } if(isset($_GET['zoombar'])){ $options['zoombar'] = filter_var($_GET['zoombar'], FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[0-1]{1}$/"))); } // load xml // $xml_file = $_SERVER["DOCUMENT_ROOT"].'/vkdaten/'.$options['xml'].'.xml'; $xml_file = $_SERVER["DOCUMENT_ROOT"].$options['xml']; // Geaendert, Orginal war Zeile davor if (file_exists($xml_file)) { $xml = simplexml_load_file($xml_file, 'SimpleXMLElement', LIBXML_NOCDATA); $markers = array(); $i = 0; foreach($xml->children() as $child){ foreach($child->children() as $childchild){ $markers[$i][$childchild->getName()] = $childchild; } foreach($child->attributes() as $attribute => $value){ $markers[$i][$attribute] = $value; } $i++; } } ?>
Map by OpenStreetMap

Institute Institute of Physiology 1    Bahnhof Main station

By car via highway A73:

Coming from Nuernberg (A3), driving direction to Bamberg:
Take exit Erlangen-Centrum, turn right at the first traffic light. Stay on the W.v.Siemens-street up to the second traffic light. Turn into the Schuhstraße. Keep straigth on until you end up at the Universitaetsstrasse. Turn right and after 50m you will find the Institute on the left side.

Coming from Bamberg (A3), driving direction to Nuernberg:
Take exit Erlangen-Centrum. Stay on the W.v.Siemens-street up to the third traffic light. Turn into the Schuhstraße. Keep straigth on until you end up at the Universitaetsstrasse. Turn right and after 50m you will find the Institute on the left side.

By train:
It is easy to walk from the main station to the institute. It will take about 10 minutes (distance: 500 m). Take the main exit of the station and head straight for the Richard-Wagner-Street which is left hand on the other side of the place. Keep straight on, pass the Hugenotten place and you will reach the Universitaetsstraße. In this street you will find the institute on the left (see map above).
For more information about traveling by train visit the pages of German railway (Deutsche Bahn).

By plane:
Usually you will arrive at the airport Nuremberg (NUE). Best would be to take a taxi which is about 30 €. Otherwise take the subway (U-Bahn) U2 which directly goes to the main station of Nuremberg. From there trains to Erlangen leave every 20 to 30 minutes.
Find more informations at the website of the Nuremberg airport.

Stand: 24.10.2012