Open Revyn112 opened 9 years ago
I haven't tried the above code but I just looking at it you are missing the initialise as follows: . . . // Initialize the Bloodhound suggestion engine places.initialize();
$('.typeahead').typeahead({ hint: true, highlight: true, minLength: 1 },{ name: 'places', display: 'value', source: places });
@Revyn112: Try transform() instead of filter() @ImranAhmed in the docs it writes: Note, unless the initialize option is false, this method is implicitly called by the constructor.
@lesterchan Thank you, your solution work with up to 4 items in an array, but i get just one suggestion displayed and is an array of 5 items or more given, typeahead don't work anymore. Can you help me just one more time? :)
.
Hello,
I tried to realize an autocomplete feature for the search of address via the API of http://photon.komoot.de. Here is my code snippet, but I get this simply not to run and did not see my mistake. I would be grateful, if you can help me with my problem.