NextBillion.ai Navigation API

The Navigation API from NextBillion.ai — 2 operation(s) for navigation.

Operations 4

GET /navigation Navigation API #
POST /navigation Navigation API #
GET /navigation/json Navigation API #
POST /navigation/json POST /navigation/json #

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/nextbillion-ai:nextbillion-ai-navigation-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

nextbillion-ai-navigation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NextBillion.ai Navigation API
  version: '2026-10-13'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-13: 18 operation(s) read from 8 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; NextBillion.ai has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 5
    documentation: 13
    pages-with-code: 5
    pages-read: 8
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-13'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.nextbillion.ai/routing/directions-api
  - https://docs.nextbillion.ai/routing/navigation-api
  - https://docs.nextbillion.ai/optimization/route-optimization-api
  - https://docs.nextbillion.ai/routing/distance-matrix-api/synchronous
  - https://docs.nextbillion.ai/routing/isochrone-api
  - https://docs.nextbillion.ai/routing/hours-of-service-api
  - https://docs.nextbillion.ai/optimization/driver-assignment-api
  - https://docs.nextbillion.ai/routing/distance-matrix-api/asynchronous
servers:
- url: https://api.nextbillion.io
tags:
- name: Navigation
paths:
  /navigation:
    get:
      operationId: get_navigation
      tags:
      - Navigation
      summary: Navigation API
      x-source: https://docs.nextbillion.ai/routing/navigation-api
      parameters:
      - name: option
        in: query
        required: true
        schema:
          type: string
        description: Selects the API version – "flexible" for the flexible endpoint.
      - name: key
        in: query
        required: true
        schema:
          type: string
        description: Your API key.
      - name: origin
        in: query
        required: false
        schema:
          type: string
        description: Latitude,longitude of the start point.
      - name: destination
        in: query
        required: false
        schema:
          type: string
        description: Latitude,longitude of the end point.
      - name: mode
        in: query
        required: false
        schema:
          type: string
        description: Travel mode (e.g., car, truck, bike).
      - name: departure_time
        in: query
        required: false
        schema:
          type: string
        description: Unix timestamp for departure.
      - name: avoid
        in: query
        required: false
        schema:
          type: string
        description: Features to avoid (e.g., toll, highway, sharp_turn).
      - name: hazmat_type
        in: query
        required: false
        schema:
          type: string
        description: Hazardous material type for truck routing.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetNavigationResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_navigation
      tags:
      - Navigation
      summary: Navigation API
      x-source: https://docs.nextbillion.ai/routing/navigation-api
      parameters:
      - name: option
        in: query
        required: true
        schema:
          type: string
        description: Selects the API version – "flexible" for the flexible endpoint.
      - name: key
        in: query
        required: true
        schema:
          type: string
        description: Your API key.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostNavigationRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostNavigationResponse'
      x-evidence:
        kind: documentation
  /navigation/json:
    get:
      operationId: get_navigation_json
      tags:
      - Navigation
      summary: Navigation API
      x-source: https://docs.nextbillion.ai/routing/navigation-api
      parameters:
      - name: option
        in: query
        required: false
        schema:
          type: string
        description: Selects the API version – "flexible" for flexible, omitted for fast.
      - name: key
        in: query
        required: true
        schema:
          type: string
        description: Your API key.
      - name: origin
        in: query
        required: false
        schema:
          type: string
        description: Latitude,longitude of the start point.
      - name: destination
        in: query
        required: false
        schema:
          type: string
        description: Latitude,longitude of the end point.
      - name: mode
        in: query
        required: false
        schema:
          type: string
        description: Travel mode (car, truck, etc.).
      - name: departure_time
        in: query
        required: false
        schema:
          type: string
        description: Unix timestamp for departure.
      - name: avoid
        in: query
        required: false
        schema:
          type: string
        description: Features to avoid (e.g., highway|toll, sharp_turn).
      - name: hazmat_type
        in: query
        required: false
        schema:
          type: string
        description: Hazardous material type for truck routing.
      - name: overview
        in: query
        required: false
        schema:
          type: string
        description: Level of geometry detail (e.g., simplified).
      - name: waypoints
        in: query
        required: false
        schema:
          type: string
        description: Additional intermediate points.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetNavigationJsonResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_navigation_json
      tags:
      - Navigation
      summary: POST /navigation/json
      x-source: https://docs.nextbillion.ai/routing/navigation-api
      parameters:
      - name: key
        in: query
        required: false
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl --location 'https://api.nextbillion.io/navigation/json?key=<your_api_key>&origin=48.22539980,-101.29602541&destination=48.24027183,-101.29608570&mode=truck&option=flexible&hazmat_type=circumstantial' \n Response \n 1 { 2 \"status\" : \"Ok\" , 3 \"routes\" : [ ... ] 4 } Expand \n GET Request Example 3 \n Next we will create a navigation flexible request for a trip where we want to avoid sharp turns whic"
components:
  schemas:
    GetNavigationJsonResponse:
      type: object
      properties:
        status:
          type: string
          description: Response status, e.g., "Ok".
        routes:
          type: array
          description: Array of route objects.
    PostNavigationRequest:
      type: object
      properties:
        origin:
          type: string
          description: Latitude,longitude of the start point.
        destination:
          type: string
          description: Latitude,longitude of the end point.
        mode:
          type: string
          description: Travel mode (e.g., car, truck, bike).
        departure_time:
          type: string
          description: Unix timestamp for departure.
        avoid:
          type: string
          description: Features to avoid (e.g., toll, highway, sharp_turn).
        hazmat_type:
          type: string
          description: Hazardous material type for truck routing.
    PostNavigationResponse:
      type: object
      properties:
        status:
          type: string
          description: Response status, e.g., "Ok".
        routes:
          type: array
          description: Array of route objects.
    GetNavigationResponse:
      type: object
      properties:
        status:
          type: string
          description: Response status, e.g., "Ok".
        routes:
          type: array
          description: Array of route objects.