Joshua Daniel Rotenberg > WebService-Yelp > WebService::Yelp::Business

Download:
WebService-Yelp-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

WebService::Yelp::Business - Yelp.com API Business Class (heh, get it?)

SYNOPSIS ^

 use strict;
 use WebService::Yelp;

 my $yelp = WebService::Yelp->new({ywsid => 'XXXXXXXXXXXX'});

 my $biz_res = $yelp->search_review_hood({
                                             term => 'cream puffs',
                                             location => 'San Francisco',
                                             };
 for my $b (@{$biz_res->businesses()}) {

   print $b->name " has " . $b->review_count . " review(s)\n";
 }

DESCRIPTION ^

This class represents a business returned from a search.

METHODS (Read Only) ^

id

The business id.

latitude

The latitude of the business location.

longtitude

The longitude of the business location.

url

The URL for the business profile.

avg_rating

The business average rating.

review_count

The number of reviews for this business.

distance

The distance from the center of the city.

name

The business name.

address1

The first line of the business address.

address2

The second line of the business address.

city

The business city.

state

The business state.

zip

The business zip code.

phone

The business phone number.

photo_url

The url to a thumbnail pic of this business. (100x100 pixels)

photo_url_small

The url to a smaller thumbnail pic of this business. (40x40 pixels)

rating_img_url

The url to the star image for the business rating.

nearby_url

The url to search for other businesses nearby.

reviews

Returns an array reference of (up to) 3 WebService::Yelp::Review objects.

categories

Returns an array reference of WebService::Yelp::Category objects.

neighborhoods

Returns an array reference of WebService::Yelp::Neighborhood objects.

syntax highlighting: