GeoCzech logo GeoCzech Docs

GeoCzech API

Coordinates

Find the right coordinate system, look up its definition, identify an unknown one, and convert coordinates — single points or whole tables. Free.

What it does

The Coordinates tool is a small toolbox for everything around coordinate reference systems (CRS) — see Key concepts if the term is new.

Method Question it answers
search "Which coordinate systems are there for … ?"
detail "Tell me everything about EPSG:32730."
identify "This .prj file / WKT definition — which EPSG code is it?"
info "How exactly is WGS 84 transformed to UTM zone 30S?"
convert "What are these GPS coordinates in UTM?" — one point or a whole table.

Always add response_type=json

The Coordinates tool returns its answer as a JSON file. Add "response_type": "json" to params to get it directly in the response (json_data) — all examples below do.

At a glance

  • Endpoint: POST /v2/tool/coordinates
  • Methods: search, detail, identify, info, convert
  • Result: json_data (with response_type=json)
  • Typical response time: well under a second
  • Price: free

detail — everything about one system

Returns the name, type, units, axes, datum, area of use and the full definitions in the formats other software needs (PROJ string, WKT, PROJJSON).

Use cases: show details in a CRS picker; get the definition to configure other software (QGIS custom CRS, PostGIS, proj4js); check whether a code is deprecated.

params

method string required

Allowed values: detail

crs string required

The code, e.g. EPSG:32730, ESRI:102100 or just 32730.

formats string default all

Which definitions to include, comma-separated, e.g. "proj4,wkt2".

Allowed values: proj4 · wkt2 · wkt1 · projjson

Details of EPSG:32730
curl -X POST "https://api.geoczech.dev/v2/tool/coordinates" \
  -H "X-API-Key: YOUR_API_KEY" \
  --form-string 'params={
    "method": "detail",
    "crs": "EPSG:32730",
    "formats": "proj4",
    "response_type": "json"
  }' \
  -F "wait=true"
json_data
{
  "code": "EPSG:32730",
  "name": "WGS 84 / UTM zone 30S",
  "type": "Projected CRS",
  "area": "Between 6°W and 0°W, southern hemisphere between 80°S and equator, onshore and offshore.",
  "unit": "metre",
  "axes": [
    {"name": "Easting", "direction": "east"},
    {"name": "Northing", "direction": "north"}
  ],
  "datum": "World Geodetic System 1984 ensemble",
  "bbox_latlon": [-6.0, -80.0, 0.0, 0.0],
  "deprecated": false,
  "superseded_by": null,
  "definitions": {
    "proj4": "+proj=utm +zone=30 +south +datum=WGS84 +units=m +no_defs +type=crs"
  }
}

identify — which system is this?

You have a coordinate system definition — a .prj file that came with a Shapefile, a WKT string from a database, a PROJ string — and want to know its EPSG code. Send the definition as text or upload the .prj file.

Use cases: label data that only has a .prj; check that two definitions mean the same system; clean up metadata.

identify reads definitions, it cannot guess a system from bare coordinate numbers.

params

method string required

Allowed values: identify

wkt string

A WKT (1 or 2) or ESRI WKT definition — the content of a .prj file.

proj string

A PROJ string, e.g. +proj=utm +zone=30 +south +datum=WGS84 ….

(file) file

Instead of wkt/proj, upload or link the .prj file as the input (files / file_urls).

Advanced parameters (1)
min_score number 0–1 default 0.85

Minimum similarity for approximate matches.

Identify a .prj file
curl -X POST "https://api.geoczech.dev/v2/tool/coordinates" \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file_urls=https://cdn.geoczech.dev/docs-samples/v1/utm-zone-30s.prj" \
  --form-string 'params={
    "method": "identify",
    "response_type": "json"
  }' \
  -F "wait=true"
json_data
{
  "valid": true,
  "candidates": [
    {"code": "EPSG:32730", "name": "WGS 84 / UTM zone 30S", "confidence": 100}
  ],
  "code": "EPSG:32730",
  "name": "WGS 84 / UTM zone 30S",
  "confidence": "exact",
  "error": null
}
Identify a WKT string
curl -X POST "https://api.geoczech.dev/v2/tool/coordinates" \
  -H "X-API-Key: YOUR_API_KEY" \
  --form-string 'params={
    "method": "identify",
    "wkt": "PROJCS[\"British_National_Grid\",GEOGCS[\"GCS_OSGB_1936\",DATUM[\"D_OSGB_1936\",SPHEROID[\"Airy_1830\",6377563.396,299.3249646]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",400000.0],PARAMETER[\"False_Northing\",-100000.0],PARAMETER[\"Central_Meridian\",-2.0],PARAMETER[\"Scale_Factor\",0.9996012717],PARAMETER[\"Latitude_Of_Origin\",49.0],UNIT[\"Meter\",1.0]]",
    "response_type": "json"
  }' \
  -F "wait=true"
json_data
{
  "valid": true,
  "candidates": [{"code": "EPSG:27700", "name": "OSGB36 / British National Grid", "confidence": 100}],
  "code": "EPSG:27700",
  "name": "OSGB36 / British National Grid",
  "confidence": "exact"
}

Reading the identify result

Field Meaning
valid false when the definition could not be parsed (then see error).
candidates[] Matching systems, best first: code, name, confidence (0–100).
code, name The best match (same as the first candidate).
confidence exact when the definition matches an official one exactly.

info — how is it transformed?

Describes the transformation between two systems: which method is used, its accuracy, the area where it is valid and the exact PROJ pipeline. For specialists who need to document or verify how coordinates are recalculated. Between systems built on different datums (a national grid and WGS 84, for example) the answer lists every candidate datum transformation with its accuracy.

params

method string required

Allowed values: info

source_crs string required

The source system, e.g. EPSG:4326.

target_crs string required

The target system, e.g. EPSG:32730.

bbox array of 4 numbers

Limit to transformations valid in this area — [west, south, east, north] in degrees.

WGS 84 → UTM zone 30S
curl -X POST "https://api.geoczech.dev/v2/tool/coordinates" \
  -H "X-API-Key: YOUR_API_KEY" \
  --form-string 'params={
    "method": "info",
    "source_crs": "EPSG:4326",
    "target_crs": "EPSG:32730",
    "response_type": "json"
  }' \
  -F "wait=true"
json_data
{
  "source_crs": "EPSG:4326",
  "target_crs": "EPSG:32730",
  "transformation_info": "Candidate operations found: 1\n-------------------------------------\nOperation No. 1:\n\nEPSG:16130, UTM zone 30S, 0 m, Between 6°W and 0°W, southern hemisphere between 80°S and equator, onshore and offshore.\n\nPROJ string:\n+proj=pipeline\n  +step +proj=axisswap +order=2,1\n  +step +proj=unitconvert +xy_in=deg +xy_out=rad\n  +step +proj=utm +zone=30 +south +ellps=WGS84\n\nWKT2:2019 string:\n…"
}

convert — recalculate coordinates

Converts coordinates from one system to another. Three ways to give the input:

  1. One point as numbers — x and y (longitude/easting first).
  2. One point as text — input_string, in almost any notation people use: 15°55'40"S 5°42'58"W, -15.9277, -5.7161, POINT(-5.7161 -15.9277), or a location code like an MGRS reference or a Google Plus Code.
  3. A whole table — upload or link a CSV, TXT, XLSX or ODS file. The result is the same table with two new columns out_x and out_y.

Besides EPSG codes, target_crs can be a location code format: mgrs, geohash, olc (Google Plus Code), h3 or tile.

params

method string required

Allowed values: convert

source_crs string required

The system of your coordinates, e.g. EPSG:4326 for GPS. (Can be left out when input_string is a location code.)

target_crs string required

The system to convert to, e.g. EPSG:32730, or a code format (mgrs, geohash, olc, h3, tile).

x number or string

X of one point — longitude or easting.

y number or string

Y of one point — latitude or northing.

z number

Optional height.

input_string string

One point written as text (degrees-minutes-seconds, decimal, WKT POINT, MGRS, Plus Code …).

x_column string

For tables — the name of the X/longitude column. Detected automatically when left out.

y_column string

For tables — the name of the Y/latitude column.

Advanced parameters (1)
country_code string

For tables without a known system — a country hint for detecting columns and system.

GPS coordinates → UTM

Jamestown on the island of Saint Helena — longitude −5.7161, latitude −15.9277.

curl -X POST "https://api.geoczech.dev/v2/tool/coordinates" \
  -H "X-API-Key: YOUR_API_KEY" \
  --form-string 'params={
    "method": "convert",
    "x": -5.7161,
    "y": -15.9277,
    "source_crs": "EPSG:4326",
    "target_crs": "EPSG:32730",
    "response_type": "json"
  }' \
  -F "wait=true"
json_data
{
  "x": 209202.77816481248,
  "y": 8237169.498549077
}
Degrees, minutes, seconds as text
curl -X POST "https://api.geoczech.dev/v2/tool/coordinates" \
  -H "X-API-Key: YOUR_API_KEY" \
  --form-string 'params={
    "method": "convert",
    "input_string": "15°55'\''40\"S 5°42'\''58\"W",
    "source_crs": "EPSG:4326",
    "target_crs": "EPSG:32730",
    "response_type": "json"
  }' \
  -F "wait=true"
json_data
{
  "x": 209201.69991392607,
  "y": 8237160.87149308
}
A point → Google Plus Code
curl -X POST "https://api.geoczech.dev/v2/tool/coordinates" \
  -H "X-API-Key: YOUR_API_KEY" \
  --form-string 'params={
    "method": "convert",
    "x": -5.7161,
    "y": -15.9277,
    "source_crs": "EPSG:4326",
    "target_crs": "olc",
    "response_type": "json"
  }' \
  -F "wait=true"
json_data
{
  "result": "5CPP37CM+WH",
  "format": "olc"
}

Converting a whole table

Send the St Helena places CSV and name the coordinate columns. The result (in output_files) is a CSV with all original columns plus out_x and out_y (shown here rounded to centimetres):

id,name,category,kind,elevation,lon,lat,out_x,out_y
1,Bluemans Field,hamlet,settlement,551,-5.7355007,-15.9566585,207166.39,8233936.01
2,Bottom Woods,hamlet,settlement,455,-5.6713124,-15.9449421,214025.38,8235322.46
3,Deadwood,hamlet,settlement,509,-5.6890758,-15.9406434,212116.41,8235773.94
…

If the columns are not named, the tool looks for usual names (lon, lat, x, y, longitude, E, N …) and plausible values. If nothing is found, the file comes back unchanged without out_x/out_y.

Convert a CSV table
curl -X POST "https://api.geoczech.dev/v2/tool/coordinates" \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file_urls=https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.csv" \
  --form-string 'params={
    "method": "convert",
    "source_crs": "EPSG:4326",
    "target_crs": "EPSG:32730",
    "x_column": "lon",
    "y_column": "lat"
  }' \
  -F "wait=true"
Response
{
  "task_id": "e114b7c9-ce9f-42dd-8216-9af5e986f749",
  "status": "SUCCESS",
  "message": "Success",
  "duration_sec": 0.148,
  "output_files": ["https://…/output/converted_st-helena-places.csv?…"]
}

Good to know

  • Order is X, Y — longitude before latitude, easting before northing. In text you can use N/S/E/W letters and then the order does not matter.
  • Always send source_crs for numbers and text — without it the point is only parsed, not converted.
  • Location codes: what3words and Google Place IDs need your own API key of those services (w3w_api_key, google_api_key).
  • For converting the coordinates of whole GIS files (Shapefile, GeoPackage …) use the Converter with target_crs.

Last updated 2026-11-17