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()); }
public static string CorrectLocationFormat(PartyAllNight.Location location) { return(location.lat.ToString().Replace(',', '.') + "," + location.lng.ToString().Replace(',', '.')); }