DirectionsResponse

The response from the Directions API

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

Properties

Name Type Description
status string Status code of the directions request
routes array Array of routes from the origin to the destination. Each route contains legs, overview polylines, warnings, and waypoint order.
geocoded_waypoints array Contains geocoding information for the origin, destination, and each waypoint.
error_message string Human-readable error message when status is not OK
View JSON Schema on GitHub

JSON Schema

google-maps-directionsresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DirectionsResponse",
  "title": "DirectionsResponse",
  "type": "object",
  "description": "The response from the Directions API",
  "properties": {
    "status": {
      "type": "string",
      "description": "Status code of the directions request",
      "enum": [
        "OK",
        "NOT_FOUND",
        "ZERO_RESULTS",
        "MAX_WAYPOINTS_EXCEEDED",
        "INVALID_REQUEST",
        "OVER_DAILY_LIMIT",
        "OVER_QUERY_LIMIT",
        "REQUEST_DENIED",
        "UNKNOWN_ERROR"
      ],
      "example": "OK"
    },
    "routes": {
      "type": "array",
      "description": "Array of routes from the origin to the destination. Each route contains legs, overview polylines, warnings, and waypoint order.",
      "items": {
        "$ref": "#/components/schemas/Route"
      },
      "example": []
    },
    "geocoded_waypoints": {
      "type": "array",
      "description": "Contains geocoding information for the origin, destination, and each waypoint.",
      "items": {
        "$ref": "#/components/schemas/GeocodedWaypoint"
      },
      "example": []
    },
    "error_message": {
      "type": "string",
      "description": "Human-readable error message when status is not OK",
      "example": "example_value"
    }
  },
  "required": [
    "status",
    "routes"
  ]
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-maps-directionsresponse"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

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

Get an API key

Free tier, no email required.

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