Skip to content
GET /v1/cross-track

Cross-track / along-track

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/geodesy-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/geodesy-api/v1/cross-track" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/geodesy-api/v1/cross-track", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/geodesy-api/v1/cross-track");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/geodesy-api/v1/cross-track",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "side": "left of path",
        "point": [
            53.2611,
            -0.7972
        ],
        "path_end": [
            53.1887,
            0.1334
        ],
        "path_start": [
            53.3206,
            -1.7297
        ],
        "along_track_distance_m": 62331.579,
        "cross_track_distance_m": -307.55
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:04.936Z",
        "request_id": "8d79482f-e9ff-45e4-9a31-f47497df69bb"
    },
    "status": "ok",
    "message": "Cross-track",
    "success": true
}