Skip to content

Instantly share code, notes, and snippets.

@aurelian
Created November 3, 2008 20:49
Show Gist options
  • Save aurelian/21977 to your computer and use it in GitHub Desktop.
Save aurelian/21977 to your computer and use it in GitHub Desktop.
<?php
$sxe= simplexml_load_file( RSS_FILE );
foreach($sxe->channel->item as $item) {
list($lat, $long)= explode(" ", trim($item->children('http://www.georss.org/georss')->point));
echo " * %". ucwords($item->title) . "% { :latitude => " . $lat . ", :longitude => " . $long . " } \n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment