Ignore:
Timestamp:
Jun 15, 2006, 5:30:27 PM (14 years ago)
Author:
nick
Message:

Move the common geo formatting into Listing.pm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm

    r329 r330  
    221221
    222222    # Include geospacial data, if we have it
    223     my $geo_rss = "";
    224     if($node->{metadata}->{latitude}) {
    225         $geo_rss .= "  <geo:lat>".$node->{metadata}->{latitude}."</geo:lat>\n";
    226     }
    227     if($node->{metadata}->{longitude}) {
    228         $geo_rss .= "  <geo:long>".$node->{metadata}->{longitude}."</geo:long>\n";
    229     }
    230     if($node->{metadata}->{os_x}) {
    231         $geo_rss .= "  <space:os_x>".$node->{metadata}->{os_x}."</space:os_x>\n";
    232     }
    233     if($node->{metadata}->{os_y}) {
    234         $geo_rss .= "  <space:os_y>".$node->{metadata}->{os_y}."</space:os_y>\n";
    235     }
    236     if($node->{metadata}->{distance}) {
    237         $geo_rss .= "  <space:distance>".$node->{metadata}->{distance}."</space:distance>\n";
    238     }
     223    my $geo_rss = $self->format_geo($node->{metadata});
    239224
    240225    push @items, qq{
Note: See TracChangeset for help on using the changeset viewer.