开发者

API for Hours and Locations of Restaurants

开发者 https://www.devze.com 2023-03-20 00:10 出处:网络
I\'m looking to make an iPhone app that utilizes the opening and closing times of restaurants, as well as their location. I found hoursmap.com as a site that does some of what I want, but I haven\'t f

I'm looking to make an iPhone app that utilizes the opening and closing times of restaurants, as well as their location. I found hoursmap.com as a site that does some of what I want, but I haven't found any others, 开发者_如何学运维specifically none with any API. As far as I can tell, neither Yelp nor Google Places has this feature. Any help would be appreciated. Thanks!


I assume you are trying to do something different than the hoursmap.com app already does?

Without an official API for Google/Yelp/others that grabs hours from an already existing database, you have limited options. A couple I can think of:

  1. Scraping Yelp/Google with a roll-your-own screen scraper that does live scraping when a user asks for a location. This would be very hard to get right, and it probably breaks their TOS anyway, so be wary of that.

  2. Building your own database by scraping various sites and keeping your own searchable database. You can at least check the database for errors as it wouldn't be real-time (again, you may run into TOS issues).

  3. Waiting for Yelp (or Google) to implement this (it looks like people have been asking for the feature for a while).

0

精彩评论

暂无评论...
验证码 换一张
取 消