예제 #1
0
        public void SearchWithinPlace_ShouldReturnResults()
        {
            _gateway.Initialize();
            var placesFeatures = _gateway.SearchPlaces("תמרת", Languages.HEBREW).Result;

            Assert.AreEqual(5, placesFeatures.Count);
            var envolope = placesFeatures.First().Geometry.EnvelopeInternal;
            var results  = _gateway.SearchByLocation(
                new Coordinate(envolope.MaxX, envolope.MaxY), new Coordinate(envolope.MinX, envolope.MinY), "מורן", Languages.HEBREW).Result;

            Assert.AreEqual(1, results.Count);
        }