Im trying to implemente an indipendent seachbox in my website. But how i can handle the result of the autocomplete? I've watch this lines of code:
ttSearchBox.on('tomtom.searchbox.resultsfound', function(data) {
console.log(data);
});
But it's impossible for me to get the results of the autocomplete. How can i handle it? That the relative documentation
https://developer.tomtom.com/maps-sdk-web-js/tutorials/basic/searchbox-integration