예제 #1
0
        public void GetHighways_ShouldReturnResults()
        {
            _gateway.Initialize();
            var northEast = new Coordinate(35.0516, 31.7553);
            var southWest = new Coordinate(35.0251, 31.7467);
            var results   = _gateway.GetHighways(northEast, southWest).Result;

            Assert.IsNotNull(results[0].Attributes[FeatureAttributes.POI_OSM_NODES] as IEnumerable <object>);
            Assert.AreEqual(38, results.Count);
        }
예제 #2
0
        public void GetHighways_ShouldReturnResults()
        {
            var gateway = new ElasticSearchGateway(new TraceLogger());

            gateway.Initialize();
            var northEast = new Coordinate(35.0516, 31.7553);
            var southWest = new Coordinate(35.0251, 31.7467);
            var results   = gateway.GetHighways(northEast, southWest).Result;

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