Class: LocationProvider

LocationProvider()

new LocationProvider()

API for retrieving location from user device

Source:

Methods

getCurrentPosition() → {jQuery.Deferred}

Obtain users current location and return a deferred object with the longitude and latitude values Resolve return object with 'incompatible' if browser doesn't support geo location

Source:
Returns:
Type
jQuery.Deferred

isAvailable() → {boolean}

Detect if browser supports geolocation

Source:
Returns:
Type
boolean