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)); }
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()); }