NAME

WebService::Gnavi - Use Gnavi API From Perl

SYNOPSIS

my $gnavi = WebService::Gnavi->new(
  access_key => $key
);

my $res   = $gnavi->search(\%params);
my $pager = $res->pager;
my @list  = $res->list;

my @list = $gnavi->areas();
my @list = $gnavi->prefectures();
my @list = $gnavi->category_large();
my @list = $gnavi->category_small();

DESCRIPTION

WebService::Gnavi allows you to access gnavi.co.jp's APIs from Perl.

METHODS

new

Creates a new instance of WebService::Gnavi. The access_key argument is required.

search(\%params)

Searches for restaurants using the specified params

areas()

Returns the list of areas.

prefectures()

Returns the list of prefectures.

category_large()

Returns the list of large categories.

category_small()

Returns the list of small categories.

send_request($type, $request)

Sends a request to the API

CAVEATS

WebService::Gnavi::SearchResult doesn't collect categories at the moment. This is planned to be fixed soon-ish (or, send in a patch, please ;)

AUTHOR

Copyright (c) 2007 Daisuke Maki <daisuke@endeworks.jp>

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html