I have a search box in my UI and a div for displaying maps.if i enter any term in the search box, say for example (chennai rain) does cartodb has any api or sample codes to generate a heatmap for that particular search term in the map div. Could any of you explain briefly how this functionality could be done using cartodb api?I have seen the possibility of generating geotagged maps using cartodb.
CartoDB does allow to import data from Twitter from the CartoDB Editor, but it doesn't offer any API to do it externally from your end, so you cannot trigger the creation of Twitter data through CartoDB by using your own app.
You could perform that kind of filtering if you had already get from Twitter data the terms that you are going to filter by: you would just need to apply an SQL query to your layer and set there the table in which the data lives and how you want to get it.
Another approach, although probably is not useful at all for an application like the one you are showing, is to connect by yourself to the Twitter API, retrieve the information in a format compatible with CartoDB, import it to CartoDB (check the Import API here) and then load a layer in your map with this new information. Assuming that this process would take several minutes, don't take this information as a recommendation for your question, but as "something feasible". If, for example, you are building a tool to generate some reports and this is not time sensitive this approach would make sense.