Rijwind Routing API

Turn-by-turn directions, travel-time matrices, and reachable-area isochrones.

GitHub OpenAPI

Operations 6

POST /directions-matrix/v1 Travel-time matrix #
POST /directions/v1 Turn-by-turn directions #
POST /isochrone/v1 Reachable-area polygons #
POST /elevation/v1 Elevation along points or a route #
POST /map-matching/v1 Snap a GPS trace to roads #
POST /optimized-route/v1 Optimal waypoint ordering #

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/rijwind-com:rijwind-com-routing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

rijwind-com-routing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rijwind Com Routing API
  version: 1.0.0
  contact:
    name: Rijwind support
    url: https://rijwind.com
    email: info@rijwind.com
  license:
    name: Terms of service
    url: https://rijwind.com/terms
  description: 'Operations tagged Routing across 2 of this provider''s published API definitions: rijwind-com-openapi-openapi.json, rijwind-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.rijwind.com
  description: Production
tags:
- name: Routing
  description: Turn-by-turn directions, travel-time matrices, and reachable-area isochrones.
paths:
  /directions-matrix/v1:
    post:
      tags:
      - Routing
      summary: Travel-time matrix
      description: 'Calculate the travel time and distance between every source and every target — the cost grows with `M × N`, the number of pairs.


        **Quota cost:** `M × N` units per call (`M = sources`, `N = targets`). Capped at `M × N ≤ 2500`; requests beyond that return 400 without charging quota.'
      operationId: matrix
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MatrixRequest'
        required: true
      responses:
        '200':
          description: Matrix response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MatrixResponse'
        '400':
          description: Body malformed, costing unsupported, or `M × N > 2500`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing, malformed, or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Monthly quota exhausted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - ApiKey: []
    servers:
    - url: https://api.rijwind.com
      description: Production
  /directions/v1:
    post:
      tags:
      - Routing
      summary: Turn-by-turn directions
      description: 'Calculate a route between two or more waypoints.


        **Quota cost:** 1 unit per call.'
      operationId: route
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RouteRequest'
        required: true
      responses:
        '200':
          description: Route response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouteResponse'
        '400':
          description: Malformed body or unsupported costing profile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing, malformed, or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Monthly quota exhausted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - ApiKey: []
    servers:
    - url: https://api.rijwind.com
      description: Production
  /isochrone/v1:
    post:
      tags:
      - Routing
      summary: Reachable-area polygons
      description: 'Compute reachable-area polygons (isochrones) from one or more origins. Each contour is a time or distance band, returned as a GeoJSON Feature.


        **Quota cost:** `5 × L × C` units per call (`L = locations`, `C = contours`). Capped at `L × C ≤ 4`; requests beyond that return 400.'
      operationId: isochrone
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IsochroneRequest'
        required: true
      responses:
        '200':
          description: Isochrone response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IsochroneResponse'
        '400':
          description: Body malformed, costing unsupported, or `L × C > 4`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing, malformed, or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Monthly quota exhausted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - ApiKey: []
    servers:
    - url: https://api.rijwind.com
      description: Production
  /elevation/v1:
    post:
      description: 'Look up ground elevation for discrete points or along a route. For a route, send the geometry as an `encodedPolyline` and the server resamples it to `samples` evenly-spaced points — ideal for building an elevation profile from a GPS track without sending every point.


        **Quota cost:** 1 unit per call. The `points` array is capped at 512; for a longer track use `encodedPolyline` (resampled to at most 1000 points).'
      operationId: elevation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ElevationRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ElevationResponse'
          description: Elevations in request order.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Body malformed, neither input provided, or more than 512 points.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing, malformed, or revoked API key.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Monthly quota exhausted.
      security:
      - ApiKey: []
      summary: Elevation along points or a route
      tags:
      - Routing
    servers:
    - description: Production
      url: https://api.rijwind.com
  /map-matching/v1:
    post:
      description: 'Snap a noisy GPS trace to the road network and return a clean, route-shaped result — the same response envelope as `/directions/v1`. Provide the trace as a `shape` array or an `encodedPolyline`.


        **Quota cost:** 1 unit per call. The `shape` array is capped at 100 points; requests beyond that return 400 without charging quota.'
      operationId: map_matching
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MapMatchingRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouteResponse'
          description: Matched route.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Body malformed, costing unsupported, or trace exceeds 100 points.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing, malformed, or revoked API key.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Monthly quota exhausted.
      security:
      - ApiKey: []
      summary: Snap a GPS trace to roads
      tags:
      - Routing
    servers:
    - description: Production
      url: https://api.rijwind.com
  /optimized-route/v1:
    post:
      description: 'Find the optimal visiting order over a set of waypoints (a travelling-salesman solve) and return a route that visits them in that order. The first and last locations stay fixed.


        **Quota cost:** `N` units per call, where `N` is the number of locations. Capped at 20 locations; requests beyond that return 400 without charging quota.'
      operationId: optimized_route
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OptimizedRouteRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouteResponse'
          description: Optimized route.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Body malformed, costing unsupported, fewer than 2 locations, or more than 20.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing, malformed, or revoked API key.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Monthly quota exhausted.
      security:
      - ApiKey: []
      summary: Optimal waypoint ordering
      tags:
      - Routing
    servers:
    - description: Production
      url: https://api.rijwind.com
components:
  schemas:
    LngLat:
      type: object
      description: A `(lat, lon)` pair. Latitude is in [-90, 90], longitude in [-180, 180].
      required:
      - lat
      - lon
      properties:
        lat:
          type: number
          format: double
          example: 52.3676
        lon:
          type: number
          format: double
          example: 4.9041
    RouteSummary:
      type: object
      required:
      - length
      - time
      properties:
        length:
          type: number
          format: double
          description: Total length in the requested units.
          example: 60.4
        maxLat:
          type:
          - number
          - 'null'
          format: double
        maxLon:
          type:
          - number
          - 'null'
          format: double
        minLat:
          type:
          - number
          - 'null'
          format: double
        minLon:
          type:
          - number
          - 'null'
          format: double
        time:
          type: number
          format: double
          description: Total travel time in seconds.
          example: 4810.0
    IsochroneFeature:
      type: object
      required:
      - type
      - properties
      - geometry
      properties:
        geometry:
          description: GeoJSON geometry — Polygon or LineString depending on the `polygons` flag.
        properties:
          $ref: '#/components/schemas/IsochroneFeatureProperties'
        type:
          type: string
    ErrorResponse:
      type: object
      description: Standard error envelope. The `error` field is a stable, machine-readable code; the `message` field is for humans and may be rewritten for clarity between releases.
      required:
      - error
      - message
      properties:
        error:
          type: string
          description: Machine-readable error code, e.g. `quota_exhausted`.
          example: quota_exhausted
        message:
          type: string
          description: Human-readable explanation.
          example: Monthly request quota exceeded for this key.
    IsochroneContour:
      type: object
      description: One contour for an isochrone request — either `time` (minutes) or `distance` (in the request's `units`). `color` is a hex color without the leading hash, used for the rendered polygon's stroke and fill.
      properties:
        color:
          type:
          - string
          - 'null'
          description: Hex color without leading hash.
          example: ff0000
        distance:
          type:
          - number
          - 'null'
          format: double
        time:
          type:
          - number
          - 'null'
          format: double
          example: 15.0
    MatrixRequest:
      type: object
      required:
      - sources
      - targets
      - costing
      properties:
        costing:
          $ref: '#/components/schemas/Costing'
        sources:
          type: array
          items:
            $ref: '#/components/schemas/LngLat'
          minItems: 1
        targets:
          type: array
          items:
            $ref: '#/components/schemas/LngLat'
          minItems: 1
        units:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Units'
    RouteLeg:
      type: object
      required:
      - shape
      - summary
      - maneuvers
      properties:
        maneuvers:
          type: array
          items:
            $ref: '#/components/schemas/RouteManeuver'
        shape:
          type: string
          description: 'Encoded polyline at 1e-6 precision (the standard Google polyline

            algorithm with 6 decimals instead of 5). Decoders are available for

            every major language — in JavaScript, `@mapbox/polyline` with the

            precision set to 6 returns `[lat, lon]` pairs.'
        summary:
          $ref: '#/components/schemas/RouteSummary'
    IsochroneResponse:
      type: object
      description: GeoJSON FeatureCollection with one feature per contour.
      required:
      - type
      - features
      properties:
        features:
          type: array
          items:
            $ref: '#/components/schemas/IsochroneFeature'
        type:
          type: string
    Units:
      type: string
      enum:
      - kilometers
      - miles
    MatrixResponse:
      type: object
      description: Matrix response. Outer array indexes sources, inner array indexes targets — `M × N` cells in row-major order.
      required:
      - sourcesToTargets
      - units
      properties:
        sourcesToTargets:
          type: array
          items:
            type: array
            items:
              $ref: '#/components/schemas/MatrixCell'
        units:
          type: string
    MatrixCell:
      type: object
      required:
      - fromIndex
      - toIndex
      properties:
        distance:
          type:
          - number
          - 'null'
          format: double
          description: Distance in the requested units. `null` if the pair is unreachable.
          example: 60.4
        fromIndex:
          type: integer
          format: int32
          minimum: 0
        time:
          type:
          - number
          - 'null'
          format: double
          description: Travel time in seconds. `null` if the pair is unreachable.
          example: 4810.0
        toIndex:
          type: integer
          format: int32
          minimum: 0
    Costing:
      type: string
      description: Routing profile. `auto` (car), `bicycle`, or `pedestrian` (foot).
      enum:
      - auto
      - bicycle
      - pedestrian
    IsochroneRequest:
      type: object
      required:
      - locations
      - costing
      - contours
      properties:
        contours:
          type: array
          items:
            $ref: '#/components/schemas/IsochroneContour'
          description: 'One contour per reachable-area band. The product

            `len(locations) × len(contours)` must not exceed 4.'
          maxItems: 4
          minItems: 1
        costing:
          $ref: '#/components/schemas/Costing'
        locations:
          type: array
          items:
            $ref: '#/components/schemas/LngLat'
          maxItems: 4
          minItems: 1
        polygons:
          type:
          - boolean
          - 'null'
          description: Return polygons instead of GeoJSON LineStrings.
    RouteRequest:
      type: object
      required:
      - locations
      - costing
      properties:
        costing:
          $ref: '#/components/schemas/Costing'
        directionsOptions:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/DirectionsOptions'
        locations:
          type: array
          items:
            $ref: '#/components/schemas/LngLat'
          description: Two or more ordered waypoints. The first is the origin, the last is the destination.
          minItems: 2
        units:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Units'
    IsochroneFeatureProperties:
      type: object
      properties:
        color:
          type:
          - string
          - 'null'
        contour:
          type:
          - number
          - 'null'
          format: double
        metric:
          type:
          - string
          - 'null'
    RouteManeuver:
      type: object
      required:
      - instruction
      - length
      - time
      - beginShapeIndex
      - endShapeIndex
      properties:
        beginShapeIndex:
          type: integer
          format: int32
          minimum: 0
        endShapeIndex:
          type: integer
          format: int32
          minimum: 0
        instruction:
          type: string
          example: Head north on Damrak.
        length:
          type: number
          format: double
        time:
          type: number
          format: double
    DirectionsOptions:
      type: object
      properties:
        language:
          type:
          - string
          - 'null'
          description: Language for narrative directions.
          example: en-US
    Trip:
      type: object
      required:
      - summary
      - legs
      - status
      - statusMessage
      - units
      - language
      properties:
        language:
          type: string
          example: en-US
        legs:
          type: array
          items:
            $ref: '#/components/schemas/RouteLeg'
        status:
          type: integer
          format: int32
          example: 0
        statusMessage:
          type: string
          example: Found route between points
        summary:
          $ref: '#/components/schemas/RouteSummary'
        units:
          type: string
          example: kilometers
    RouteResponse:
      type: object
      description: Route response. The interesting fields are `trip.summary` (totals) and `trip.legs[i].shape` (an encoded polyline ready to render).
      required:
      - trip
      properties:
        trip:
          $ref: '#/components/schemas/Trip'
    OptimizedRouteRequest:
      description: Find the optimal visiting order over a set of waypoints and return a route that visits them in that order. The first and last locations stay fixed; the stops in between are reordered.
      properties:
        costing:
          $ref: '#/components/schemas/Costing'
        locations:
          description: 'Two or more waypoints. The first is the start and the last is the

            end; the intermediate stops are reordered for the shortest total

            trip. Capped at 20 locations.'
          items:
            $ref: '#/components/schemas/LngLat'
          maxItems: 20
          minItems: 2
          type: array
        units:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Units'
      required:
      - locations
      - costing
      type: object
    LocationType:
      description: '`break` (default): a stop that ends one leg and starts the next. The incoming and outgoing legs each snap to the waypoint on their own, so where several roads lie equally close (a dual carriageway, a bridge with a cycle track) they can end and start a few meters apart, and the route may turn around at the stop.


        `break_through`: also a stop with separate legs, but the outgoing leg continues from exactly where the incoming leg arrived, so the legs always connect. Turning around at the stop is not allowed; if continuing is impossible (a dead end), the request fails with no route found. Use it on stops the route passes through, and keep `break` where turning around is expected.'
      enum:
      - break
      - break_through
      type: string
    ElevationPoint:
      properties:
        elevation:
          description: 'Elevation in metres above sea level, or `null` where there is no

            coverage (e.g. open ocean).'
          example: 322.4
          format: double
          type:
          - number
          - 'null'
        lat:
          example: 50.7536
          format: double
          type: number
        lon:
          example: 6.0208
          format: double
          type: number
      required:
      - lat
      - lon
      type: object
    MapMatchingRequest:
      description: Snap a noisy GPS trace to the road network. Provide the trace either as a `shape` array of `(lat, lon)` points or as an `encodedPolyline` string — exactly one is required.
      properties:
        costing:
          $ref: '#/components/schemas/Costing'
        encodedPolyline:
          description: 'The GPS trace as a single encoded polyline (precision 6). An

            alternative to `shape` for compact transport of long traces.'
          example: _p~iF~ps|U_ulLnnqC
          type:
          - string
          - 'null'
        shape:
          description: 'The GPS trace as ordered `(lat, lon)` points. Capped at 100 points;

            use `encodedPolyline` for longer traces. Omit when using

            `encodedPolyline`.'
          items:
            $ref: '#/components/schemas/LngLat'
          maxItems: 100
          type:
          - array
          - 'null'
        shapeMatch:
          description: 'How aggressively to snap to roads. `map_snap` (default) matches to

            the road network; `walk_or_snap` and `edge_walk` trade accuracy for

            speed on dense traces.'
          example: map_snap
          type:
          - string
          - 'null'
        units:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Units'
      required:
      - costing
      type: object
    ElevationResponse:
      description: Elevations in the same order as the request — one per input point, or one per sample along the polyline.
      properties:
        elevations:
          items:
            $ref: '#/components/schemas/ElevationPoint'
          type: array
      required:
      - elevations
      type: object
    ElevationRequest:
      description: Elevation lookup. Provide either `points` (discrete coordinates) or `encodedPolyline` (a route, resampled server-side) — exactly one is required.
      properties:
        encodedPolyline:
          description: 'A route as a single encoded polyline (precision 6). The server samples

            it at `samples` evenly-spaced points — send a whole GPS track this way

            rather than thousands of individual points.'
          example: _p~iF~ps|U_ulLnnqC
          type:
          - string
          - 'null'
        points:
          description: 'Up to 512 discrete `(lat, lon)` points to look up. Omit when using

            `encodedPolyline`.'
          items:
            $ref: '#/components/schemas/LngLat'
          maxItems: 512
          type:
          - array
          - 'null'
        samples:
          description: 'Number of evenly-spaced samples for `encodedPolyline` mode. Default

            256, capped at 1000.'
          example: 256
          format: int32
          minimum: 0
          type:
          - integer
          - 'null'
      type: object
    RouteLocation:
      description: A waypoint. Each waypoint is snapped to the nearest road or path that the chosen profile may use.
      properties:
        lat:
          example: 52.3676
          format: double
          type: number
        lon:
          example: 4.9041
          format: double
          type: number
        radius:
          description: 'Meters around the waypoint in which every road or path is considered

            as a snapping candidate, not only the closest. This is not a limit —

            use `searchCutoff` for that. Defaults to 0.'
          example: 0
          format: double
          type:
          - number
          - 'null'
        searchCutoff:
          description: 'Maximum snapping distance in meters. If no usable road or path lies

            within this distance, the request fails with `400` (error code 171)

            instead of snapping further away. Use it to enforce a strict snapping

            limit. Defaults to 35,000.'
          example: 50
          format: double
          type:
          - number
          - 'null'
        type:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/LocationType'
            description: 'How the route treats an intermediate waypoint. Ignored on the first

              and last waypoint.'
      required:
      - lat
      - lon
      type: object
    RouteRequest_2:
      properties:
        costing:
          $ref: '#/components/schemas/Costing'
        costingOptions:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/CostingOptions'
        directionsOptions:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/DirectionsOptions'
        locations:
          description: Two or more ordered waypoints. The first is the origin, the last is the destination.
          items:
            $ref: '#/components/schemas/RouteLocation'
          minItems: 2
          type: array
        units:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Units'
      required:
      - locations
      - costing
      type: object
    ProfileOptions:
      properties:
        excludeFerries:
          description: 'Exclude ferries entirely. The route then never uses a ferry, and

            waypoints never snap onto one; if no route exists without a ferry,

            the request fails.'
          example: true
          type:
          - boolean
          - 'null'
        useFerry:
          description: 'Preference for ferries, from `0` (avoid when possible) to `1`

            (prefer). A preference only: a ferry is still used when there is no

            reasonable alternative. Defaults to `0.5`.'
          example: 0
          format: double
          type:
          - number
          - 'null'
      type: object
    CostingOptions:
      description: Profile-specific options, keyed by the profile they apply to. Only the entry matching `costing` is used.
      properties:
        auto:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/ProfileOptions'
        bicycle:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/ProfileOptions'
        pedestrian:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/ProfileOptions'
      type: object
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: rw_live_…
      description: Pass your API key as a Bearer token in the `Authorization` header. Keys are scoped to a project; their plain text is shown once at creation in the dashboard. Keys starting with `rw_test_` use the same routes but are intended for staging/CI.
x-refined-from:
- rijwind-com-openapi-openapi.json
- rijwind-com-openapi.json