locationService

Service that provides wrappers for geolocation API
Source:
Parameters:
Name Type Description
$ jQuery Instance of jQuery
Returns:
List of location service methods
Type
Object

Members

(static) api :Object.<Methods>

Source:
This object stores all public api methods.
Type:
  • Object.<Methods>

Methods

(static) detectLocation(success, error)

Source:
detectLocation method call "getCurrentLocation" method to get user location.
Parameters:
Name Type Description
success function function callback that calls in case of positive answer from geolocation API
error function function callback that calls in case of error answer from geolocation API