From 8526e1fe5c67b53a5d3d1466413dcc9048f03b08 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Thu, 19 May 2016 09:57:43 +0300 Subject: [PATCH] Update Readme.md --- location/Readme.md | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/location/Readme.md b/location/Readme.md index acb1b01f5..860171f68 100644 --- a/location/Readme.md +++ b/location/Readme.md @@ -1,23 +1 @@ -Initializing location: - -``` -var LocationManager = require("location").LocationManager; - -console.log('is location enabled: ' + LocationManager.isLocationEnabled()); - -this.locationManager = new LocationManager(); - -console.dump(this.locationManager.getLastKnownLocation()); - -this.locationManager.startLocationMonitoring(function(location) { - console.dump(location); -}, function(error) { - console.error(error); -}); -``` - -Stopping location: - -``` -this.locationManager.stopLocationMonitoring(); -``` \ No newline at end of file +Allows you to use the geolocation of the device.