Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Get User Location

$
0
0

Hi, I have an object with a field distance like this:

public double distance {
            get {
                var pos1= //USER LOCATION
                var pos2=new Xamarin.Forms.Labs.Services.Geolocation.Position()
                {
                    Latitude = x, //attribute of the object
                    Longitude = y
                };
                return PositionExtensions.DistanceFrom (pos1,pos2);
            }
        }

How can I retrieve the user location?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>