Yelp search Api in iOS -
i working on app in have show accessories, cost & other info yelp. after lot of searching have found useful link: https://github.com/yelp/yelp-api/tree/master/v2/ios method not working me.
until have used single web service working & other's giving error missing parameter.
this working:
http://api.yelp.com/business_review_search?term=mobile&ywsid=pyhvqegfdlev******&tl_lat=37.9&tl_long=-122.5&br_lat=37.788022&br_long=-122.399797
is there api phone call returns me cost , offers & other info because above 1 review.
check answer: how search local business name, location in ios?
in success venue block info event
-(instancetype)initwithdict:(nsdictionary *)dict { self = [super init]; if (self) { self.name = [dict objectforkey:@"name"]; self.venueid = [dict objectforkey:@"id"]; self.thumburl = [dict objectforkey:@"image_url"]; self.ratingurl = [dict objectforkey:@"rating_img_url"]; self.yelpurl = [dict objectforkey:@"url"]; self.venueid = [dict objectforkey:@"id"]; self.reviewscount =[[dict objectforkey:@"review_count"] stringvalue]; self.categories = [dict objectforkey:@"categories"][0][0]; self.distance = [dict objectforkey:@"distance"]; self.price = [dict objectforkey:@"deals.options.formatted_price"]; self.address = [[[dict objectforkey:@"location"] objectforkey:@"address"] componentsjoinedbystring:@", "]; nsarray *adr = [[dict objectforkey:@"location"] objectforkey:@"display_address"]; self.displayaddress = [adr componentsjoinedbystring:@","]; } homecoming self;
}
ios yelp
No comments:
Post a Comment