/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/polyline-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/polyline-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/polyline-api/v1/meta");
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/polyline-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"name": "Polyline API",
"notes": "Precision 5 is the Google Maps default; Valhalla/OSRM-overview often use 6. Pure local computation, nothing stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/decode",
"params": {
"polyline": "encoded string (required)",
"precision": "1-12, default 5"
},
"returns": "array of {lat,lng}"
},
{
"path": "/v1/encode",
"params": {
"precision": "1-12, default 5",
"coordinates": "JSON array of [lat,lng] pairs (required)"
},
"returns": "encoded polyline string"
},
{
"path": "/v1/info",
"params": {
"polyline": "encoded string (required)",
"precision": "1-12, default 5"
},
"returns": "point_count, length (km+miles, haversine), bounding box"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Encode and decode Google/Mapbox encoded polylines and measure the resulting path."
},
"meta": {
"timestamp": "2026-06-02T16:51:50.823Z",
"request_id": "7173826c-6b85-4396-87ff-48fa33931dd1"
},
"status": "ok",
"message": "Meta",
"success": true
}