Skip to content

Instantly share code, notes, and snippets.

@LinuxDoku
Created May 18, 2010 10:31
Show Gist options
  • Save LinuxDoku/404859 to your computer and use it in GitHub Desktop.
Save LinuxDoku/404859 to your computer and use it in GitHub Desktop.
<?php
// Zustz vom Ort trennen - Unter Zusatz läuft nur nicht Kartenmaterial
// Dieser Filter erlaubt nur folgende Patterns:
// Erlaubter Zusatz, Ortsname Ortszusatz (Strassen, Postleitzahl, Bekanntes Gebäude)
// Alles vor dem Zeichen wird mittels RegEx entfernt
$location = $_GET['location'];
$location = preg_replace('/([a-zA-Z0-9 ])*, /', '', $location);
?>
<br />
<iframe id="map" width="924" height="480" style="border: 2px solid;" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=de&geocode=&q=<?php echo $location; ?>&z=13&amp;output=embed"></iframe><br />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment