logo

English

Autocomplete

Autocomplete & Feedback

    const response: any = await client.autocomplete({
        query: 'building',
    });
    
    /**
    * when your users see the results, you register an event like onclick, that will 
    *  a feedback request to Lableb in case the user clicked on it.
    * 
    * here's an example in case the first item get clicked by the user
    */
    client.autocompleteFeedbackFromURL(response.data.response.results[0].feedbackUrl);