API for Hours and Locations of Restaurants
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:
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.
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).
Waiting for Yelp (or Google) to implement this (it looks like people have been asking for the feature for a while).
精彩评论