# The geospatial headless CMS primer

By [Mike Acler](https://www.linkedin.com/in/acler), 26 November 2026

Places, routes and areas are content. This guide explains how to manage them in a headless CMS, why that’s different from managing blog posts, and what changes when AI agents work on the same content.

![An editor moves a campsite pin on the map and publishes; the API’s JSON for that entry updates to the new coordinates.](https://spatibase.com/guides/geospatial-headless-cms/edit-publish-light.webp)

## Key takeaways

- A **geospatial headless CMS** stores places as real geometry (points, lines and areas), not just a latitude/longitude pair. It serves them to any app as JSON, GeoJSON and vector tiles.
- **The content model is the heart of it.** You define kinds of places and their fields once. The editor, the API, the tiles and the AI agents all follow from that model.
- **Editors work on a map. Developers read an API.** Neither waits on the other.
- It beats a normal CMS when your content has a location or a shape that you need to *query*: nearest, inside, along, within.
- **AI agents do their best work on typed, structured content with guardrails.** We give them both: drafts, dry runs, a review list and a log of everything they touch.
- You can [try it free](https://app.spatibase.com/signup), or let your coding agent move your existing location data in without an account.

---

## Part 1: The fundamentals

### What is a geospatial headless CMS?

A headless CMS splits *where content is managed* from *where it's shown*. Editors use one tool. Your website, app or map reads the result through an API.

A geospatial one adds the thing maps need: content that lives somewhere.

- A campsite is a **point**.
- A trail is a **line**.
- A delivery zone is an **area**.

![Three entries: a campsite as a point, a trail as a line and a delivery zone as an area, each with its own fields.](https://spatibase.com/guides/geospatial-headless-cms/shape-and-fields-light.webp)

Each also has the usual fields: opening hours, difficulty, photos, a description. The CMS holds both the shape and the fields, in one entry.

| Who edits | Spatibase | What apps read | Where it shows |
| --- | --- | --- | --- |
| Editors on a map | Model | JSON | Websites and maps |
| Field crews on a phone | Drafts and review | GeoJSON | Mobile apps |
| AI assistants (as drafts) | Publish | Vector tiles | Coding agents |

Here's what asking for content looks like. This is the Content Delivery API, and it's [documented here](/docs/reference/delivery-api.md):

```bash
export API=https://api.spatibase.com/delivery/v1/projects/$PROJECT_ID

# Campsites within 50 km of a point, nearest first
curl -sg "$API/entries?type=campsite&near=-124.0,41.2&radius=50000&sort=distance&limit=2"
```

And one entry comes back like this (trimmed):

```json
{
  "id": "9d57e2e5-36ed-404a-99f0-c30d04be9fff",
  "type": "campsite",
  "title": "Gold Bluffs Beach Campground",
  "geometry": { "type": "Point", "coordinates": [-124.0656, 41.3818] },
  "fields": { "rating": 4.6, "open": true, "sites": 26, "photos": [ "…" ] }
}
```

That's the whole round trip: a URL in, real geometry and your own field names out.

### What is a content model, and why does it matter?

The **content model** is the blueprint for your places. It says what kinds of places exist, what fields each one has, and how they relate. Everything else is built from it: the forms editors see, the filters the API accepts, the typed OpenAPI file a coding agent reads, the tools an AI assistant uses.

Ours has three parts. [Model data →](/platform/model/)

- **Types** are the kinds of places you map, arranged in a tree.
- **Elements** are a shared library of typed, validated fields that Types are built from. Define "opening hours" once. Use it everywhere.
- **Inheritance** means a child Type gets its parent's fields. A *National Park* inherits from *Park* and adds its own.

A sketch of what that can look like:

```text
Park                      name, description, photos, opening hours, rating
└─ National Park          + entry fee, ranger contact
Campsite                  name, sites, dogs allowed, photos
Trail                     name, difficulty, length, trailhead (reference)
Service area              name, boundary (area)
```

![An element, Opening hours, is added to the Park type once; National Park inherits it and its entries get the field.](https://spatibase.com/guides/geospatial-headless-cms/inheritance-light.webp)

Three things make a *spatial* model different from a normal one:

1. **Geometry is part of the model.** An entry is a point, a line or an area. A trail is a line, a delivery zone is an area, and you can ask questions of both.
2. **Places relate to places.** Reference fields link entries (a trail to its trailhead). Ask for `include=references` and the API expands them in one request. An area can also sit in a `geo` field on an entry, such as a store's service area, and be queried with `containsField` and `withinField`.
3. **Subtypes work in queries.** `type=park` returns parks and every park subtype, such as national parks. Add `subtypes=false` for the exact type only.

Why it matters:

- **For editors:** the model becomes plain-language forms. Required fields are flagged before publishing.
- **For developers:** the model becomes the API. `GET /types` lists every type and its fields. The OpenAPI file is typed to *your* fields, not a generic schema.
- **For AI agents:** the model is how an agent knows what a "campsite" is. `describe_project` returns it. The agent imports and drafts against real, validated fields instead of guessing. An assistant can even extend the model (`create_element`, `assign_elements`), but only when an owner allows it, and the change is previewed first.
- **For change:** archiving a field keeps its existing values, so the model can evolve without losing data.

A model that fits the content saves more rework than anything else. See [getting started well](#part-6-getting-started-well) for tips.

### How is it different from a GIS?

A GIS is for *analysis*: overlays, models, cartography. A geospatial CMS is for *content*: the places your product shows, kept current by the people who know them. The two work together. Your basemap and styling come from MapLibre, Mapbox GL or Leaflet, and QGIS and ArcGIS can read the same published data. We hold the content they draw.

### Why should you care?

Because location content tends to live in awkward places:

- Pins hard-coded in a front end.
- GeoJSON files in a repo.
- A spreadsheet nobody owns.
- A client who emails "can you move the car park pin?" and a developer who opens a pull request.

A geospatial headless CMS gives that content one home, with a map editor for the people who maintain it and an API for the people who build on it.

There's also a newer reason: **AI agents**. They can import a spreadsheet, place entries from street addresses and draft missing descriptions. They can also build a whole store locator from your API. They need typed fields, safe boundaries and a way for a person to check their work. More on that in [Part 4](#part-4-ai-agents-are-first-class-users).

### What are the benefits?

**For agencies, GIS studios and freelancers**

- Build the map feature once. Hand over the editing. Stop changing pins by hand.
- See the [agency page](/agencies/) for how it fits client work.

**For the client's editors**

- Plain-language forms and a [map editor](/platform/content/). Place points, draw lines and areas, or upload GPX, KML and GeoJSON.
- Changes stay as drafts until someone publishes, and a bad publish can be rolled back to an earlier version.
- Field crews can add entries from a phone with [Collect](/platform/collect/): GPS, photos, and points, lines and areas.

**For developers**

- A read-only [Delivery API](/docs/reference/delivery-api.md) with filters, spatial queries, GeoJSON and [vector tiles](/docs/reference/geojson-and-tiles/).
- A typed OpenAPI 3.1 file per project (`/delivery/v1/projects/<id>/openapi.json`), so your types match your real fields. The [generic spec](https://api.spatibase.com/delivery/v1/openapi.json) covers every project.
- ETag and `304` responses, CDN-friendly caching and open CORS. Drafts never reach the Delivery API.
- [Recipes](/docs/build/recipes/) for store locators, delivery-zone checks, per-type colours, multilingual content and more.

**For AI agents (and the people working with them)**

- Typed content to read, and clear access levels: ask, draft, publish, clean up.
- Dry runs, a review list for AI-changed entries and an activity log. [Details in Part 4](#part-4-ai-agents-are-first-class-users).

**For end users**

- Fast maps that load only the tiles in view, and content that's current because editors can change it themselves.

### What are the challenges?

These are the common objections, with what we do about each.

**"There's no front end."** Correct. That's what headless means. You get the API, a typed OpenAPI file, a [recipes page](/docs/build/recipes/) and ready MapLibre snippets. A coding agent can build the front end from them.

**"Geometry is heavier than text."** It is. So tiles are built on request and load only what's visible. GeoJSON comes up to 5,000 entries per request. There's also a compact `entries.index` (id, type, title, bounding box) for fast lists.

**"My editors aren't GIS people."** They don't need to be. They fill in forms and click on a map. Import is a wizard that suggests a type and fields and lets you map columns.

**"Bad data in, bad map out."** Imports and AI changes arrive as **drafts**. Bulk actions show a preview first. You publish when it looks right.

### How does it work?

1. **Model.** Define *Types* (kinds of places) built from shared *Elements* (fields). Child types inherit from parents, so a National Park type can inherit from Park. [Model data →](/platform/model/)
2. **Add content.** Import CSV, Excel, GeoJSON, KML, GPX, Shapefile or GeoParquet. Read in a Google Sheet, a Google My Maps map or a PostGIS table. Or draw entries straight on the map. [Create and manage content →](/platform/content/)
3. **Review.** Everything lands as a draft. Roles (owner, editor, developer) decide who can do what. The activity log records who changed what and when, including agents.
4. **Publish.** One click. Published content goes to the Delivery API and the vector tiles. Webhooks tell your systems when entries are published, unpublished or deleted, or groups change. [Publish →](/platform/publish/)
5. **Deliver.** Your site, app, map or agent reads it. Public projects need no key. Private projects use read-only keys you can rotate or revoke.

### How does it help a team work together?

Here's a story. The people are made up. The workflow isn't.

**Nina** is a developer at a studio building a trail explorer for a tourism board. **Eva** at the board keeps the trails up to date.

- Nina models a `Trail` type with a line, a difficulty, a length and photos. She imports the board's existing GPX files.
- Her coding agent reads the project's typed OpenAPI file and builds the explorer against the real field names.
- Eva opens the map editor, fixes a trail, and publishes. The explorer updates. Nina isn't involved.
- Later Eva connects an assistant and asks it to find trails with no description and draft them. The drafts come back marked **Changed by AI**. She edits two, leaves one as a draft and publishes the rest.

### FAQ

**What does "headless" mean here?**
The CMS has no website of its own. It manages content and serves it through an API. You decide how it looks.

**Is a geospatial CMS just a database with a map?**
No. A database stores rows. A CMS adds the model, the editing experience, drafts, roles, review, publishing and a delivery layer built for apps.

**Do my editors need to know GIS?**
No. Forms, a map and a publish button.

**Which file formats can I import?**
CSV, Excel, GeoJSON, KML, GPX, Shapefile and GeoParquet. You can also read in Google Sheets, Google My Maps and PostGIS tables. Imports take up to 10,000 rows and arrive as drafts. You can re-import to update existing entries.

**Which map libraries work with it?**
MapLibre, Mapbox GL, Leaflet, QGIS and ArcGIS. The GeoJSON and TileJSON outputs are standard.

**Can I collect data in the field?**
Yes. [Collect](/platform/collect/) runs in the phone or tablet browser. There's no app store. It records GPS, takes photos, and draws lines and areas by tapping or walking a boundary. If the connection drops, it keeps your changes and saves them when you're back online.

**Can the API change content?**
No. The Delivery API is read-only. Changes go through the app, an assistant with the right key, or scripts that use the Management API.

**Is my content public?**
Your choice. Public projects need no key. Private projects need a read-only API key.

**What about other languages?**
Projects can have languages. Ask for a translation with the `locale` parameter. See the [translations docs](/docs/content/translations/).

**Can an AI agent publish by accident?**
Not by default. Publishing and deleting are off unless you switch them on for that key or sign-in. When you set up a new project with a coding agent, its **Let the agent publish** switch starts on. See [Part 4](#part-4-ai-agents-are-first-class-users).

---

## Part 2: Why a spatial headless CMS and not a normal one?

You *can* put latitude and longitude in two number fields in any CMS. For a contact page with one office, that's fine. It stops being fine when location is the point of your content.

![On the left a form with two number fields for latitude and longitude; on the right a trail drawn as a line on a map.](https://spatibase.com/guides/geospatial-headless-cms/fields-vs-geometry-light.webp)

| | A typical headless CMS | A geospatial headless CMS |
| --- | --- | --- |
| **Location** | Two number fields, or a single point | Points, lines and areas as real geometry |
| **Editing** | A text form. Paste coordinates and hope. | Click a point, draw a trail, or upload GPX, KML or GeoJSON |
| **Import** | CSV, at best | CSV, Excel, GeoJSON, KML/KMZ, GPX, Shapefile, GeoParquet, Google My Maps, PostGIS |
| **Questions you can ask** | Filter by text and numbers | Also: nearest to a point, inside a bounding box, which area contains this point, entries inside a polygon |
| **Output** | JSON | JSON, GeoJSON and vector tiles with TileJSON |
| **Maps at scale** | You build the tile layer | One TileJSON URL. Tiles reflect the latest published content. |
| **Field data** | A separate app and a manual copy | Collect adds entries straight into the project |
| **AI agents** | Generic content tools | Geo tools: import features, place entries from addresses, search by location |

### What the spatial questions look like

Each of these is one request. They combine with ordinary field filters.

![Three spatial queries on one map: the two campsites nearest a point within 50 km, the delivery zone that contains a point, and the entries inside a drawn polygon.](https://spatibase.com/guides/geospatial-headless-cms/spatial-queries-light.webp)

```bash
# Which delivery zone contains this point?
curl -sg "$API/entries?contains=-123.9,41.5&type=delivery-zone"

# Parks rated 4.8 or higher
curl -sg "$API/entries?type=park&filter[rating][gte]=4.8"

# Everything inside a polygon you pass in as GeoJSON
curl -sg "$API/entries?within=<URL-encoded GeoJSON polygon>"

# A GeoJSON FeatureCollection for your map
curl -sg "$API/entries.geojson?type=store-location&limit=100"
```

The full parameter list (`bbox`, `near`, `radius`, `nearest`, `contains`, `withinEntry`, `within`, `sort`, `include`) is in the [Delivery API reference](/docs/reference/delivery-api.md).

### And on the map

A MapLibre layer straight from the API. This comes from the [recipes](/docs/build/recipes/):

```js
map.addSource('all', { type: 'vector', url: `${API}/tiles.json` })
map.addLayer({
  id: 'national-parks', type: 'circle', source: 'all', 'source-layer': 'entries',
  filter: ['==', ['get', 'type'], 'national-park'],
  paint: { 'circle-radius': 6, 'circle-color': ['get', 'color'] }
})
```

### When a normal CMS is enough

- You have a handful of fixed locations, such as an office page.
- Nobody needs to search by distance or area.
- You never draw a line or an area.
- The map is a static image or an embed.

If that's you, keep it simple. If your product *is* a map, a locator, a route or a territory, read on.

---

## Part 3: How it compares

We sit between tools that draw maps and tools that manage content. Here's the lay of the land. This is based on vendor pages we checked in October 2026, so confirm current details before you decide.

| If you're looking at | They're strong at | What's different |
| --- | --- | --- |
| **Map platforms** such as Mapbox, MapTiler and Felt | Rendering, styling, hosting data, analysis | Built for making and sharing maps. They're not a content model with types, drafts and review for the editors who maintain the data. |
| **General headless CMSs** such as Strapi, Sanity, Contentful, Directus and Payload | Editorial workflows, large ecosystems, and (in several cases) agent tools | Location is usually a single point or a plugin. Directus is the exception, with real geometry fields. Check how each handles lines, areas, tiles and a map editor. |
| **Your own PostGIS stack** (for example Supabase) | Full control | You build the editor, auth, review flow, delivery API and tiles yourself. |
| **Store-locator tools** such as StoreRocket and Storepoint | Quick no-code embeds, per-location plans | A fit if you want a ready widget. Spatibase fits if you want a custom front end and your own data model. |
| **Field-GIS tools** such as Mergin Maps, QField and ArcGIS Field Maps | GIS-grade field work | Spatibase's Collect feeds a content workflow. It isn't a field GIS replacement. |

A common pairing is a map platform for the basemap and a geospatial CMS for the content on top.

---

## Part 4: AI agents are first-class users

We treat AI agents as users in their own right, for two reasons.

1. **Agents need structure.** A typed model, a typed OpenAPI file and plain-Markdown docs mean an agent reads your real fields instead of guessing.
2. **People need control.** An agent that can change your map needs boundaries. We build them in: dry runs, drafts, a review list and a log.

There are two ways to use it.

### 1. Assistants that work on your content (MCP)

Claude, ChatGPT, Cursor and other assistants connect over MCP. Each project has its own assistant address. Copy it from the **AI agents** page in the app. Things you can ask for:

- Import a spreadsheet and place entries from their street addresses.
- Draft missing descriptions, marked for review.
- Find campsites that allow dogs near a location.
- Bulk-update entries, mark them ready and publish a new version.
- Find duplicates and move them to the trash.
- Add a field to the content model (only when an owner allows it, previewed first).

The tools include `describe_project`, `import_features`, `search_entries`, `get_draft`, `bulk_update_entries`, `mark_ready`, `publish_project`, `delete_entries`, `create_element` and `assign_elements`.

#### Four access levels

What an assistant can do depends on the key or sign-in you give it.

| Level | What it can do | Default |
| --- | --- | --- |
| **Ask** (Read) | Search and read published entries. Nothing changes. | On |
| **Draft** (Edit drafts) | Create and edit entries. Results are marked "Changed by AI". | Edit keys and sign-ins |
| **Publish** | Mark drafts ready, publish and roll back versions. | **Off** |
| **Clean up** (Delete) | Delete duplicates and outdated entries. They go to the trash for 30 days. | **Off** |

#### Try it: connect Claude Code

```bash
claude mcp add --transport http spatibase https://mcp.spatibase.com/projects/$PROJECT_ID
```

Then run `/mcp`, choose **spatibase** and sign in. Using Claude.ai, Claude Desktop, ChatGPT or Cursor? Follow the [connect-an-assistant guide](/docs/ai/connect-an-assistant/).

### 2. Coding agents that build on your content

Claude Code, Codex and others can build a website, a map or a phone app that reads your published content. There's no server or database to set up.

1. In the app, open **AI agents**, choose to build your own app, and copy the project prompt.
2. Paste it into your coding agent and describe the app you want.
3. The agent reads your project's typed OpenAPI file and uses your real field names.
4. Compare the result with the live data. Changes usually show up within a few minutes.

An agent can read your project's typed OpenAPI file, the [Delivery API reference](/docs/reference/delivery-api.md), [llms.txt](/llms.txt) and the Markdown docs.

**Example apps to try**, each with a public demo project and prompt on the [AI page](/ai/#build-ideas):

- A store locator with search and "near me".
- A trail explorer with filters and GPX download.
- A phone app (React Native with Expo) with offline caching.
- A static guide website built from curated groups.
- An analytics dashboard with charts, a heatmap and area selection.

#### Already have location data in a repo?

The [agent quickstart](/agents/quickstart.md) walks a coding agent through it. It:

1. Scans your repo for coordinates and street addresses.
2. Reports what it found and asks for **one OK** before changing anything.
3. Creates a temporary project (no account needed), runs a dry-run import, then imports and publishes.
4. Rewires your app to read from the Delivery API, and keeps your old data file.
5. Gives you a preview link. If you like it, press **Keep this project**.

### For the people working with agents

These are the safeguards that keep a person in charge:

![An assistant drafts four trail descriptions; they appear as drafts marked Changed by AI. An editor fixes one, marks three ready and publishes them; the fourth stays a draft.](https://spatibase.com/guides/geospatial-headless-cms/ai-review-light.webp)

- **Dry runs.** Bulk changes, imports, publishing and deletions show a preview before anything is written.
- **A review list.** AI-changed entries stay marked until a person edits them or they're published.
- **An activity log.** Every action is recorded with a robot icon and the name of the key or user.
- **Versions.** Publish a new version. Go back to an earlier one.
- **Trash.** Deleted items can be restored for 30 days.
- **Rate limits per connection.** 120 calls a minute, 30 writes a minute and 20,000 changed entries a day.
- **Hard boundaries.** Assistants can't manage keys or members, change public or private status, delete projects or empty the trash.

Read more on the [AI and integrations page](/ai/).

---

## Part 5: How to choose a geospatial headless CMS

Ask these before you commit. Here's how we answer them.

| Ask | In Spatibase |
| --- | --- |
| Does it store real geometry, not just coordinates? | Points, lines and areas, in the [map editor](/platform/content/) and in [Collect](/platform/collect/) |
| Can editors work without a developer? | Forms and a map editor. Drafts, then publish. |
| Can I model my domain? | [Types, elements and inheritance](/platform/model/) |
| Can I import what I already have? | Seven file formats, Google Sheets, Google My Maps and PostGIS. Re-import to update. |
| Can I ask spatial questions? | Bounding box, nearest, radius, point-in-area and inside-polygon, combined with field filters |
| What formats come out? | JSON, GeoJSON and vector tiles with TileJSON |
| Is it fast and cache-friendly? | ETag and `304`, CDN-friendly headers, open CORS. Images resized on the fly to WebP or AVIF. |
| Is it safe for AI agents? | Four access levels, dry runs, review list, activity log, trash, rate limits |
| Does it fit my stack? | Works with MapLibre, Mapbox GL, Leaflet, QGIS and ArcGIS. Typed OpenAPI file. Signed webhooks. |
| Who can do what? | Owner, editor and developer roles. Read-only API keys you can rotate or revoke. |
| Can I check what it's doing? | A [status page](https://status.spatibase.com) and a [changelog](/changelog/) |

---

## Part 6: Getting started well

**Model first.** Spend an hour on your types and fields. A good model makes the API, the editor and the agents all easier. Reuse Elements across Types.

**Bring your data.** Use the import wizard for files, sheets and PostGIS. Or hand the [agent quickstart](/agents/quickstart.md) to your coding agent and let it do the move, with a report and one approval step before it changes anything.

**Set up the team.** Owners manage the project and keys. Editors manage content. Developers build against the API. Opening Collect is free for anyone with project access, but adding or changing entries needs an editor seat. Developers have no seat charge.

**Connect your systems.** Use the typed OpenAPI file for your front end. Add a signed [webhook](/docs/publish/webhooks/) to rebuild a static site or clear a cache when content is published.

**Keep keys tidy.** Public content needs no key. For private projects, keep the read key in server code or an environment variable, never in the browser. See [access and keys](/docs/publish/access-and-keys/).

**Know the cost.** Everything is free during the public beta. See [pricing](/pricing/).

---

## Try it

- **Start free:** [Open Spatibase](https://app.spatibase.com/signup) and build your first project.
- **Let an agent do it:** point your coding agent at the [agent quickstart](/agents/quickstart.md).
- **Read the API:** [Delivery API reference](/docs/reference/delivery-api.md) and the [OpenAPI file](https://api.spatibase.com/delivery/v1/openapi.json).
- **Not sure it's a fit?** Tell us what you're building: [hello@spatibase.com](mailto:hello@spatibase.com). We'll tell you honestly if we can help.

Facts about Spatibase on this page were checked against the product on 26 November 2026. Comparisons rely on vendor pages checked in October 2026 and may change.
