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(withresponse_type=json) - Typical response time: well under a second
- Price: free
search — find a coordinate system
Search by name, code or region, optionally limited to an area. Results are ranked by how often the system is used, so the usual choice comes first.
Use cases: offer a CRS picker in your app; find the UTM zone for a project area; find the national system of a country.
params
-
methodstring required -
Allowed values:
search -
qstring -
Text to search for — a name (
UTM zone 30S,British National Grid,Pseudo-Mercator), a code (EPSG:32730, or just32730) or a part of a name. -
bbox_latlonarray of 4 numbers -
Only systems usable in this area —
[west, south, east, north]in degrees (WGS 84). -
country_codestring -
Two-letter country code (
GB,DE…) — ranks systems by how often they are used in that country. -
purposestring defaultany -
Rank by how often a system is used for source data, target data, or both.
Allowed values:
any·input·output -
limitinteger default50 -
Maximum number of results.
-
offsetinteger default0 -
Skip this many results (for paging).
Advanced parameters (2)
-
overlap_min_pctnumber default0 -
With
bbox_latlon, the minimum overlap (in %) between your area and the system's area of use. -
bbox_nativearray of 4 numbers -
Area in the native coordinates of the candidate systems (
[minX, minY, maxX, maxY]).
curl -X POST "https://api.geoczech.dev/v2/tool/coordinates" \
-H "X-API-Key: YOUR_API_KEY" \
--form-string 'params={
"method": "search",
"q": "British National Grid",
"country_code": "GB",
"limit": 3,
"response_type": "json"
}' \
-F "wait=true"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/coordinates",
headers={"X-API-Key": API_KEY},
files={
"params": (None, json.dumps({
"method": "search",
"q": "British National Grid",
"country_code": "GB",
"limit": 3,
"response_type": "json",
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("params", JSON.stringify({
"method": "search",
"q": "British National Grid",
"country_code": "GB",
"limit": 3,
"response_type": "json"
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/coordinates", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/coordinates");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"params" => json_encode([
"method" => "search",
"q" => "British National Grid",
"country_code" => "GB",
"limit" => 3,
"response_type" => "json",
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("""
{
"method": "search",
"q": "British National Grid",
"country_code": "GB",
"limit": 3,
"response_type": "json"
}
"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/coordinates", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"total": 3,
"limit": 3,
"offset": 0,
"results": [
{
"code": "EPSG:27700",
"name": "OSGB36 / British National Grid",
"type": "Projected CRS",
"area": "United Kingdom (UK) - offshore to boundary of UKCS within 49°45'N to 61°N and 9°W to 2°E; onshore Great Britain (England, Wales and Scotland). Isle of Man onshore.",
"unit": "metre",
"proj4": "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +units=m +no_defs +type=crs",
"wkt": "PROJCS[\"OSGB36 / British National Grid\", …]",
"wkt2": "PROJCRS[\"OSGB36 / British National Grid\", …]",
"esri_wkt": "PROJCS[\"British_National_Grid\", …]"
},
{"code": "EPSG:7405", "name": "OSGB36 / British National Grid + ODN height", "type": "Compound CRS", "unit": "metre", "…": "…"},
{"code": "EPSG:9920", "name": "OSGB36 / British National Grid + BI height", "type": "Compound CRS", "unit": "metre", "…": "…"}
]
}
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
-
methodstring required -
Allowed values:
detail -
crsstring required -
The code, e.g.
EPSG:32730,ESRI:102100or just32730. -
formatsstring defaultall -
Which definitions to include, comma-separated, e.g.
"proj4,wkt2".Allowed values:
proj4·wkt2·wkt1·projjson
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/coordinates",
headers={"X-API-Key": API_KEY},
files={
"params": (None, json.dumps({
"method": "detail",
"crs": "EPSG:32730",
"formats": "proj4",
"response_type": "json",
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("params", JSON.stringify({
"method": "detail",
"crs": "EPSG:32730",
"formats": "proj4",
"response_type": "json"
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/coordinates", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/coordinates");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"params" => json_encode([
"method" => "detail",
"crs" => "EPSG:32730",
"formats" => "proj4",
"response_type" => "json",
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("""
{
"method": "detail",
"crs": "EPSG:32730",
"formats": "proj4",
"response_type": "json"
}
"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/coordinates", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"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
-
methodstring required -
Allowed values:
identify -
wktstring -
A WKT (1 or 2) or ESRI WKT definition — the content of a
.prjfile. -
projstring -
A PROJ string, e.g.
+proj=utm +zone=30 +south +datum=WGS84 …. -
(file)file -
Instead of
wkt/proj, upload or link the.prjfile as the input (files/file_urls).
Advanced parameters (1)
-
min_scorenumber 0–1 default0.85 -
Minimum similarity for approximate matches.
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/coordinates",
headers={"X-API-Key": API_KEY},
files={
"file_urls": (None, "https://cdn.geoczech.dev/docs-samples/v1/utm-zone-30s.prj"),
"params": (None, json.dumps({
"method": "identify",
"response_type": "json",
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("file_urls", "https://cdn.geoczech.dev/docs-samples/v1/utm-zone-30s.prj");
form.append("params", JSON.stringify({
"method": "identify",
"response_type": "json"
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/coordinates", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/coordinates");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"file_urls" => "https://cdn.geoczech.dev/docs-samples/v1/utm-zone-30s.prj",
"params" => json_encode([
"method" => "identify",
"response_type" => "json",
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("https://cdn.geoczech.dev/docs-samples/v1/utm-zone-30s.prj"), "file_urls");
form.Add(new StringContent("""{"method": "identify", "response_type": "json"}"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/coordinates", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"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
}
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/coordinates",
headers={"X-API-Key": API_KEY},
files={
"params": (None, json.dumps({
"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",
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("params", JSON.stringify({
"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"
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/coordinates", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/coordinates");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"params" => json_encode([
"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",
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("""
{
"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"
}
"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/coordinates", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"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
-
methodstring required -
Allowed values:
info -
source_crsstring required -
The source system, e.g.
EPSG:4326. -
target_crsstring required -
The target system, e.g.
EPSG:32730. -
bboxarray of 4 numbers -
Limit to transformations valid in this area —
[west, south, east, north]in degrees.
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/coordinates",
headers={"X-API-Key": API_KEY},
files={
"params": (None, json.dumps({
"method": "info",
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"response_type": "json",
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("params", JSON.stringify({
"method": "info",
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"response_type": "json"
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/coordinates", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/coordinates");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"params" => json_encode([
"method" => "info",
"source_crs" => "EPSG:4326",
"target_crs" => "EPSG:32730",
"response_type" => "json",
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("""
{
"method": "info",
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"response_type": "json"
}
"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/coordinates", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"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:
- One point as numbers —
xandy(longitude/easting first). - 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. - A whole table — upload or link a CSV, TXT, XLSX or ODS file. The result is the
same table with two new columns
out_xandout_y.
Besides EPSG codes, target_crs can be a location code format: mgrs,
geohash, olc (Google Plus Code), h3 or tile.
params
-
methodstring required -
Allowed values:
convert -
source_crsstring required -
The system of your coordinates, e.g.
EPSG:4326for GPS. (Can be left out wheninput_stringis a location code.) -
target_crsstring required -
The system to convert to, e.g.
EPSG:32730, or a code format (mgrs,geohash,olc,h3,tile). -
xnumber or string -
X of one point — longitude or easting.
-
ynumber or string -
Y of one point — latitude or northing.
-
znumber -
Optional height.
-
input_stringstring -
One point written as text (degrees-minutes-seconds, decimal, WKT
POINT, MGRS, Plus Code …). -
x_columnstring -
For tables — the name of the X/longitude column. Detected automatically when left out.
-
y_columnstring -
For tables — the name of the Y/latitude column.
Advanced parameters (1)
-
country_codestring -
For tables without a known system — a country hint for detecting columns and system.
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/coordinates",
headers={"X-API-Key": API_KEY},
files={
"params": (None, json.dumps({
"method": "convert",
"x": -5.7161,
"y": -15.9277,
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"response_type": "json",
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("params", JSON.stringify({
"method": "convert",
"x": -5.7161,
"y": -15.9277,
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"response_type": "json"
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/coordinates", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/coordinates");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"params" => json_encode([
"method" => "convert",
"x" => -5.7161,
"y" => -15.9277,
"source_crs" => "EPSG:4326",
"target_crs" => "EPSG:32730",
"response_type" => "json",
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("""
{
"method": "convert",
"x": -5.7161,
"y": -15.9277,
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"response_type": "json"
}
"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/coordinates", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"x": 209202.77816481248,
"y": 8237169.498549077
}
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/coordinates",
headers={"X-API-Key": API_KEY},
files={
"params": (None, json.dumps({
"method": "convert",
"input_string": "15°55'40\"S 5°42'58\"W",
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"response_type": "json",
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("params", JSON.stringify({
"method": "convert",
"input_string": "15°55'40\"S 5°42'58\"W",
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"response_type": "json"
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/coordinates", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/coordinates");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"params" => json_encode([
"method" => "convert",
"input_string" => "15°55'40\"S 5°42'58\"W",
"source_crs" => "EPSG:4326",
"target_crs" => "EPSG:32730",
"response_type" => "json",
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("""
{
"method": "convert",
"input_string": "15°55'40\"S 5°42'58\"W",
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"response_type": "json"
}
"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/coordinates", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"x": 209201.69991392607,
"y": 8237160.87149308
}
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/coordinates",
headers={"X-API-Key": API_KEY},
files={
"params": (None, json.dumps({
"method": "convert",
"x": -5.7161,
"y": -15.9277,
"source_crs": "EPSG:4326",
"target_crs": "olc",
"response_type": "json",
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("params", JSON.stringify({
"method": "convert",
"x": -5.7161,
"y": -15.9277,
"source_crs": "EPSG:4326",
"target_crs": "olc",
"response_type": "json"
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/coordinates", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/coordinates");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"params" => json_encode([
"method" => "convert",
"x" => -5.7161,
"y" => -15.9277,
"source_crs" => "EPSG:4326",
"target_crs" => "olc",
"response_type" => "json",
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("""
{
"method": "convert",
"x": -5.7161,
"y": -15.9277,
"source_crs": "EPSG:4326",
"target_crs": "olc",
"response_type": "json"
}
"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/coordinates", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"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.
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/coordinates",
headers={"X-API-Key": API_KEY},
files={
"file_urls": (None, "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.csv"),
"params": (None, json.dumps({
"method": "convert",
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"x_column": "lon",
"y_column": "lat",
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("file_urls", "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.csv");
form.append("params", JSON.stringify({
"method": "convert",
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"x_column": "lon",
"y_column": "lat"
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/coordinates", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/coordinates");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"file_urls" => "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.csv",
"params" => json_encode([
"method" => "convert",
"source_crs" => "EPSG:4326",
"target_crs" => "EPSG:32730",
"x_column" => "lon",
"y_column" => "lat",
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.csv"), "file_urls");
form.Add(new StringContent("""
{
"method": "convert",
"source_crs": "EPSG:4326",
"target_crs": "EPSG:32730",
"x_column": "lon",
"y_column": "lat"
}
"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/coordinates", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"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/Wletters and then the order does not matter. - Always send
source_crsfor 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