Skip to main content
GET
Download Grid File For Single Data Scenario

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer <key>. Create one in the SWITCH Copilot under Settings → API keys (needs the API keys permission in your company), or with POST /auth/api-keys. The key is shown once, at creation.

Query Parameters

grid_type
enum<string>
required

Type of spatial grid, e.g. squares for a regular grid of square tiles. Only the grid types (and tile sizes) enabled for your company are accepted; a 400 response lists them.

Available options:
squares,
categorical,
hdbscan,
agent-3,
agent-2,
agent-1,
agent-4,
agent-5,
agent-6,
agent-7,
agent-8,
agent-9,
custom-polygons
tile_size
integer | null

Side of each square tile in meters, e.g. 1000 for the squares grid. Leave empty for grid types without a tile size.

location
string
required

Location (city) of the grid, e.g. milan. Only the locations enabled for your company are accepted; a 400 response lists them.

Response

Grid GeoJSON file downloaded successfully. Returns a GeoJSON FeatureCollection containing polygon features with zone_id properties representing the company's grid configuration.