Bing::Search::Source::Phonebook - Phonebook lookups with Bing.


Bing-Search documentation Contained in the Bing-Search distribution.

Index


Code Index:

NAME

Top

Bing::Search::Source::Phonebook - Phonebook lookups with Bing.

SYNOPSIS

Top

 my $source = Bing::Search::Source::Phonebook->new();

METHODS

Top

Market, Version, Adult, UILanguage, Latitude, Longitude, Radius, Options, and setOptions

See Bing::Search for documentation on this common options.

Phonebook_Offset and Phonebook_Count

The default value for Phoneboot_Count is 10, with a potential range of 1 to 25. The potential range for Phonebook_Offset is 0 to 1,000. The sum of both the Count and Offset may not exceed 1,000.

Phoneook_FileType

Selects which sort of listing to search. Valid optionsa re YP or WP, for commercial listings ("yellow pages") or residential ("white pages") respectivly.

See http://msdn.microsoft.com/en-us/library/dd250976.aspx for details.

Phonebook_LocId

If you happen to have a UniqueId value from a Bing::Search::Result::Phonebook, you can put it here to do a lookup on a specific entry.

Phonebook_SortyB

See http://msdn.microsoft.com/en-us/library/dd250925.aspx for details.

Influences the sort order of the results. Valid options are Default, Distance, or Relevance.

AUTHOR

Top

Dave Houston, dhouston@cpan.org, 2010

LICENSE

Top

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


Bing-Search documentation Contained in the Bing-Search distribution.

package Bing::Search::Source::Phonebook;
use Moose;
extends 'Bing::Search::Source';

with 'Bing::Search::Role::PhonebookRequest::Count';

with qw(
Bing::Search::Role::SearchRequest::Market
Bing::Search::Role::SearchRequest::Version
Bing::Search::Role::SearchRequest::Adult
Bing::Search::Role::SearchRequest::UILanguage
Bing::Search::Role::SearchRequest::Latitude
Bing::Search::Role::SearchRequest::Longitude
Bing::Search::Role::SearchRequest::Radius
Bing::Search::Role::SearchRequest::Options
Bing::Search::Role::PhonebookRequest::Offset
Bing::Search::Role::PhonebookRequest::FileType
Bing::Search::Role::PhonebookRequest::LocId
Bing::Search::Role::PhonebookRequest::SortBy
);

sub _build_source_name { 'Phonebook' }

__PACKAGE__->meta->make_immutable;