---
title: "v4 /surveyresources"
method: GET
path: "/surveyresources/{surveyResourceId}/rollups.geojson"
tags: ["rollups"]
---

# v4 /surveyresources

`GET /surveyresources/{surveyResourceId}/rollups.geojson`

Returns aggregated (rolled up) values computed from all AI features within the given survey resource and polygon.

## Path parameters

- `surveyResourceId` string, required

## Query parameters

- `polygon` string
- `bulk` boolean
- `packs` string
- `classes` string
- `streetAddress` string
- `city` string
- `state` string
- `zip` string
- `country` 'US' | 'AU'
- `alpha` boolean
- `beta` boolean

## Headers

- `X-Nearmap-Ext-Reference` string

## Response `200`

OK response to the rollups.geojson endpoint.

- RollupsGeoJSONResult
  - `type` 'FeatureCollection', required — This is always "FeatureCollection".
  - `features` GeoJSONFeature[], required — This array contains a single "feature" representing the requested location.
    - `type` 'Feature', required — This is always "Feature".
    - `geometry` object, required
      - `type` 'Polygon' — The GeoJSON geometry type of the requested location.
      - `coordinates` GeoJSONPolygonRing[] — The collection of rings defining the Polygon. This should always only consist of a single ring (more specifically, rectangle) describing the extent of the requested location.
        - GeoJSONCoordinate[] — A collection of coordinate pairs that define the Polygon ring.
          - number[] — An ordered pair of floating point numbers in the following sequence: longitude, latitude.
    - `properties` union, required — A dictionary of rollups keyed by the rollup identifier concatenated with the rollup field type (one of: "value" or "description"), and delimited by underscore. Each identifier will always have both a "description" and "value" field.
      - boolean
      - number
      - string

## Other responses

- `400` — Bad Request. There was a problem with the request parameters.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found. No data is available matching the request criteria.

---

[API](https://skmtc.net/nearmap/apis/tiles.md) · [All operations](https://skmtc.net/nearmap/apis/tiles/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nearmap/tiles/versions/1f55d21ac4b9/schema)
