[英]Yelp search Api in iOS
我正在开发一个应用程序,其中必须显示Yelp的配件,价格和其他信息。
经过大量搜索后,我发现了一个有用的链接: https : //github.com/Yelp/yelp-api/tree/master/v2/ios
但是这种方法对我不起作用。
到目前为止,我只使用了一个正常工作的Web服务,而其他人则给出了诸如缺少参数之类的错误。
这正在工作:
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
是否有另一个API调用可以向我返回价格,报价和其他信息,因为上面的一个正在审查中。
检查我的答案: 如何在iOS中按名称,位置搜索本地业务?
成功举办有关活动的场地信息
-(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:@","];
}
return self;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.