How to Use OpenStreetMap place search in Gemini CLI
Returns Nominatim place matches with coordinates, OpenStreetMap references, and bounding boxes. Use it to locate a named place or address; results are selected matches, not a complete inventory of nearby businesses.
Prompts to try with OpenStreetMap place search in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use OpenStreetMap place search to locate Cambridge, Massachusetts, and Cambridge, England. Add their returned coordinates and object references to a comparison fixture in this project.
Use OpenStreetMap place search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from OpenStreetMap place search and tell me what changed since last week.
Check OpenStreetMap place search and summarize what you find in three bullet points.
Pull the newest data from OpenStreetMap place search and give me the result as a table.
How to set up OpenStreetMap place search in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run OpenStreetMap place search
One request; the result comes back by polling or a webhook.
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/geocode", "input": { "city": "<city>" } }'
Then paste one of the prompts above: Gemini CLI finds OpenStreetMap place search on Spiral, shows the price and runs it.
OpenStreetMap place search providers and prices
Spiral runs OpenStreetMap place search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 40 | 10 | Results per page (Nominatim caps at 40). |
| Polygon | on or off | Include the place geometry as GeoJSON ( |
Every API field of OpenStreetMap · Geocode is on its tool page: open its card above.
What can you do with OpenStreetMap place search in Gemini CLI?
Build a reviewable map-data audit for a public district in your project. Use OpenStreetMap locations, feature records, or editing evidence to explain what the returned data supports.
Build a neighborhood base map
Locate Covent Garden, inspect a small surrounding block, label public landmarks from coordinates, and refresh the saved map objects.
Maintain a public amenity directory
Find mapped libraries or drinking fountains in a named district, inspect their tags, and refresh known records for a civic directory.
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.
Refresh a public destination guide
Recheck mapped attractions in a district, refresh saved objects, label public locations, and review edit activity and map reports before revising the guide.
More on OpenStreetMap place search and Gemini CLI
Overview
OpenStreetMap place search in other agents
Questions about OpenStreetMap place search in Gemini CLI
Can Gemini CLI use OpenStreetMap place search?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run OpenStreetMap place search like any built-in tool.
How much does OpenStreetMap place search cost in Gemini CLI?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.
Do I need an Alexandria account to use OpenStreetMap place search in Gemini CLI?
No. Spiral runs OpenStreetMap place search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up OpenStreetMap place search in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while OpenStreetMap place search runs?
OpenStreetMap place search runs in the background. Gemini CLI 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.
Start using OpenStreetMap place search in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


