示例#1
0
        public IEnumerable <BoundingBox> GetCircleSearchBboxes([FromBody] CircleSearchRequestModelClass data)
        {
            double lat   = data.Lat;
            double lon   = data.Lon;
            double range = data.Range;
            int    level = data.Level;

            return(geohash.DataBase.BcircleBoxes(lat, lon, range, level));
        }
示例#2
0
        public IEnumerable <Coordinates> GetCircleSearchCoordinates([FromBody] CircleSearchRequestModelClass data)
        {
            double lat   = data.Lat;
            double lon   = data.Lon;
            double range = data.Range;
            int    level = data.Level;
            int    limit = data.Limit;

            var db = _dbInterface.GetDatabase();

            return(db.BcircleCoordinates(lat, lon, range, level, limit).ToArray());
        }