Skip to content
Documentation menu
docs / api / post-geodata-validate
Boundaries, coordinates and time zones

POST/geodata/validate

Access and price

AuthAn API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Needs a full key; a browser (maps) key is refused.
Price1 call per request. Class: standard, or premium for truck and ADR work. Published as unit_rules.default in /pricing.json.
PremiumWhen the body asks for truck routing: "costing": "truck", a top-level adr object or "hazmat": true

What it does

Coordinate-reference-system sanity check.

An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Price: 1 call per request.

Call it

bash
curl -fsS -X POST "https://api.mapmap.ai/geodata/validate" \
  -H "Authorization: Bearer $MAPMAP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"coordinates":[{"x":529000,"y":4555000}],"declared_crs":"EPSG:32610"}'

Request body

application/json · ValidateGeodataRequest

A declared CRS and a sample of the dataset's own coordinates

FieldTypeRequiredDescription
coordinatesGeodataCoordinate[]yesA sample of the dataset's raw coordinates. A few dozen is plenty: the check is about ranges and spans, not volume.
declared_crsstringyesThe CRS the dataset claims, e.g. "EPSG:4326" or "EPSG:32610".

Example: A request assembled from this schema's own field examples, enums, defaults and types; not a recorded call

json
{
  "coordinates": [
    {
      "x": 529000,
      "y": 4555000
    }
  ],
  "declared_crs": "EPSG:32610"
}

Responses

200Whether the declaration and the coordinates agree
FieldTypeRequiredDescription
extentGeodataExtentyesObserved extent of the sample, in the dataset's own units.
interpreted_asstringyesThe CRS family the declaration was understood as.
problemsstring[]yesPlain-language findings, most important first. Empty when consistent.
suggestionsstring[]yesWhat the numbers look like when the declaration does not fit.
verdictstringyesconsistent, suspect or impossible.

Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call

json
{
  "extent": {
    "max_x": 0,
    "max_y": 0,
    "min_x": 0,
    "min_y": 0
  },
  "interpreted_as": "UTM zone 10N",
  "problems": [
    "string"
  ],
  "suggestions": [
    "string"
  ],
  "verdict": "impossible"
}
400Empty or non-finite coordinate sample

application/problem+json · Problem

401Missing or invalid API key. Also: No key, or a missing, malformed, unknown, revoked or expired one (unauthorized); the body carries signup, docs and a one-call hint for a free key

application/problem+json · Problem

402Beyond the included volume with no way to pay this call: an x402 body naming how to pay (provisional key past its allowance, prepaid balance below the price, or a rejected X-PAYMENT). Not problem+json

application/json · X402PaymentRequired

403The key may not call this: a browser key outside its scope (scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)

application/problem+json · Problem

413The request declares a body larger than 1048576 bytes (plain text, not problem+json)

text/plain

429Quota or rate limit exceeded. Also: Per-key rate limit (rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)

application/problem+json · Problem

504The request did not finish within the gateway's request deadline (request-timeout)

application/problem+json · Problem

Error bodies follow the shared problem model documented on API conventions.

Also under Boundaries, coordinates and time zones

Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId post_validate