How to retrieve user city/country and location in formation


#1

Hi kindly educate me. how to retrieve user location like city, country name and etc using Ionic native geocoder.

this.nativeGeocoder.reverseGeocode(this.lat, this.long)
.then((result: NativeGeocoderReverseResult) => alert(JSON.stringify(result)))
.catch((error: any) => console.log(error));

if you have any code snippets that will help a lot.
thanks to all have a blessed day.