Esc
GETAPI key
Road path between two points
GETapi.navo24.com/v1/parcel/path
Road geometry between two lat,lng points on the Navo road graph (Distance & Time), so a parcel map draws the road and not a straight line. coords trimmed in the example.
Query parameters
from
Start as lat,lng.
to
End as lat,lng.
Response schema
4 fields
Derived from the example response, nested as the JSON is.
data
The payload. Everything an endpoint returns sits under this key.
km
hours
coords
Errors
A failure carries { "ok": false, "error": { "code", "message", "severity" } }. Branch on the code, and log the message.
missing_key
No key in Authorization or x-api-key.
invalid_key
The key is unknown or revoked.
rate_limited
More than 40 requests in one minute from one client.
invalid_point
from or to is not lat,lng.
no_route
No road route between these points.
curl 'https://api.navo24.com/v1/parcel/path?from=52.2297%2C21.0122&to=52.5200%2C13.4050' \
-H "Authorization: Bearer tmcp_YOUR_API_KEY"const res = await fetch("https://api.navo24.com/v1/parcel/path?from=52.2297%2C21.0122&to=52.5200%2C13.4050", {
headers: {
"Authorization": "Bearer tmcp_YOUR_API_KEY"
}
});
const data = await res.json();import requests
res = requests.get(
"https://api.navo24.com/v1/parcel/path?from=52.2297%2C21.0122&to=52.5200%2C13.4050",
headers={"Authorization": "Bearer tmcp_YOUR_API_KEY"},
)
data = res.json()Response
{
"data": {
"km": 572.9,
"hours": 7.3,
"coords": [
[
21.01226,
52.22969
],
[
21.01204,
52.23009
]
]
}
}