Skip to content
Works in ChatGPT, Claude and your own code

The exact boundary of any place on Earth.

A map in your chat. GeoJSON in your code.

Name a country, state, county, city, district or postcode, or give a point, and get its real outline. No single name for it? Describe the area in a sentence, like “the Bay Area counties except San Jose”, and get one shape back.

Free for 100 boundaries a month. No card. Searching is always free. See starter prompts

Try
Alameda CountyContra Costa CountyMarin CountyNapa CountySan Francisco CountySan Mateo CountySanta Clara CountySolano CountySonoma CountySF Bay Area (excl. San Jose)excluded: San Jose
Described in words: “SF Bay area counties excluding San Jose City limits” → 10 parts, 17,765 km²

Start here

Ask in a chat, or call it from code

The same account and the same data either way. Most people start in ChatGPT or Claude and add an API key when they build something.

Use it in ChatGPT or Claude

Geocode AI is an official app in both. Add it in one click and sign in with your browser; there is no key to paste. Then ask in plain words and get the boundary drawn on a map.

Then try a prompt. Each link opens a new chat with it filled in.

  • Use Geocode AI to show the boundary of Berlin, Germany, on a map.

  • Use Geocode AI to list the districts of Berlin and draw them on a map.

  • Use Geocode AI to find which city, county and state contain 40.7484, -73.9857, and show them on a map.

  • Use Geocode AI to draw the San Francisco Bay Area counties, excluding the City of San Jose, on a map.

Another MCP client? Add a custom connector with https://geocodeai.dev/mcp?auth=required.

Call it from code

Get a free key, and one GET returns the polygon as GeoJSON. The same key works in the CLI, Claude Code, Codex and Cursor.
Berlin's boundary
curl "https://geocodeai.dev/v1/boundaries/r62422" \
  -H "Authorization: Bearer $GEOCODE_API_KEY"

What you can do

Look a place up by name. Or describe an area in words.

Look up a place

Search by name or by point and get the real outline, from countries down to districts and postcodes. See which points fall inside, walk from a country to its states and cities, merge shapes, and download GeoJSON, KML, WKT, GML or SVG.
  • Search by name, free
  • One boundary, 1 unit
  • Reverse lookup by point
  • Point-in-polygon batches
  • Parents and children
  • Merge into one shape

Describe an area

Contracts, policies and fare tables rarely name one place. Paste the wording and get one polygon built from real boundaries, or a clear answer about what couldn't be mapped. 50 units per area.
  • Territories by list
    “Alameda, Contra Costa and Santa Clara counties”
  • Carve-outs
    “…excluding the City of San Jose”
  • Facilities
    “…and the airport premises”
  • Historic boundaries
    “the former town, as it stood before the 2004 merger”
  • Precedence
    “…without prejudice to local rules”
  • Any language
    “函館市及び北斗市の区域”

Hard cases

The wording that breaks geocoders

Thirteen descriptions, from a four-word phrase to Japanese fare notices and Spanish taxi decrees, each sent exactly as written. Every map and verdict is the API's real output, including the ones it refused. Run any of them yourself.

🇺🇸 San Francisco Bay Area, USA

A region named in four words

Accepted
SF Bay area counties
Alameda CountyContra Costa CountyMarin CountyNapa CountySan Francisco CountySan Mateo CountySanta Clara CountySolano CountySonoma CountySF Bay Area (9 counties)
Area
18,230 km²
Level
metro

Parts

The catch

No county, state or country is named. “SF Bay area” has to be read as the standard nine-county region.

What Geocode AI does

Works out that the text means the US and maps all nine counties as one land-only area: about 18,200 km².

Accepted or rejected. Never guessed.

A territory drawn too big applies a contract where it doesn't belong; one drawn too small leaves places out. So there's no in-between: a polygon you can use, or an error that says why.

  • Accepted

    Accepted

    Every place in the description was mapped and the polygon passed validation: the API returns HTTP 200 with the GeoJSON.

  • Rejected · 422

    Rejected, with reasons

    If any place can't be mapped, or the result fails validation, there's no polygon: HTTP 422 says exactly what couldn't be mapped and why.

How describing an area works

  1. 01

    Read

    Reads the description and works out which places to include and exclude: counties, cities, districts, airports.

  2. 02

    Map

    Finds the precise boundary for each place, clipped to land, and checks it's the right kind of place and a plausible size.

  3. 03

    Validate

    Sizes, your reference point, overlaps and updates to existing areas are validated. You get a polygon only if it holds up.

From a PDF to a zone you can query

A real tariff resolution from A Coruña City Council. Pull out the clause that defines where it applies, send it to the API, and store the polygon. From then on, “does this fare apply here?” is one lookup in your own database.

  1. 01 · Extract the clause

    resolucion.pdfp. 1

    resolve autorizar a aplicación das seguintes tarifas máximas (IVE incluído) para o transporte urbano en auto-taxi para o Concello da Coruña

    pdftotext -layout resolucion.pdf - \
      | grep -i "concello da coruña"

    Any PDF-to-text tool works. The clause goes in as written, in Galician.

  2. 02 · Send it to POST /v1/areas

    A CoruñaConcello da Coruña
    Concello da Coruña · 37.1 km²HTTP 200

    The municipality, not the 473 km² comarca most datasets call “A Coruña”. Returned as GeoJSON.

  3. 03 · Query it in your stack

    -- store the zone once
    INSERT INTO zones (name, geom)
    VALUES ('A Coruña urban',
      ST_GeomFromGeoJSON(:geometry));
    
    -- then look up any point
    SELECT name FROM zones
    WHERE ST_Contains(geom,
      ST_Point(:lon, :lat, 4326));
    A Coruña train station

    43.3536, -8.4095

    Urban fare
    Torre de Hércules

    43.3859, -8.4065

    Urban fare
    A Coruña airport, in Culleredo

    43.3021, -8.3773

    Outside the zone

    PostGIS shown here. Any GIS library or database that reads GeoJSON works.

Use cases

Wherever a rule follows a border

Pricing

Searching is free. You pay for shapes.

One unit is one boundary geometry, one reverse lookup, one export or 1,000 point checks. Search and the hierarchy are free. A described area is 50 units.

Free

For prototypes and agents trying it out.

$0/ month

  • 100 units a month
  • 60 requests a minute
  • Up to 2 described areas
  • REST, MCP, CLI and plugins
  • No card needed

Starter

For side projects and a single agent.

$29/ month

or $290 a year, two months free

$14.50 per 1,000 units

  • 2,000 units a month20× Free
  • 300 requests a minute
  • Up to 40 described areas
  • REST, MCP, CLI and plugins

Pro

For production
For production apps.

$79/ month

or $790 a year, two months free

$3.95 per 1,000 units

  • 20,000 units a month200× Free
  • 600 requests a minute
  • Up to 400 described areas
  • REST, MCP, CLI and plugins

Business

For high-volume pipelines and bulk exports.

$199/ month

or $1,990 a year, two months free

$0.80 per 1,000 units

  • 250,000 units a month2,500× Free
  • 3,000 requests a minute
  • Up to 5,000 described areas
  • REST, MCP, CLI and plugins

Enterprise

Self-hosted data, SLAs and custom boundary sets.

Custom

  • Unlimited units
  • 10,000 requests a minute
  • Areas by contract
  • REST, MCP, CLI and plugins
  • Self-hosted data, SLAs, custom boundary sets

Compare plans in detail

Questions

Turn place names and fine print into maps you can trust.

Service territories, tax jurisdictions, fare zones, coverage areas: wherever a rule is defined by a place.