osrmroute
DocsQuickstart
Documentation

Road Data API

Speed limits, road attributes and traffic-sign observations within available coverage.

Business · Enterprise

Road data: 100,000 operations / month · Road data: custom allowance

One point lookup or one page of up to 100 signs uses one operation. Batch requests use one operation per point (maximum 50). No additional API credits, rollover or automatic overage charges. Business: 120 requests/minute, shared across all keys.

Coverage is partial. Unknown speed limits remain null; source sign observations do not override road rules.

Speed lookup currently covers Azerbaijan, Qatar and the imported Prague area. Sign observations have separate, partial coverage.

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

API reference

Speed and road attributes

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}]}'
Response
{
  "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
}

Road speed limit lookup

Read the mapped passenger-car speed limit near a coordinate. A missing or ambiguous limit returns null.

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

HTTP 200 · 1 Request credits · speed_limit: number | null · km/h

Speed lookup currently covers Azerbaijan, Qatar and the imported Prague area. Sign observations have separate, partial coverage.

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"

Road Signs API

Find road sign observations within a map area. Retrieve sign classifications, coordinates, directions and observation dates with cursor pagination.

Up to 100 observations per page. One successful page uses one Road Data operation. Business and Enterprise share this allowance with road lookups and batches.

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

Response
{
  "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
}

Route compliance evidence

Compare a planned or caller-matched route with indexed road-speed evidence before dispatch, or retain a source-qualified report with a delivery.

Each submitted position is evaluated independently. Uncovered positions are explicit and refunded; conditional, variable and unknown limits remain unknown. This is not navigation guidance, legal clearance or live traffic.

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]]}'
Response
{
  "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
}

Account usage

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 '{}'
Response
{
  "limit": 100000,
  "used": 100,
  "reserved": 0,
  "remaining": 99900,
  "requests_per_minute": 120,
  "resets_at": "2026-11-01T00:00:00Z"
}

OSRMRoute Support

Talk directly to our team

HERE TO HELP

How can we help?

Send a message. Ticket replies are also sent to your verified email.

Your chats

Your chats will appear here.