[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [OpenStreetMap local map data](https://spiral.ai/integrations/n8n/openstreetmap-local-map-data)

# How to Use OpenStreetMap local map data in n8n

Returns raw map objects for a small rectangular area, including the geographic structures used to describe local features. Use it to inspect a block or plaza across feature types instead of running a category search.

|  |  |
| --- | --- |
| Model | OpenStreetMap local map data |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with OpenStreetMap local map data in n8n

- Every Monday at 9am: use OpenStreetMap local map data to look this up and give me the result as a table.
- Pull the latest numbers from OpenStreetMap local map data and tell me what changed since last week.
- Check OpenStreetMap local map data and summarize what you find in three bullet points.
- Pull the newest data from OpenStreetMap local map data and give me the result as a table.
- Check OpenStreetMap local map data every morning and tell me only when something changed.

## How to set up OpenStreetMap local map data in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run OpenStreetMap local map data in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds OpenStreetMap local map data, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run OpenStreetMap local map data**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "openstreetmap-org/places/map_bbox",
    "input": {
      "bbox": "<bbox>"
    }
  }'
```

Then paste one of the prompts above: n8n finds OpenStreetMap local map data on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## OpenStreetMap local map data tools and prices

- [OpenStreetMap · Map bbox](https://spiral.ai/tools/alexandria/openstreetmap-org/places/map_bbox) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| include_untagged |  | — | Keep untagged nodes (mostly way vertices) in `elements`. |

## What can you do with OpenStreetMap local map data in n8n?

Maintain a recurring map-quality brief for a public district. Compare each OpenStreetMap retrieval with the previous run and surface changes in the records or evidence returned.

### Build a neighborhood base map

Locate Covent Garden, inspect a small surrounding block, label public landmarks from coordinates, and refresh the saved map objects.

### Investigate an unexpected map change

Compare a changed public feature with its earlier versions, surrounding map data, nearby edit sessions, and reported map problems.

### Prepare a field survey

Create a survey brief for a public plaza using its location, surrounding features, mapped amenities, and unresolved issue reports.

### Check an administrative boundary

Locate a municipality, inspect its mapped boundary and nearby features, then review object history and edit sessions when the boundary changes.

### Investigate a station map discrepancy

Compare saved station-area records with current objects, inspect the surrounding block, and use history, edit sessions, and issue reports to explain discrepancies.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## OpenStreetMap local map data in other agents

- [Amp](https://spiral.ai/integrations/amp/openstreetmap-local-map-data)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/openstreetmap-local-map-data)
- [Claude](https://spiral.ai/integrations/claude-desktop/openstreetmap-local-map-data)
- [Claude Code](https://spiral.ai/integrations/claude-code/openstreetmap-local-map-data)
- [Cline](https://spiral.ai/integrations/cline/openstreetmap-local-map-data)
- [Codex](https://spiral.ai/integrations/codex/openstreetmap-local-map-data)
- [Cursor](https://spiral.ai/integrations/cursor/openstreetmap-local-map-data)
- [Devin](https://spiral.ai/integrations/devin/openstreetmap-local-map-data)
- [dots](https://spiral.ai/integrations/dots/openstreetmap-local-map-data)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/openstreetmap-local-map-data)
- [Gemini](https://spiral.ai/integrations/gemini/openstreetmap-local-map-data)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/openstreetmap-local-map-data)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/openstreetmap-local-map-data)
- [goose](https://spiral.ai/integrations/goose/openstreetmap-local-map-data)
- [Grok](https://spiral.ai/integrations/grok/openstreetmap-local-map-data)
- [Grok Build](https://spiral.ai/integrations/grok-build/openstreetmap-local-map-data)
- [Hermes](https://spiral.ai/integrations/hermes/openstreetmap-local-map-data)
- [Instinct](https://spiral.ai/integrations/instinct/openstreetmap-local-map-data)
- [Manus](https://spiral.ai/integrations/manus/openstreetmap-local-map-data)
- [Muse](https://spiral.ai/integrations/muse/openstreetmap-local-map-data)
- [Muse Code](https://spiral.ai/integrations/muse-code/openstreetmap-local-map-data)
- [Notion](https://spiral.ai/integrations/notion/openstreetmap-local-map-data)
- [OpenClaw](https://spiral.ai/integrations/openclaw/openstreetmap-local-map-data)
- [opencode](https://spiral.ai/integrations/opencode/openstreetmap-local-map-data)
- [Perplexity](https://spiral.ai/integrations/perplexity/openstreetmap-local-map-data)
- [Raycast](https://spiral.ai/integrations/raycast/openstreetmap-local-map-data)
- [VS Code](https://spiral.ai/integrations/vscode/openstreetmap-local-map-data)
- [Windsurf](https://spiral.ai/integrations/windsurf/openstreetmap-local-map-data)
- [Zapier](https://spiral.ai/integrations/zapier/openstreetmap-local-map-data)

## More n8n guides

- [OpenStreetMap feature search](https://spiral.ai/integrations/n8n/openstreetmap-feature-search)
- [OpenStreetMap map edits](https://spiral.ai/integrations/n8n/openstreetmap-map-edits)
- [OpenStreetMap element history](https://spiral.ai/integrations/n8n/openstreetmap-element-history)
- [OpenStreetMap map issue reports](https://spiral.ai/integrations/n8n/openstreetmap-map-issue-reports)
- [OpenStreetMap element details](https://spiral.ai/integrations/n8n/openstreetmap-element-details)
- [OpenStreetMap place search](https://spiral.ai/integrations/n8n/openstreetmap-place-search)

## Questions about OpenStreetMap local map data in n8n

**Can n8n use OpenStreetMap local map data?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run OpenStreetMap local map data like any built-in tool.

**How much does OpenStreetMap local map data cost in n8n?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use OpenStreetMap local map data in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs OpenStreetMap local map data on its own Alexandria account.

**How long does it take to set up OpenStreetMap local map data in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while OpenStreetMap local map data runs?**

OpenStreetMap local map data runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Which parts of the world does OpenStreetMap cover?**

OpenStreetMap has worldwide scope, including roads, trails, cafés, and railway stations. Its records come from a community of contributors.

**Does worldwide coverage mean every local feature is mapped?**

No. OpenStreetMap's accuracy documentation says basic map coverage is still being built in many areas, so a local result set cannot establish that every feature is present.

**How frequently are OpenStreetMap changes distributed?**

OpenStreetMap publishes minute, hourly, and daily change files. Those replication intervals do not establish one refresh schedule for every service that uses the data.

**Are these map images or underlying geographic records?**

OpenStreetMap's editing API exposes raw geographic data. Nodes, ways, and relations describe the underlying features rather than a rendered map image.

**Is an OpenStreetMap number enough to identify a feature?**

No. Nodes, ways, and relations have separate ID spaces, so retain the object type alongside the number.

