watchCurrentUserLocation()
Controller for geolocation. Monitors user's location. Uses browser built-in method 'navigator.geolocation.watchPosition' that triggers every time there is a change in user's location (triggered when $rootScope broadcasts that user is currently logged in).
Members
(static) options
Parameters for navigator.geolocation.watchPosition() that enable high accuracy mode (uses GPS, cellular tower signals, and WiFi, depending on avialability of each). It also accepts location information regardles of its age (Inifnity)
Methods
(static) success()
Triggers when change in user location is detected. Sends the user's location to the database (based on the user's unique ID)