예제 #1
0
        public string GetNatureAreasBySearchFilter([FromBody] SearchFilterRequest searchFilterRequest)
        {
            var natureAreas = SqlServer.GetNatureAreasBySearchFilter(searchFilterRequest);
            var r           = GeoJsonConverter.NatureAreasToGeoJson(natureAreas, !searchFilterRequest.CenterPoints);

            return(r);
        }
예제 #2
0
        public string GetNatureAreasBySearchFilterV2([FromBody] SearchFilterRequest searchFilterRequest)
        {
            var search = new SearchV2(Config.Settings.ConnectionString);

            var list = search.GetNatureAreasBySearchFilter(searchFilterRequest);

            var geoJson = GeoJsonConverter.NatureAreasToGeoJson(list, !searchFilterRequest.CenterPoints);

            return(geoJson);
        }