Global.Church Developer Portal
Global.Church API

Hex Grid

Endpoint:https://api.global.church

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.

Hex viewport query (V0)Headers

  • Authorizationstring · required

    The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Hex viewport query (V0)Request Body

  • westnumber · required

    Western longitude bound

  • southnumber · required

    Southern latitude bound

  • eastnumber · required

    Eastern longitude bound

  • northnumber · required

    Northern latitude bound

  • zoominteger · required

    Map zoom level

  • rog_codestring

    ROG country code filter

Hex viewport query (V0)Responses

Hex cells in viewport

  • hexesobject[]

CORS preflight for hex viewport (V0)

OPTIONS
https://api.global.church
/v0/hex-viewport

CORS preflight for hex viewport (V0)Responses

No content

No data returned