Μετάβαση στο περιεχόμενο
GET /v1/resistance

Grade and curve resistance

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/railway-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/railway-api/v1/resistance" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/railway-api/v1/resistance", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/railway-api/v1/resistance");
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/railway-api/v1/resistance",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "note": "Grade resistance is the dominant force on a hill: about 20 lb per ton per 1 % of grade (it is just the weight component along the slope), so a 5,000-ton train on a 1 % grade fights 100,000 lbf before it even rolls. Curve resistance adds roughly 0.8 lb per ton per degree of curve from wheel-flange friction. This excludes the speed-dependent rolling/air resistance (the Davis equation), which dominates on the flat at speed.",
        "inputs": {
            "grade_pct": 1,
            "curve_degrees": 2,
            "train_weight_tons": 5000
        },
        "curve_resistance_lbf": 8000,
        "grade_resistance_lbf": 100000,
        "total_resistance_lbf": 108000
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:58.201Z",
        "request_id": "ff365eab-6c3d-44e9-abe2-2f1f144f5038"
    },
    "status": "ok",
    "message": "Resistance",
    "success": true
}