Answer the question
In order to leave comments, you need to log in
How to implement the scheme and methods of working with api Hotellook.ru?
We want to implement a hotel search on our website in our design. During the search, it turned out that the option of obtaining data from partners via api is suitable.
So far, I'm considering and understanding the api described here:
api description .
In theory, how to work with this is described, but my experience is not yet enough to do everything as needed, because getting data is not enough, you have to operate with them, and here I have a lot of options in my head.
The first question that came to mind is that a search request is formed and results are displayed, but according to general parameters - place, dates, number of people. Those. it will not work to make a request to their server with conditions for price, stardom, services. This means that we receive the entire amount of information according to the specified criteria, and already various filters must be applied independently.
Here also I think to operate further with these data. hotellook.ru - as a result, it should work like they do. those. searches, filters and more. it’s not clear to me yet how they do it in such cases - the data needs to be placed in the cache, parsed into the database, processed on javascipt by parsing json, or more done through php. In general, share your experience on how to implement such things.
Answer the question
In order to leave comments, you need to log in
Pull all the data to the maximum and cache it in the database on your server in a structure convenient for you.
MongoDB is good for filtering searches.
I think you can update the cache once or twice a day, depending on the frequency of data updates from the partner.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question