/// <summary> /// Load all the placemark objects that are within the specified radius. /// </summary> /// <param name="google">The Google helper class that does the database leg-work.</param> /// <returns>A collection of Placemark objects inside the radius.</returns> public override List <Placemark> LoadPlacemarks(Google google) { List <Placemark> items = new List <Placemark>(); if (PopulateWith == PopulationType.Individuals) { foreach (Placemark p in google.PersonPlacemarksInRadius(Latitude, Longitude, Distance, 0, Int32.MaxValue)) { items.Add(p); } } else if (PopulateWith == PopulationType.Families) { foreach (Placemark p in google.FamilyPlacemarksInRadius(Latitude, Longitude, Distance, 0, Int32.MaxValue)) { items.Add(p); } } else if (PopulateWith == PopulationType.SmallGroups) { foreach (Placemark p in google.SmallGroupPlacemarksInRadius(Latitude, Longitude, Distance, 0, Int32.MaxValue)) { items.Add(p); } } return(items); }
public List <FamilyPlacemark> LoadFamiliesInRadius(Double latitude, Double longitude, Double distance, String start, String count) { Google google; google = new Google(ArenaContext.Current.User, HttpContext.Current.Request.ApplicationPath); return(google.FamilyPlacemarksInRadius(latitude, longitude, distance, (String.IsNullOrEmpty(start) ? 0 : Convert.ToInt32(start)), (String.IsNullOrEmpty(count) ? Int32.MaxValue : Convert.ToInt32(count)))); }