Map search Search by drawing a polygon on a map
Find hotels within a given area by clicking in the map to add points that form an area. Adjust the area by dragging the points.
var results = client.Search<Hotel>() .Filter(x => x.GeoCoordinates.Within(points)) .Select(x => new SearchHit { Title = x.Name, Url = x.Website, Location = new List{ x.ShortAddress, x.Location.Title, x.Location.Country.Title }.Concatenate(", "), StarRating = (int) x.StarRating }) .GetResult();