Skip to content

Instantly share code, notes, and snippets.

@rishiloyola
Last active January 4, 2016 16:49
Show Gist options
  • Save rishiloyola/bb3707437a02def3add4 to your computer and use it in GitHub Desktop.
Save rishiloyola/bb3707437a02def3add4 to your computer and use it in GitHub Desktop.
data-controller.js
Creates a prototype which is responsible for four different queries. This file contains four functions which help to stream the data from appbase.
1.getSuggestions()
This function matches the input strings with the stored data and provides the suggestions related to specific queries.
2.getSearchCheckin()
Provides existing checkins according to the searched city.
3.getliveData()
Streams the live checkins. Which renders on a map with the blue marker.
4.getDragData()
This function streams the old data around the radius of 2000km from the center of map
helperFactory.js
controles the map settings - zoomlevel, marker's positioning.
index.js
This is the entry point of the codebase and contains the key logic of application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment