Hex viewport query (V0)
POST
https://api.global.church
/v0/hex-viewport
Proxies hex grid viewport queries to the Supabase Edge Function hex-viewport. Returns H3 hex cells with population and classification data for the given bounding box.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
westnumber · requiredWestern longitude bound
southnumber · requiredSouthern latitude bound
eastnumber · requiredEastern longitude bound
northnumber · requiredNorthern latitude bound
zoominteger · requiredMap zoom level
rog_codestringROG country code filter
Responses
Hex cells in viewport
hexesobject[]
