旅游/酒店API的? [英] Travel/Hotel API's?

查看:198
本文介绍了旅游/酒店API的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作涉及到创建一个全球酒店数据库,丰富的数据,如地址,图片,说明,政策,协调,设施,评论,局域描述及其设施等大型项目。

I am working on a large project involving creating a worldwide hotel database with rich data such as Addresses, Images, Descriptions, Policies, Coordinates, Facilities, Reviews, Local area descriptions and their amenities etc.

我要寻找一个酒店的公共API,我既可以检索数据并运行(preferably的RESTful)为特定的地点和可用房间的实时查询,并在那里我可以随后让我的顾客进行预订。

I am looking for a public hotel API where I can both retrieve the data and run (preferably RESTful) real-time queries for specific locations and available rooms, and where I can subsequently let my customers make bookings.

任何人都可以分享经验,知识和这样一个项目可能准则,其API是合适的,什么是最好的做法是什么?

Can anyone share experience, knowledge and possible guidelines for such a project, which APIs are suitable and what are the best practices?

推荐答案

在我的酒店搜索的API,我发现只有一个API提供无限制的开放获取自己的酒店数据库,并允许您预订的酒店:

In my search for hotel APIs I have found only one API giving unrestricted open access to their hotel database and allowing you to book their hotels:

Expedia的EAN http://developer.ean.com/

Expedia's EAN http://developer.ean.com/

您需要登录他们的联盟计划,这是非常容易的。
你得到即时访问他们的酒店数据库,再加上你可以有几个应对方案,包括JSON,这比(不幸)更多wides $ P $垫XML更加方便和轻巧的可用性/预约请求。

You need to sign for their affiliate program, which is very easy. You get immediate access to their hotel databases plus you can make availability/booking requests with several response options, including JSON, which is more convenient and lightweight than the (unfortunately) more widespread XML.

如您立即访问他们的API,你就可以开始开发和测试,但仍需要他们的认可,推出该网站,基本上可以确保它提供所需的质量和安全性,这是合理的。

As you immediately access their API, you can start developing and testing, but still need their approval to launch the site, basically to make sure it provides the needed quality and security, which is reasonable.

他们还提供深层链接,即你可以通过添加参数自定义您的要求。然后,如果它足够满足您的用途(矿是不是),你甚至都不需要他们的内容存储在服务器上。

They also offer "deep linking", i.e. you may customize your requests by adding parameters. Then if it sufficient for your purpose (for mine it is not), you don't even need to store their content on your server.

我也签署了使用HotelsCombined程序:
(链接移除这个网站似乎并没有让我把更多的链接)

I have also signed for HotelsCombined program: (link removed as this site doesn't seem to let me put more links)

然而,他们没有立即允许你使用他们的API,甚至进行测试。从他们的回答是:

However, they do not immediately allow you to use their API even for testing. From their answer:

的不便道歉引起的,但它只是一个商业决定限制访问我们丰富的酒店内容,请未来2-3个月,我们将能够判断流量中亲切地回来看看,并依次判断你的标准数据提要状态。

"Apologies for the inconvenience caused, but it’s simply a business decision to limit access to our rich hotel content. Please kindly check back within the next 2-3 months, where we will be able to judge your traffic, and in turn judge your status on standard data feeds."

我也签署了Booking.com联盟计划:
(链接移除这个网站似乎并没有让我把更多的链接)

I have also signed for Booking.com affiliate program: (link removed as this site doesn't seem to let me put more links)

不幸的是,一次,他们限制访问,从他们的回答:
请你注意的是,因为有时间和涉及的XML集成成本高的量,我们只能够提供XML集成到具有高潜力的合作伙伴少量的。

Unfortunately, again, they limit access, from their answer: "Please do note that, since there's a high amount of time and cost involved in the XML integration, we are only able to offer the XML integration to a small amount of partners with a high potential."

我没有探索Tripadvisor的,因为他们好像只提供前10名的酒店,只为窗口小部件,但最重要的对我来说,他们不会允许通过他们预约。

I did not explore Tripadvisor as they seem only to offer top 10 hotels and only as widgets, but most importantly for me, they wouldn't allow booking through them.

我检查上面提到的hotelbase.org,他们有很广泛的名单,但没有丰富的由Expedia的,也是他们似乎并不有图像,并且不允许任何预订。

I've checked the hotelbase.org mentioned above, they have very extensive list but not as rich as by Expedia, also they don't seem to have images and don't allow booking either.

这篇关于旅游/酒店API的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆