Spatial Point & Hierarchy Resolution
Submit decimal-degree GPS points from field surveys. GeoCarto resolves Country (ADM0), Region (ADM1), Division (ADM2), and Subdivision (ADM3) containment while fetching surrounding hydrography and road networks.
An automated map generation SaaS and REST API built for academic researchers. Transform raw GPS field coordinates from tropical, highland, and pastoral study areas into publication-ready localization maps with automated GADM administrative boundaries and OpenStreetMap river & road layers.
Submit decimal-degree GPS points from field surveys. GeoCarto resolves Country (ADM0), Region (ADM1), Division (ADM2), and Subdivision (ADM3) containment while fetching surrounding hydrography and road networks.
Cosine-latitude aspect locking prevents equatorial or high-latitude distortion. Universal First & Second Contrast Colors separate your focal study polygons from surrounding neighbor divisions.
Instead of smearing pixels, our visual critic inspects Pass 1 for legend/polygon overlap or label collisions, adjusts structured layout parameters, and rasterizes a pristine Pass 2 publication figure.
Ecological and watershed fieldwork across Nakuru County’s Rift Valley demands clear separation between tributary rivers, highway access corridors, and local ward boundaries. This left-to-right 3-panel publication figure pairs GADM administrative hierarchy insets (levels 1–3) with waterways (Malewa, Gilgil, Turasha), national/primary/secondary road networks, connector arrows, multi-symbol site markers, and a classic DMS zebra graticule frame.
| COUNTRY / REGION | Kenya — Nakuru County / Naivasha (East Africa) |
| STUDY SITES | Naivasha South, Elsamere, Gilgil Inlet, Hell’s Gate |
| ACTIVE LAYERS | ADM1–ADM3 Wards, Rivers & Streams, National & Secondary Roads |
| LAYOUT & STYLE | study_site (L→R, 1–3, Arrows) • Zebra Grid • Split Chevron |
| CONTRAST PALETTE | First: #E8F4D9 (Riparian Sage) / Second: #FFFFFF (Context) |
Montane ecology and altitude-gradient surveys across Morocco’s High Atlas benefit from a clean, uncluttered administrative canvas with roads disabled. Configured in French with a right-to-left reading direction and macro-to-meso hierarchy (levels 0–2: Africa → Region → Province), this figure pairs exterior crosshair graticules, a 4-point compass star, and multi-shape altitude station markers.
| COUNTRY / REGION | Morocco — Marrakech-Tensift-Al-Haouz / Al-Haouz (North Africa) |
| STUDY SITES | Imlil Station, Refuge du Toubkal, Oukaïmeden, Setti Fatma |
| ACTIVE LAYERS | Continental + Regional Insets (0–2), Clean Province Boundaries |
| LAYOUT & STYLE | study_site (R→L, 0–2, FR) • Crosshairs • 4-Point Star |
| CONTRAST PALETTE | First: #F5E6C8 (Atlas Ochre) / Second: #F7F7F5 (Context) |
Multi-region national studies spanning Ghana’s Guinea savannah (Northern), humid forest belt
(Ashanti), Volta highlands, and coastal plains (Central) require crisp administrative clarity. The
portrait country_study_area layout isolates focal ADM1 regions in high-contrast sage
against surrounding administrative divisions, anchored by a continental Africa locator inset and an
8-point compass rose.
| COUNTRY / REGION | Ghana — Northern, Ashanti, Central & Volta (West Africa) |
| STUDY SITES | Tamale (9.40°N), Kumasi (6.69°N), Cape Coast (5.11°N), Ho (6.60°N) |
| ACTIVE LAYERS | National ADM1 Administrative Boundaries + Africa Locator Inset |
| LAYOUT & STYLE | country_study_area (Portrait) • Exterior Ticks • 8-Point Rose |
| CONTRAST PALETTE | First: #DDEDCC (Sage Focal) / Second: #FFFFFF (Admin Context) |
Configure your study site coordinates, layout, north star form, and focal/context contrast colors on the left, then click “Generate the Map”.
Every researcher begins with a Free Trial plan. Standard deterministic maps and Two-Pass Gemini-4-Hydrogen AI-Refined Publication Maps are metered separately so you can draft freely and spend AI-Refined credits only on final manuscript figures.
autoRefine: false)responseMode: "async")
NAME: —
EMAIL: —
INSTITUTION: —
AUTH PROVIDER: —
ACTIVE PLAN: free_trial
No maps generated yet in this cycle.
Generate up to 5 named personal API keys to invoke POST /v1/maps directly or chain GeoCarto
as a tool inside an autonomous AI agent acting on your behalf. All programmatic requests meter against your plan ledger.
Need full parameter tables, Python/R/Node/Go examples, or the interactive request builder? Open the API Documentation →
curl -X POST http://localhost:8080/v1/maps \
-H "X-API-Key: gc_live_YOUR_PERSONAL_KEY" \
-H "Content-Type: application/json" \
-o publication_map.png \
-d '{
"points": [{"lat": 5.14, "lng": 10.58, "label": "IRAD", "symbol": "star"}],
"layout": "study_site",
"dpi": 300,
"northArrowStyle": "compass_star",
"firstContrastColor": "#f5eb5f",
"secondContrastColor": "#ffffff",
"autoRefine": true
}'
1. Field Coordinate & Spatial Data Sovereignty: Coordinate points submitted to GeoCarto are processed solely to resolve administrative hierarchies (GADM 4.1) and render your requested localization maps. We do not sell or publish unpublished research site coordinates.
2. Account & Authentication Telemetry: When you register via Firebase Authentication (Google OAuth or Email/Password), we store your email address, display name, institutional affiliation, and usage ledger counts (`standardMapsUsed`, `aiRefinedMapsUsed`) plus configuration snapshots so you can reload past configurations in the Map Studio.
3. Zero Binary Cloud Archival: Per our data minimization policy, GeoCarto does not archive your rendered PNG, SVG, or PDF map files in persistent cloud object storage.
4. Anti-Bot Verification: Registration, Login, and Contact forms use Cloudflare Turnstile and IP rate limiting to prevent automated abuse.
1. Academic & Commercial Publication Rights: Maps generated through GeoCarto may be freely embedded in peer-reviewed journal articles, dissertations, theses, grant proposals, and technical reports. Attribution to OpenStreetMap contributors and GADM 4.1 is recommended where applicable.
2. API Key & Autonomous Agent Chaining: You may create up to 5 named personal API keys (`gc_live_...`) to automate map generation or chain GeoCarto with autonomous AI agents. You are responsible for keeping your API keys confidential and respecting your tier's rate and quota limits.
3. Anti-Abuse & Rate Limits: Automated scraping or bypassing Cloudflare Turnstile challenges on public endpoints is strictly prohibited.
Generate publication-ready academic localization maps in PNG, SVG, or
PDF directly from Python notebooks, R scripts, CI pipelines, web backends, or autonomous
AI agents. Submit decimal-degree coordinates (EPSG:4326) and let GeoCarto resolve GADM
administrative hierarchies, fetch OpenStreetMap waterways and roads, and compose journal-ready figures.
Every map generation request is a single JSON POST to /v1/maps containing at
least one coordinate pair (lat, lng in decimal degrees, EPSG:4326).
In synchronous mode ("responseMode": "sync", the default), the HTTP response body is the
rendered image/png, image/svg+xml, or application/pdf file directly.
curl -X POST "http://localhost:8080/v1/maps" \
-H "X-API-Key: gc_live_YOUR_PERSONAL_KEY" \
-H "Content-Type: application/json" \
-o study_site_map.png \
-d '{
"points": [
{"lat": 5.14, "lng": 10.58, "label": "IRAD", "symbol": "star"},
{"lat": 5.20, "lng": 10.50, "label": "Tchiroma", "symbol": "star"},
{"lat": 5.10, "lng": 10.65, "label": "Banekane", "symbol": "circle", "symbolFilled": false}
],
"layout": "study_site",
"format": "png",
"dpi": 300,
"northArrowStyle": "compass_star",
"graticuleStyle": "zebra",
"firstContrastColor": "#f5eb5f",
"secondContrastColor": "#ffffff",
"studySite": {
"language": "en",
"symbolColor": "#cc0000",
"pointsLegendLabel": "Sampled farms",
"showRivers": true,
"showRoads": true
}
}'
GeoCarto supports two authentication headers on POST /v1/maps. For scripts, notebooks,
and autonomous AI agents, use a named personal API key generated in your
Researcher Profile.
| Header | Format | Recommended Use |
|---|---|---|
X-API-Key |
gc_live_<token> |
Scripts, Python/R pipelines, CI/CD, and AI agent tool calls. Up to 5 active named keys per account with one-click rotation and revocation. |
Authorization |
Bearer <session_token> |
Interactive browser sessions (used internally by the Map Studio). |
GEOCARTO_API_KEY and never commit it to version control. Full secrets are displayed once at
creation time; if a key is exposed, rotate or revoke it immediately from your
Profile page.
| Method & Path | Description | Success Status |
|---|---|---|
POST /v1/maps |
Validates coordinates and cartographic options, resolves administrative boundaries and vector layers, and renders a PNG, SVG, or PDF map. | 200 OK (binary image/document in sync mode)202 Accepted (JSON job receipt in async mode) |
GET /v1/maps/{requestId} |
Polls the lifecycle status (accepted, processing, completed, failed) of an asynchronous map job. |
200 OK (JSON status payload with downloadUrl when completed) |
GET /v1/maps/{requestId}/download |
Downloads the rendered artifact for a completed asynchronous job. | 200 OK (binary image/png, image/svg+xml, or application/pdf) |
GET /v1/profile |
Returns your active plan tier, Standard vs. AI-Refined quota usage, and named API keys metadata. | 200 OK (JSON profile & quota ledger) |
POST /v1/maps Request Parameters
All fields are sent as a single JSON object with Content-Type: application/json. Only
points is required; every other field has a sensible publication-ready default.
| Field | Type | Default | Description |
|---|---|---|---|
pointsReq |
PointInput[] |
— | One or more study site coordinates (lat in [-90, 90], lng in [-180, 180]). |
layoutOpt |
string |
"standard" |
One of standard, qgis_composition, study_site, or country_study_area. |
formatOpt |
string |
"png" |
Output artifact format: png (raster), svg (editable vector), or pdf (print document). |
dpiOpt |
integer |
300 |
Resolution from 72 to 1200 DPI (subject to plan tier ceiling: Free Trial up to 150 Standard / 300 AI; Pro up to 600; Lab up to 1200). |
zoomOpt |
number |
1.0 |
Viewport zoom factor between 0.25 (zoom out) and 20 (zoom in). |
adminLevelOpt |
integer |
0 (Auto) |
Canonical 1-to-8 administrative tier: 0 (auto-selects coarsest uncluttered level) or 2–8. |
panelIntervalOpt |
string |
"1-3" |
3-panel inset progression: "1-3" (Region → Division → Subdivision) or "0-2" (Continent → Region → Division). |
panelDirectionOpt |
string |
"left_to_right" |
3-panel reading order: "left_to_right" or "right_to_left". |
includeGraticulesOpt |
boolean |
false |
Draw DMS latitude/longitude coordinate grid and frame labels. |
graticuleStyleOpt |
string |
"zebra" |
Frame style: zebra, ticks, crosshairs, or solid_grid. |
includeScalebarOpt |
boolean |
false |
Render a metric kilometer scale bar calibrated at the study area latitude. |
includeNorthArrowOpt |
boolean |
false |
Render a north indicator on the main map panel. |
northArrowStyleOpt |
string |
"chevron" |
North arrow form: chevron, compass_star, compass_rose, minimal_needle, or none. |
includeArrowsOpt |
boolean |
false |
Draw orthogonal connector arrows linking inset highlight boxes to the next zoomed panel. |
firstContrastColorOpt |
string |
"#f5eb5f" |
6-digit hex color (#RRGGBB) for focal study area polygons. |
secondContrastColorOpt |
string |
"#ffffff" |
6-digit hex color (#RRGGBB) for surrounding neighbor / context polygons. |
responseModeOpt |
string |
"sync" |
sync streams the file in the response body; async returns 202 Accepted with a pollUrl. |
autoRefineOpt |
boolean |
auto |
Set true to invoke the 2-pass Gemini-4-Hydrogen Cartographic Critic (meters an AI-Refined credit) or false for fast deterministic rendering. |
studySiteOpt |
object |
null |
Detailed thematic layers, typography language, and marker styling (see below). |
overridesOpt |
object |
null |
Fine-grained layout overrides: mainZoomFactor (0.6–1.8), panOffsetLng / panOffsetLat (-0.35–0.35), legendCorner, northArrowCorner, scaleBarCorner, fontScale (0.75–1.45), and labelOffsets ({"IRAD": [12, -8]}). |
points[] Item Schema| Field | Type | Default | Description |
|---|---|---|---|
latReq |
number |
— | Decimal-degree latitude (-90 to 90, WGS84 / EPSG:4326). |
lngReq |
number |
— | Decimal-degree longitude (-180 to 180, WGS84 / EPSG:4326). |
labelOpt |
string |
"" |
Site name printed next to the marker with automatic collision-aware placement. |
symbolOpt |
string |
"circle" |
Per-point marker shape override: star, circle, square, or triangle. |
symbolFilledOpt |
boolean |
true |
Set false to draw a hollow outline-only marker for that specific site. |
studySite Configuration Object| Field | Type | Default | Description |
|---|---|---|---|
language |
string |
"fr" |
Language for panel titles, inset captions, and legend headings: "en" or "fr". |
symbolShape |
string |
"star" |
Default marker shape for all points without a per-point override: star, circle, square, triangle. |
symbolFilled |
boolean |
true |
Default fill mode for all markers (false = hollow outline). |
symbolColor |
string |
"#cc0000" |
6-digit hex color (#RRGGBB) for study site markers. |
pointsLegendLabel |
string |
"Sites d'étude" / "Study sites" |
Custom legend entry text describing your sample points (e.g., "Sampled farms"). |
title |
string |
Auto | Optional custom figure title block (used primarily in country_study_area). |
showRivers / showRoads |
boolean |
true |
Toggle OpenStreetMap hydrography (rivers & streams) and road network overlays. |
showWaterBodies |
boolean |
Matches showRivers |
Toggle lakes, reservoirs, and inland water polygons. |
showLandcover / showTopo / showTransportPoints |
boolean |
false |
Optional thematic layers for forests/reserves, peaks/ridges, and transit hubs. |
standardClean single-canvas map with administrative boundaries, site markers, optional graticules, north arrow, and scale bar. Ideal for rapid validation or compact reports.
qgis_compositionTwo stacked locator insets alongside a wider main panel, automatically resolving country → region → division containment with minimal decorative chrome.
study_siteFull academic 3-panel composition with distinct subdivision fills, neighbor context, DMS zebra graticules, rivers & roads, optional connector arrows, and bilingual EN/FR legend.
country_study_areaPortrait national map highlighting every ADM1 region containing your points as the focal Study Area, paired with a continental locator inset and formal title block.
adminLevel)
GeoCarto normalizes GADM 4.1 and OpenStreetMap administrative hierarchies onto a single global scale.
Leave adminLevel at 0 (default) to let GeoCarto pick the coarsest uncluttered
level automatically, or pin a specific tier between 2 and 8:
adminLevel |
Common Equivalent | GADM 4.1 | OpenStreetMap |
|---|---|---|---|
0 (default) |
Auto — highest uncluttered tier (≤ 12 focal polygons) | Dynamic | Dynamic |
2 |
State, Province, or Region | ADM1 |
admin_level=4 |
3 |
County, Department, or District (Sous-préfecture) | ADM2 |
admin_level=6 |
4 |
Municipality, Arrondissement, Ward, or Sub-district | ADM3 |
admin_level=7..8 |
5–8 |
Town, Village, Neighborhood, Locality | ADM4..5 |
admin_level=8..11 |
Use "responseMode": "sync" for interactive tools and single figures. When batch-generating
high-resolution (600–1200 DPI) maps or enabling the two-pass AI Cartographic Critic
("autoRefine": true), switch to "responseMode": "async" to avoid client HTTP
timeouts.
autoRefine): When enabled, GeoCarto renders
Pass 1, inspects it visually for legend overlap, label collisions, or awkward framing, computes structured
overrides, and rasterizes a clean Pass 2 publication figure — without ever smearing
pixels or hallucinating geography. Set "autoRefine": false during rapid iteration to preserve
your AI-Refined credits.
# 1. Submit async map job (returns HTTP 202 Accepted)
RESP=$(curl -s -X POST "http://localhost:8080/v1/maps" \
-H "X-API-Key: $GEOCARTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"points": [{"lat": 5.14, "lng": 10.58, "label": "IRAD"}],
"layout": "study_site",
"dpi": 600,
"format": "png",
"responseMode": "async",
"autoRefine": true
}')
REQUEST_ID=$(echo "$RESP" | python3 -c "import sys,json; print(json.load(sys.stdin)['requestId'])")
# 2. Poll until status is "completed"
curl -s "http://localhost:8080/v1/maps/$REQUEST_ID"
# 3. Download the completed publication figure
curl -s "http://localhost:8080/v1/maps/$REQUEST_ID/download" -o figure_600dpi.png
Select your language below. Every snippet generates a 300 DPI study_site map with multiple
field coordinates and saves the binary image directly to disk.
curl -f -X POST "http://localhost:8080/v1/maps" \
-H "X-API-Key: $GEOCARTO_API_KEY" \
-H "Content-Type: application/json" \
-o naivasha_study_site.png \
-d '{
"points": [
{"lat": -0.717, "lng": 36.432, "label": "Naivasha South", "symbol": "star"},
{"lat": -0.824, "lng": 36.332, "label": "Elsamere", "symbol": "circle"}
],
"layout": "study_site",
"format": "png",
"dpi": 300,
"panelInterval": "1-3",
"panelDirection": "left_to_right",
"includeArrows": true,
"northArrowStyle": "chevron",
"graticuleStyle": "zebra",
"firstContrastColor": "#e8f4d9",
"secondContrastColor": "#ffffff",
"studySite": {
"language": "en",
"symbolColor": "#c8281e",
"pointsLegendLabel": "Sampling stations",
"showRivers": true,
"showRoads": true
}
}'
import os
import requests
API_KEY = os.environ["GEOCARTO_API_KEY"]
payload = {
"points": [
{"lat": 5.14, "lng": 10.58, "label": "IRAD", "symbol": "star"},
{"lat": 5.20, "lng": 10.50, "label": "Tchiroma", "symbol": "star"},
{"lat": 5.10, "lng": 10.65, "label": "Banekane", "symbol": "circle", "symbolFilled": False},
],
"layout": "study_site",
"format": "png",
"dpi": 300,
"northArrowStyle": "compass_star",
"graticuleStyle": "zebra",
"firstContrastColor": "#f5eb5f",
"secondContrastColor": "#ffffff",
"autoRefine": False,
"studySite": {
"language": "en",
"symbolColor": "#cc0000",
"pointsLegendLabel": "Sampled farms",
"showRivers": True,
"showRoads": True,
},
}
resp = requests.post(
"http://localhost:8080/v1/maps",
headers={"X-API-Key": API_KEY, "Content-Type": "application/json"},
json=payload,
timeout=120,
)
resp.raise_for_status()
with open("figure_1_study_area.png", "wb") as f:
f.write(resp.content)
print("Saved figure_1_study_area.png")
library(httr2)
api_key <- Sys.getenv("GEOCARTO_API_KEY")
body <- list(
points = list(
list(lat = 5.14, lng = 10.58, label = "IRAD", symbol = "star"),
list(lat = 5.20, lng = 10.50, label = "Tchiroma", symbol = "star")
),
layout = "study_site",
format = "png",
dpi = 300,
northArrowStyle = "compass_rose",
firstContrastColor = "#ddedcc",
secondContrastColor = "#ffffff",
studySite = list(
language = "en",
symbolColor = "#cc0000",
pointsLegendLabel = "Field plots",
showRivers = TRUE,
showRoads = TRUE
)
)
resp <- request("http://localhost:8080/v1/maps") |>
req_headers("X-API-Key" = api_key) |>
req_body_json(body) |>
req_perform()
writeBin(resp_body_raw(resp), "figure_1_study_area.png")
import { writeFile } from "node:fs/promises";
const response = await fetch("http://localhost:8080/v1/maps", {
method: "POST",
headers: {
"X-API-Key": process.env.GEOCARTO_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
points: [
{ lat: 6.69, lng: -1.62, label: "Kumasi", symbol: "circle" },
{ lat: 9.40, lng: -0.84, label: "Tamale", symbol: "circle" },
],
layout: "country_study_area",
format: "png",
dpi: 300,
northArrowStyle: "compass_rose",
firstContrastColor: "#ddedcc",
secondContrastColor: "#ffffff",
studySite: { language: "en" },
}),
});
if (!response.ok) {
throw new Error(`GeoCarto API error ${response.status}: ${await response.text()}`);
}
const buffer = Buffer.from(await response.arrayBuffer());
await writeFile("ghana_study_area.png", buffer);
console.log("Saved ghana_study_area.png");
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"points": [{"lat": 5.14, "lng": 10.58, "label": "IRAD", "symbol": "star"}],
"layout": "study_site",
"format": "png",
"dpi": 300,
"studySite": {"language": "en"}
}`)
req, _ := http.NewRequest(http.MethodPost, "http://localhost:8080/v1/maps", bytes.NewReader(body))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", os.Getenv("GEOCARTO_API_KEY"))
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
msg, _ := io.ReadAll(resp.Body)
panic(fmt.Sprintf("HTTP %d: %s", resp.StatusCode, msg))
}
out, _ := os.Create("study_site.png")
defer out.Close()
_, _ = io.Copy(out, resp.Body)
}
Toggle options below to assemble a validated payload and copy the exact cURL,
Python, or raw JSON snippet for your script.
All error responses return a structured JSON body with a machine-readable code, human
message, and trace requestId:
{
"code": "validation_error",
"message": "dpi out of range",
"requestId": "req_9f4c2a1b"
}
| HTTP Status | Error code |
Cause & Resolution |
|---|---|---|
400 |
invalid_json / validation_error |
Malformed JSON or out-of-range field (e.g., empty points, invalid hex color, unsupported layout, or adminLevel=1). |
401 |
invalid_api_key_or_session |
The supplied X-API-Key or Authorization bearer token is invalid, expired, or revoked. |
403 |
quota_exhausted / dpi_limit_exceeded |
Your plan’s Standard or AI-Refined quota is depleted, or the requested dpi exceeds your tier ceiling. Check usage on Profile or upgrade on Pricing. |
404 |
not_found |
Unknown requestId passed to GET /v1/maps/{requestId}. |
422 |
boundary_resolution_failed |
Submitted coordinates could not be matched to a valid administrative boundary (e.g., open-ocean point). |
429 |
rate_limit_exceeded |
Client exceeded the sliding-window request rate limit. Back off and retry after 60 seconds. |