Using Twitter typeahead.js with ArcGIS Online feature services

Using the Paris Velib (bike sharing) & Autolib (electric car sharing) station datasets

This sample demonstrate how to use typeahead.js from twitter as an autocomplete search tool to filter and retrieve very efficiently feature information from ArcGIS Online feature services

We are querying here 2 feature services from ArcGIS Online and merging results in the proposed dropdown menu

Once selected or autocompleted, this sample script displays the user choice's origin dataset and objectid. The objectid is the key to further make use of the choice (zoom on the feature, ...)

this sample is built on the original twitter typeahead.js examples

Back to the repo