load_location_db($path)
plot_location($name)
find_location(\%where,\%orderby)
add_location(\%data)
ASCOPE::Article::Collection::NYTimes - New York Times specific methods for ASCOPE::Article::Collection
use ASCOPE::Article::Collection::NYTimes; my $nyt = ASCOPE::Article::Collection::NYTimes->new(); my $data = $nyt->plot_location("Laos");
New York Times specific methods for ASCOPE::Article::Collection
This package inherits object methods from ASCOPE::Article::Collection
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
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.
find_location(\%where,\%orderby)
Returns one, or more, ASCOPE::Article::Collection::NYTimes::LocationDB objects or a Class::DBI::Iterator object.
add_location(\%data)
Returns a ASCOPE::Article::Collection::NYTimes::LocationDB object
1.0
$Date: 2004/09/18 22:07:11 $
Aaron Straup Cope
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.