Mobile devices are smart enough to provide the geo-location coordinates by consuming the GPS API embedded inside.
Let’s get the geo-coordinates and a street address which is close to the location using Xamarin. In the below example I have demonstrated the same in Android environment.
Following are few steps
After creating a new Xamarin Android app add some common permission in AssemblyInfo.cs
[assembly: UsesPermission(Manifest.Permission.Internet)] [assembly: UsesPermission(Manifest.Permission.AccessFineLocation)] [assembly: UsesPermission(Manifest.Permission.AccessCoarseLocation)]
Step #2 Continue reading