The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::Recruit::Jalan::OnsenSearch - Jalan Web Service "OnsenSearch" API

SYNOPSIS

    use WebService::Recruit::Jalan;

    my $jalan = WebService::Recruit::Jalan->new();
    $jalan->key( 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' );

    my $param = {
        s_area      =>  '141602',
    };
    my $res = $jalan->OnsenSearch( %$param );
    die "error!" if $res->is_error;

    my $list = $res->root->Onsen;
    foreach my $onsen ( @$list ) {
        print "OnsenID: ",   $onsen->OnsenID, "\n";
        print "OnsenName: ", $onsen->OnsenName, "\n";
    }

    my $root = $res->root;

DESCRIPTION

The request to this API requires one or some of query parameters below:

    my $param = {
        reg         =>  '10',
        pref        =>  '130000',
        l_area      =>  '136200',
        s_area      =>  '136202',
        onsen_q     =>  '0',
        start       =>  '1',
        count       =>  '10',
        xml_ptn     =>  '0',
    };

The response from this API is tree structured and provides methods below:

    $root->NumberOfResults
    $root->DisplayPerPage
    $root->DisplayFrom
    $root->APIVersion
    $root->Onsen
    $root->Onsen->[0]->OnsenName
    $root->Onsen->[0]->OnsenNameKana
    $root->Onsen->[0]->OnsenID
    $root->Onsen->[0]->OnsenAddress
    $root->Onsen->[0]->Area
    $root->Onsen->[0]->Area->Region
    $root->Onsen->[0]->Area->Prefecture
    $root->Onsen->[0]->Area->LargeArea
    $root->Onsen->[0]->Area->SmallArea
    $root->Onsen->[0]->NatureOfOnsen
    $root->Onsen->[0]->OnsenAreaName
    $root->Onsen->[0]->OnsenAreaNameKana
    $root->Onsen->[0]->OnsenAreaID
    $root->Onsen->[0]->OnsenAreaURL
    $root->Onsen->[0]->OnsenAreaCaption

And paging methods are provided, see "PAGING" in WebService::Recruit::Jalan. This module is based on XML::OverHTTP.

SEE ALSO

WebService::Recruit::Jalan

AUTHOR

Yusuke Kawasaki http://www.kawa.net/

This module is unofficial and released by the authour in person.

COPYRIGHT AND LICENSE

Copyright (c) 2007 Yusuke Kawasaki. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.