예제 #1
0
        public static double GetDistance(LatLng startLocation, PartyAllNight.Location endLocation)
        {
            float[] results = new float[1];
            Android.Locations.Location.DistanceBetween(endLocation.lat, endLocation.lng, startLocation.Latitude, startLocation.Longitude, results);

            return(results.FirstOrDefault());
        }
예제 #2
0
 public static string CorrectLocationFormat(PartyAllNight.Location location)
 {
     return(location.lat.ToString().Replace(',', '.') + "," + location.lng.ToString().Replace(',', '.'));
 }