UI: current location using geolocation


#1

Hi,
I am using NS geolocation plugin to get the current location.
Here is the code

var location = geolocation.getCurrentLocation({desiredAccuracy: 3, updateDistance: 10, maximumAge: 20000, timeout: 20000}).
then(function(loc) {
if (loc) {
console.log("Current location is: " + JSON.stringify(loc));
}
}, function(e){
console.log("Error: " + e.message);
});

the code is giving the values of latitude, longitude, altitude, horizontalAccuracy, verticalAccuracy, direction, timestamp, android …

My question is to which function I have to feed those values to get the current location(string) ??


#2

You may want to look at a service like this: https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse