Module API.stats
Variables
POLYGON_STATISTICS_API_RATE_LIMIT
router
Functions
get_polygon_stats
def get_polygon_stats(
request: starlette.requests.Request,
params: src.validation.models.StatsRequestParams = Body(PydanticUndefined),
user: API.auth.AuthUser = Depends(get_optional_user)
)
Args: request (Request): An HTTP request object. params (StatsRequestParams): Parameters for the statistics request, including the polygon geometry.
Returns: dict: A dictionary containing statistics for the specified polygon.