I am integrating GPS Services into my application. I have added and injected the Cordova GPS plugin. I am able to retrieve the longitude and the latitude as shown on the ngCordova documentation on gps. This is my approach:
.controller('geoLocationCtrl', function($scope,$window) {
$window.navigator.geolocation.getCurrentPosition(function(position){
$scope.$apply(function(){
$scope.lat = position.coords.latitude;
$scope.lng = position.coords.longitude;
})
console.log(position);
})
})
My challenge is how can I use the above to return the current address, state and country of the user.