osrmroute
DokümanlarHızlı başlangıç
Belgeler

Yol Verileri API

Mevcut kapsamda hız sınırları, yol özellikleri ve trafik işareti gözlemleri.

Business · Enterprise

Yol verileri: ayda 100.000 işlem · Yol verileri: özel limit

Bir koordinat sorgusu veya en fazla 100 işaretlik bir sayfa 1 işlemdir. Toplu sorguda her nokta ayrı sayılır (en fazla 50). Ek API kredisi, devir veya otomatik aşım ücreti yoktur. Business: tüm anahtarlar için ortak 120 istek/dakika.

Kapsam kısmidir. Bilinmeyen hız sınırı null kalır; işaret gözlemleri yol kurallarını değiştirmez.

Hız sorgusu şu anda Azerbaycan, Katar ve içe aktarılan Prag bölgesini kapsar. İşaret gözlemlerinin kapsamı ayrı ve kısmidir.

Authorization: Bearer YOUR_API_KEY · scope: speed-limit · application/json · ≤ 16 KiB

API referansı

Hız ve yol özellikleri

POST /api/v1/roads/lookup
curl -X POST https://osrmroute.com/api/v1/roads/lookup \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"lat":25.2854,"lon":51.531,"radius":35}'
POST /api/v1/roads/batch · points: 1–50
curl -X POST https://osrmroute.com/api/v1/roads/batch \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"points":[{"lat":25.2854,"lon":51.531},{"lat":40.4093,"lon":49.8671}]}'
Yanıt
{
  "data": {
    "point": {
      "lat": 40.4093,
      "lon": 49.8671
    },
    "country_code": "AZ",
    "speed_limit": null,
    "unit": "km/h",
    "status": "no_matching_road",
    "reason": "No compatible road was found inside the requested radius.",
    "road": null,
    "source": null,
    "alternatives": [],
    "note": "Mapped road limit from the source dataset. Unknown, ambiguous, variable and conditional limits return null. Unverified image detections and routing travel speeds are not used as legal road limits."
  },
  "operations": 1
}

Yol hız sınırı sorgusu

Koordinata yakın yolun haritalanmış otomobil hız sınırını alın. Sınır eksik veya belirsizse sonuç null olur.

point=lat,lon | lat + lon · radius: 5–100 m (35 m) · heading: 0–<360° · osm_way_id

HTTP 200 · 1 İstek kredileri · speed_limit: number | null · km/h

Hız sorgusu şu anda Azerbaycan, Katar ve içe aktarılan Prag bölgesini kapsar. İşaret gözlemlerinin kapsamı ayrı ve kısmidir.

GET /api/1/speed-limit
curl --fail-with-body "https://osrmroute.com/api/1/speed-limit?lat=25.3812&lon=51.5193" -H "Authorization: Bearer $OSRMROUTE_API_KEY"

Yol İşaretleri API

Seçilen harita alanındaki yol işareti gözlemlerini bulun. İşaret sınıfları, koordinatlar, yönler ve gözlem tarihlerini imleçli sayfalama ile alın.

Sayfa başına en fazla 100 gözlem. Başarılı bir sayfa bir Yol Verileri işlemi kullanır. Business ve Enterprise bu kotayı yol sorguları ve toplu sorgularla paylaşır.

POST /api/v1/roads/signs
curl -X POST https://osrmroute.com/api/v1/roads/signs \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"country":"DE","bbox":[13.4,52.51,13.402,52.512],"limit":100}'

bbox: [west, south, east, north] · Δlongitude ≤ 0.05° · Δlatitude ≤ 0.025° · cursor: next_cursor

Yanıt
{
  "data": {
    "observations": [],
    "next_cursor": null,
    "coverage": "partial_source_observations",
    "note": "Source observations are not confirmed road rules. No observations does not establish absence of signs. Import time is not observation time."
  },
  "operations": 1
}

Rota uygunluk kanıtı

Sevkten önce planlanan veya çağıranın eşlediği rotayı indekslenmiş yol hızı kanıtıyla karşılaştırın.

Her konum ayrı değerlendirilir. Kapsanmayan konumlar açıkça döner ve iade edilir; koşullu, değişken ve bilinmeyen limitler bilinmeyen kalır. Bu navigasyon, hukuki izin veya canlı trafik değildir.

scope: speed-limit · coordinates: 2–50 · maximum submitted straight-line route length: 500 km

POST /api/v1/roads/compliance
curl -X POST https://osrmroute.com/api/v1/roads/compliance \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"route_kind":"planned","coordinates":[[49.8516,40.3755],[49.86,40.38],[49.8671,40.4093]]}'
Yanıt
{
  "data": {
    "route_kind": "planned",
    "coverage": "partial_indexed_observations",
    "samples": [
      {
        "position_index": 0,
        "submitted_position": [
          51.531,
          25.2854
        ],
        "status": "unknown",
        "speed_limit": null,
        "speed_limit_status": "unknown",
        "reason": "No explicit speed limit is mapped on this road.",
        "country_code": "QA",
        "road": null,
        "source": null
      }
    ],
    "segments": [
      {
        "from_position_index": 0,
        "to_position_index": 0,
        "status": "unknown",
        "country_code": "QA",
        "speed_limit": null,
        "speed_limit_status": "unknown",
        "road": null,
        "source": null
      }
    ],
    "sign_observations": {
      "status": "unavailable",
      "coverage_by_country": [],
      "unavailable_position_indexes": [
        0,
        1
      ],
      "observations": [],
      "note": "Road-sign observations are unavailable because this source has not been enabled. This does not establish that signs are absent."
    },
    "note": "Evidence is limited to submitted positions and indexed source data. It is not comprehensive road-rule coverage, legal clearance, navigation guidance, safety advice, real-time data, or proof that an observation or rule is absent."
  },
  "operations": 2
}

Hesap kullanımı

POST /api/v1/roads/usage
curl -X POST https://osrmroute.com/api/v1/roads/usage \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{}'
Yanıt
{
  "limit": 100000,
  "used": 100,
  "reserved": 0,
  "remaining": 99900,
  "requests_per_minute": 120,
  "resets_at": "2026-11-01T00:00:00Z"
}

OSRMRoute Destek

Ekibimize doğrudan yazın

YARDIMA HAZIRIZ

Nasıl yardımcı olabiliriz?

Mesaj gönderin. Talep yanıtları doğrulanmış e-posta adresinize de gönderilir.

Sohbetleriniz

Sohbetleriniz burada görünecek.