Changeset 1868

Show
Ignore:
Timestamp:
11/27/06 12:47:40
Author:
miyagawa
Message:
  • Added Filter::FindMapLinks? to find geo URL from links to map sites.
  • Plagger::Location lat|long method now forces numeric context in setter. It'd be better Moosified.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/feature-geo/plagger/lib/Plagger/Location.pm

    r1841 r1868  
    44 
    55use base qw( Class::Accessor::Fast ); 
    6 __PACKAGE__->mk_accessors( qw( latitude longitude address )); 
     6__PACKAGE__->mk_accessors( qw( address )); 
    77 
    88# XXX add datum here? 
    99# For now latitude/longitude should be in WGS84 
    1010 
     11sub latitude { 
     12    my $self = shift; 
     13    if (@_) { 
     14        $self->{latitude} = shift() + 0; # numify 
     15    } 
     16    $self->{latitude}; 
     17} 
     18 
     19sub longitude { 
     20    my $self = shift; 
     21    if (@_) { 
     22        $self->{longitude} = shift() + 0; # numify 
     23    } 
     24    $self->{longitude}; 
     25} 
     26 
    11271; 
    1228