HTML/JS/PHP/PYTHON: Textbox autosuggestion

  • Status: Closed
  • Præmier: ₹3000
  • Modtagne indlæg: 3
  • Vinder: NathanD3V

Konkurrence Instruktioner

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&region=-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.

Anbefalede Evner

Bedste indlæg fra denne konkurrence

Se flere indlæg

Offentlig Præciserings Opslagstavle

Ingen beskeder endnu.

Sådan kommer du i gang med konkurrencer

  • Opret din konkurrence

    Opret din konkurrence Hurtigt og nemt

  • Få tonsvis af indlæg

    Få tonsvis af indlæg Fra hele verden

  • Tildel det bedste indlæg

    Tildel det bedste indlæg Download filerne - Nemt!

Opret en Konkurrence Nu eller slut dig til os i dag!