Reverse geocoding
Nearest places to a coordinate, closest first, with the distance in km. Filter by kind to answer "which port or rail terminal is nearest to this warehouse". The example is a point in central Odesa.
Query parameters
Latitude, -90 to 90.
Longitude, -180 to 180. lon is accepted too.
Comma-separated place kinds: city, port, airport, rail, logistics, region, country. Omit for all kinds.
Search radius, 0.1 to 200 km. Default 50.
Results, 1 to 50. Default 5.
Response schema
12 fields
Derived from the example response, nested as the JSON is.
The payload. Everything an endpoint returns sits under this key.
data[]
Stable identifier for the record. On the tracking endpoints this is the container UUID, except on a portfolio summary row, where it is the container number.
carrier_event when a carrier filed it, trackingmcp_inference when we derived the step from surrounding events.
Human-readable name.
ISO 3166-1 alpha-2 country code.
Country name.
Latitude.
Longitude.
UN/LOCODE of the place.
Errors
A failure carries { "ok": false, "error": { "code", "message", "severity" } }. Branch on the code, and log the message.
No Authorization: Bearer *** or X-API-Key header.
The key was not recognised.
lat or lng is missing, not a number, or out of range.
More than 120 requests in one minute from one IP.
curl 'https://api.navo24.com/v1/geo/reverse?lat=46.4848&lng=30.7417&kinds=port%2Crail&radius_km=50&limit=2' \
-H "Authorization: Bearer tmcp_YOUR_API_KEY"const res = await fetch("https://api.navo24.com/v1/geo/reverse?lat=46.4848&lng=30.7417&kinds=port%2Crail&radius_km=50&limit=2", {
headers: {
"Authorization": "Bearer tmcp_YOUR_API_KEY"
}
});
const data = await res.json();import requests
res = requests.get(
"https://api.navo24.com/v1/geo/reverse?lat=46.4848&lng=30.7417&kinds=port%2Crail&radius_km=50&limit=2",
headers={"Authorization": "Bearer tmcp_YOUR_API_KEY"},
)
data = res.json() {
"data": [
{
"id": 698740,
"kind": "city",
"name": "Odesa",
"country_code": "UA",
"country": "Ukraine",
"lat": 46.48572,
"lng": 30.74383,
"population": 1010537,
"locode": "UAODS",
"distance_km": 0.192
},
{
"id": 698733,
"kind": "rail",
"name": "Odesa-Port",
"country_code": "UA",
"country": "Ukraine",
"lat": 46.48755,
"lng": 30.74501,
"esr": "400305",
"distance_km": 0.397
}
],
"took_ms": 2.4
}