We changed the format of the Hotel Chains attribute.
The old format looked like this:
- "Hotel Attributes": {
- "Chain": "Hilton Hotels"
- }
A string with the formal name, as a global attribute in the API reply.
The new format looks like this:
- "Hotel Attributes": {
- "Chain": [
- {
- "gds_code": "HH",
- "Name": "Hilton Hotels",
- "eva_code": "EPC-47"
- }
- ]
- }
The new format allows for simpler integration with client databases.
We have also moved the chain attribute to be location-related and it is no longer a global attribute.
This allows Eva to address complex itineraries, such as "2 nights in rome. hilton. 3 nights in paris. sheraton"
The changes will be part of the next revision of the API.
To preview the change and ease the integration we added a new "from future" request attribute.
Add ffi_chains to the request query and the API reply will contain the new chain format.
Example:
http://freeapi.evature.com/v1.0?site_code=a_site_code&api_key=an_api_key&ffi_chains&input_text=ny%20hilton
No comments:
Post a Comment