餐厅菜单搜索Api

发布于 2024-11-16 23:36:08 字数 82 浏览 6 评论 0原文

我想开发一个应用程序,它可以搜索给定位置的餐厅并显示餐厅的菜单详细信息。

是否有任何现有的 API 可供我重复使用来开发此类餐厅搜索?

I'm would like to develop an application which searches restaurants in a given location and also displays the restaurant's menu details.

Are there any existing APIs which I could reuse to develop such a restaurant search?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浪漫人生路 2024-11-23 23:36:08

是的,您可以使用雅虎本地搜索 API 来实现此目的。请参阅此链接以获取更多信息。
http://developer.yahoo.com/search/local/V3/localSearch.html

yes you can use Yahoo local search API for this. see this link for more info..
http://developer.yahoo.com/search/local/V3/localSearch.html

小ぇ时光︴ 2024-11-23 23:36:08

您还可以尝试使用 Locu API

文档:https://dev.locu.com/documentation/

我用来按位置获取餐厅菜单信息的基本查询如下所示:

curl -X POST https://api.locu.com/v2/venue/search -d '{  
    "api_key" : "[insert api key]",  
    "fields" : [ "name", "menus" ],  
    "venue_queries" : 
        [    
            {      
                "location" : 
                    {
                        "locality" : ["insert city name"]
                    }   
            }  
        ]
}'

然后我使用 http://curl.trillworks。 com 将我的查询转换为 python (使用请求模块)实际执行数据拉取。我希望这有帮助!

You can also try using the Locu API

Documentation: https://dev.locu.com/documentation/

The basic query that I used to get menu information of restaurants by location is shown below:

curl -X POST https://api.locu.com/v2/venue/search -d '{  
    "api_key" : "[insert api key]",  
    "fields" : [ "name", "menus" ],  
    "venue_queries" : 
        [    
            {      
                "location" : 
                    {
                        "locality" : ["insert city name"]
                    }   
            }  
        ]
}'

I then used http://curl.trillworks.com to convert my query into python (with the requests module) to actually perform the data pull. I hope this helps!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文