osrmroute-com Road speed limits API

The Road speed limits API from osrmroute-com — 1 operation(s) for road speed limits.

Operations 1

GET /api/1/speed-limit Get the mapped passenger-car speed limit for a road near a coordinate #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/osrmroute-com:osrmroute-com-road-speed-limits-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

osrmroute-com-road-speed-limits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OSRMRoute Road speed limits API
  version: 1.1.0
  description: 'OSRMRoute — Maps, Routing, Truck Routing, Search, Road Data, Studio and integration APIs. Use `Authorization: Bearer ` unless an operation documents another flow. Legacy APIs also accept the key query parameter; New geospatial APIs, MCP and private map delivery require Bearer authentication. Mobile challenge/token endpoints use device attestation instead. Coordinates and units are documented per operation: GeoJSON uses longitude,latitude; some legacy and background-job inputs use latitude,longitude. Examples are illustrative, not guaranteed current results. Guides · Mobile Access · MCP · Postman collection.'
  contact:
    name: OSRMRoute Support
    url: https://osrmroute.com/contact
    email: support@osrmroute.com
  termsOfService: https://osrmroute.com/terms
servers:
- url: https://osrmroute.com
security:
- bearerAuth: []
- apiKeyQuery: []
tags:
- name: Road speed limits
paths:
  /api/1/speed-limit:
    get:
      tags:
      - Road speed limits
      summary: Get the mapped passenger-car speed limit for a road near a coordinate
      operationId: get_speed_limit
      description: Explicit OpenStreetMap road limits for Qatar, Azerbaijan and the indexed Prague area. Returns null for missing, ambiguous, direction-dependent, variable or conditional rules. Does not infer a limit from nearby unverified signs or OSRM travel speeds. One credit per successful lookup, including unknown results. Invalid queries, unavailable coverage and server failures are refunded.
      x-credit-cost: 1 credit
      parameters:
      - name: point
        in: query
        schema:
          type: string
        example: 25.381245183194284,51.51926522703756
        description: Latitude,longitude. Supply point or both lat and lon.
      - name: lat
        in: query
        schema:
          type: number
          minimum: -90
          maximum: 90
      - name: lon
        in: query
        schema:
          type: number
          minimum: -180
          maximum: 180
      - name: heading
        in: query
        schema:
          type: number
          minimum: 0
          exclusiveMaximum: 360
        description: Travel heading in degrees clockwise from north; used for carriageway and direction selection.
      - name: radius
        in: query
        schema:
          type: number
          minimum: 5
          maximum: 100
          default: 35
        description: Maximum road matching distance in metres.
      - name: osm_way_id
        in: query
        schema:
          type: string
          pattern: ^[1-9]\d{0,17}$
        description: Optional road identity to resolve nearby roads. The way must still be inside the radius and compatible with heading.
      responses:
        '200':
          description: Road lookup result; speed_limit is nullable and expressed in km/h. Source metadata identifies the mapped rule.
          content:
            application/json:
              schema:
                type: object
                required:
                - speed_limit
                - unit
                - status
                - country_code
                properties:
                  speed_limit:
                    type:
                    - number
                    - 'null'
                  unit:
                    type: string
                    enum:
                    - km/h
                  status:
                    type: string
                    enum:
                    - known
                    - unknown
                    - no_matching_road
                    - ambiguous_road
                    - direction_required
                    - conditional
                    - variable
                    - no_fixed_limit
                  country_code:
                    type: string
                    enum:
                    - QA
                    - AZ
                    - CZ
                  road:
                    type:
                    - object
                    - 'null'
                  source:
                    type:
                    - object
                    - 'null'
        '400':
          description: InvalidSpeedLimitQuery. Invalid coordinates or parameters; no credits consumed.
        '401':
          description: Missing or invalid API key
        '403':
          description: Key access restrictions
        '422':
          description: SpeedLimitCoverageUnavailable. Outside the indexed countries/areas; no credits consumed.
        '429':
          description: Rate or credit limit exceeded
        '503':
          description: SpeedLimitServiceUnavailable. No credits consumed.
components:
  securitySchemes:
    apiKeyQuery:
      type: apiKey
      in: query
      name: key
    bearerAuth:
      type: http
      scheme: bearer