HTML/JS/PHP/PYTHON: Textbox autosuggestion
- Статус: Closed
- Награды: ₹3000
- Полученные заявки: 3
- Победитель: NathanD3V
Краткое описание конкурса
I have a textbox with autosuggestions of cities and districts in Portugal:
https://jsfiddle.net/Loz84rwk/
I want the textbox to have the same autosuggestions as on airbnb.pt (https://ibb.co/QQjx8SL)
This means I need a script which fetches the data from the json-file of airbnb:
https://www.airbnb.pt/api/v2/autocompletes?country=PT&language=pt&locale=pt-PT&num_results=5&user_input=porto&api_version=1.2.0&vertical_refinement=homes®ion=-1&options=should_filter_by_vertical_refinement%7Chide_nav_results%7Cshould_show_stays%7Csimple_search%7Cflex_destinations_june_2021_launch_web_treatment
The script should show the same suggestions. The textbox and dropdown do not need to have the same design (css is not important).
To prevent too much crawling, the results should be saved localy. So if a user searches for "Porto", the script should fetch the json results from airbnb and save it localy. The next time a user searches for "Porto", it should get the results from the local storage.
I will accept the first working result.
Рекомендуемые навыки
Панель общих вопросов
Как организовать конкурс
-
Опубликуйте ваш конкурс Быстро и легко
-
Получите массу заявок Со всего мира
-
Присудите приз лучшей заявке Загрузите файлы – это просто!