osrmroute-com Dataset Query API

The Dataset Query API API from osrmroute-com — 1 operation(s) for dataset query api.

Operations 1

POST /api/v1/maps/datasets/{id}/query Query an owned map dataset #

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-dataset-query-api-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-dataset-query-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OSRMRoute Dataset Query 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: Dataset Query API
paths:
  /api/v1/maps/datasets/{id}/query:
    parameters:
    - in: path
      name: id
      required: true
      schema:
        type: string
        format: uuid
    post:
      tags:
      - Dataset Query API
      operationId: queryMapDataset
      summary: Query an owned map dataset
      description: Maps scope. 1 credit per successful query, including empty results. Returns nearest points with estimated local equirectangular distances. Only the key owner can access the dataset. Sixty requests/minute/key, 2 KiB body. Polygon holes are excluded.
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                point:
                  type: array
                  minItems: 2
                  maxItems: 2
                  items:
                    type: number
                  description: '[longitude, latitude] in decimal degrees. Request bounds: longitude ±180, latitude ±85.'
                radius:
                  type: number
                  minimum: 0
                  maximum: 50000
                  default: 0
                limit:
                  type: integer
                  minimum: 1
                  maximum: 50
                  default: 10
              required:
              - point
            examples:
              request:
                value:
                  point:
                  - 49.8671
                  - 40.4093
                  radius: 1000
                  limit: 10
      responses:
        '200':
          description: Success. Examples are illustrative; results vary with input and source data.
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                    - FeatureCollection
                  features:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                          - Feature
                        id:
                          oneOf:
                          - type: string
                          - type: number
                        geometry:
                          type: object
                          properties:
                            type:
                              type: string
                              enum:
                              - Point
                            coordinates:
                              type: array
                              minItems: 2
                              maxItems: 2
                              items:
                                type: number
                              description: '[longitude, latitude] in decimal degrees. Request bounds: longitude ±180, latitude ±85.'
                          required:
                          - type
                          - coordinates
                        properties:
                          type: object
                          properties:
                            query:
                              type: object
                              properties:
                                distance_m:
                                  type: number
                                geometry_type:
                                  type: string
                              required:
                              - distance_m
                              - geometry_type
                          required:
                          - query
                          additionalProperties: true
                      required:
                      - type
                      - id
                      - geometry
                      - properties
                  returned:
                    type: integer
                    minimum: 0
                  matched:
                    type: integer
                    minimum: 0
                  distance_model:
                    type: string
                    enum:
                    - local_equirectangular
                  distance_units:
                    type: string
                    enum:
                    - meters
                required:
                - type
                - features
                - returned
                - matched
                - distance_model
                - distance_units
              example:
                type: FeatureCollection
                features: []
                returned: 0
                matched: 0
                distance_model: local_equirectangular
                distance_units: meters
        '400':
          description: Invalid input. `invalid_query`, `invalid_point`, `invalid_radius`, `invalid_limit` Failed operations are not charged.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  problem_code:
                    type: string
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 0
                  detail:
                    type: string
                  instance:
                    type: string
                  request_id:
                    type: string
                    format: uuid
                  retryable:
                    type: boolean
                required:
                - error
                - code
                - problem_code
                - type
                - title
                - status
                - detail
                - instance
                - request_id
                - retryable
              example:
                error: invalid_query
                code: invalid_query
                problem_code: invalid_query
                type: https://osrmroute.com/docs/platform#invalid_query
                title: Request failed
                status: 400
                detail: invalid_query
                instance: urn:uuid:00000000-0000-4000-8000-000000000001
                request_id: 00000000-0000-4000-8000-000000000001
                retryable: false
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '401':
          description: Missing or invalid authentication. See the returned error code. Failed operations are not charged.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  problem_code:
                    type: string
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 0
                  detail:
                    type: string
                  instance:
                    type: string
                  request_id:
                    type: string
                    format: uuid
                  retryable:
                    type: boolean
                required:
                - error
                - code
                - problem_code
                - type
                - title
                - status
                - detail
                - instance
                - request_id
                - retryable
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '402':
          description: Insufficient credits. See the returned error code. Failed operations are not charged.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  problem_code:
                    type: string
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 0
                  detail:
                    type: string
                  instance:
                    type: string
                  request_id:
                    type: string
                    format: uuid
                  retryable:
                    type: boolean
                required:
                - error
                - code
                - problem_code
                - type
                - title
                - status
                - detail
                - instance
                - request_id
                - retryable
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '403':
          description: Scope, account or plan restriction. See the returned error code. Failed operations are not charged.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  problem_code:
                    type: string
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 0
                  detail:
                    type: string
                  instance:
                    type: string
                  request_id:
                    type: string
                    format: uuid
                  retryable:
                    type: boolean
                required:
                - error
                - code
                - problem_code
                - type
                - title
                - status
                - detail
                - instance
                - request_id
                - retryable
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: Resource not found. `dataset_not_found` Failed operations are not charged.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  problem_code:
                    type: string
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 0
                  detail:
                    type: string
                  instance:
                    type: string
                  request_id:
                    type: string
                    format: uuid
                  retryable:
                    type: boolean
                required:
                - error
                - code
                - problem_code
                - type
                - title
                - status
                - detail
                - instance
                - request_id
                - retryable
              example:
                error: dataset_not_found
                code: dataset_not_found
                problem_code: dataset_not_found
                type: https://osrmroute.com/docs/platform#dataset_not_found
                title: Request failed
                status: 404
                detail: dataset_not_found
                instance: urn:uuid:00000000-0000-4000-8000-000000000001
                request_id: 00000000-0000-4000-8000-000000000001
                retryable: false
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '413':
          description: Payload too large. See the returned error code. Failed operations are not charged.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  problem_code:
                    type: string
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 0
                  detail:
                    type: string
                  instance:
                    type: string
                  request_id:
                    type: string
                    format: uuid
                  retryable:
                    type: boolean
                required:
                - error
                - code
                - problem_code
                - type
                - title
                - status
                - detail
                - instance
                - request_id
                - retryable
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '422':
          description: Request cannot be fulfilled. `unsupported_geometry` Failed operations are not charged.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  problem_code:
                    type: string
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 0
                  detail:
                    type: string
                  instance:
                    type: string
                  request_id:
                    type: string
                    format: uuid
                  retryable:
                    type: boolean
                required:
                - error
                - code
                - problem_code
                - type
                - title
                - status
                - detail
                - instance
                - request_id
                - retryable
              example:
                error: unsupported_geometry
                code: unsupported_geometry
                problem_code: unsupported_geometry
                type: https://osrmroute.com/docs/platform#unsupported_geometry
                title: Request failed
                status: 422
                detail: unsupported_geometry
                instance: urn:uuid:00000000-0000-4000-8000-000000000001
                request_id: 00000000-0000-4000-8000-000000000001
                retryable: false
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '429':
          description: Rate, quota or concurrency limit. See the returned error code. Failed operations are not charged.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  problem_code:
                    type: string
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 0
                  detail:
                    type: string
                  instance:
                    type: string
                  request_id:
                    type: string
                    format: uuid
                  retryable:
                    type: boolean
                required:
                - error
                - code
                - problem_code
                - type
                - title
                - status
                - detail
                - instance
                - request_id
                - retryable
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '502':
          description: Invalid or unavailable upstream. See the returned error code. Failed operations are not charged.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  problem_code:
                    type: string
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 0
                  detail:
                    type: string
                  instance:
                    type: string
                  request_id:
                    type: string
                    format: uuid
                  retryable:
                    type: boolean
                required:
                - error
                - code
                - problem_code
                - type
                - title
                - status
                - detail
                - instance
                - request_id
                - retryable
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '503':
          description: Service temporarily unavailable. See the returned error code. Failed operations are not charged.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  problem_code:
                    type: string
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 0
                  detail:
                    type: string
                  instance:
                    type: string
                  request_id:
                    type: string
                    format: uuid
                  retryable:
                    type: boolean
                required:
                - error
                - code
                - problem_code
                - type
                - title
                - status
                - detail
                - instance
                - request_id
                - retryable
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
components:
  securitySchemes:
    apiKeyQuery:
      type: apiKey
      in: query
      name: key
    bearerAuth:
      type: http
      scheme: bearer