Provides methods for querying geolocation (in case available) on the target platform.
- isEnabled() Boolean
Checks whether the location services are switched ON for this device (on Android) or application (iOS).- return - Boolean
- distance( loc1 Location, loc2 Location ) Number
Measures the distance in meters between two locations.
- desiredAccuracy - Number.
The desired accuracy in meters. Defaults to DesiredAccuracy.HIGH - updateDistance - Number.
The update distance filter in meters. Specifies how often to update. Default on iOS is no filter, on Android it is 0 meters. - minimumUpdateTime - Number.
The minimum time interval between subsequent location updates, in milliseconds (ignored on iOS). - isStarted - Boolean.
True if the location listener is already started. In this case all other start requests will be ignored. - lastKnownLocation - Location.
Returns last known location from device's location services or null of no known last location.
- startLocationMonitoring( onLocation Function..., onError? Function..., options? Options )
Starts location monitoring. - stopLocationMonitoring()
Stops location monitoring.