NAME

ASCOPE::Article::Collection::NYTimes - New York Times specific methods for ASCOPE::Article::Collection


SYNOPSIS

 use ASCOPE::Article::Collection::NYTimes;
 
 my $nyt  = ASCOPE::Article::Collection::NYTimes->new();
 my $data = $nyt->plot_location("Laos");


DESCRIPTION

New York Times specific methods for ASCOPE::Article::Collection


OBJECT METHODS

This package inherits object methods from ASCOPE::Article::Collection

$obj->load_location_db($path)

Load a list of previously-indexed locations. You can retrieve an existing index of 300+ locations from :

 http://aaronland.info/nytimes/knows/where/places.sqlite

$obj->plot_location($name)

Returns a hash reference, whose keys are :

 name
 latitude
 longitude
 locality
 region
 country

If a location database has been loaded, new entries will be added.

$obj->find_location(\%where,\%orderby)

Returns one, or more, ASCOPE::Article::Collection::NYTimes::LocationDB objects or a Class::DBI::Iterator object.

$obj->add_location(\%data)

Returns a ASCOPE::Article::Collection::NYTimes::LocationDB object


VERSION

1.0


DATE

$Date: 2004/09/18 22:07:11 $


AUTHOR

Aaron Straup Cope


LICENSE

Copyright (c) 2004 Aaron Straup Cope. All rights reserved.

This is free software, you may use it and distribute it under the same terms as Perl itself.