Step

A single step of a route leg

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

Properties

Name Type Description
html_instructions string Formatted instructions for this step, presented as an HTML text string.
distance object
duration object
start_location object
end_location object
polyline object
travel_mode string The travel mode for this step
maneuver string The maneuver action for this step (e.g., turn-left, roundabout-right, merge, straight, etc.).
transit_details object
steps array Sub-steps for walking or transit legs in multi-modal routes
View JSON Schema on GitHub

JSON Schema

google-maps-step-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Step",
  "title": "Step",
  "type": "object",
  "description": "A single step of a route leg",
  "properties": {
    "html_instructions": {
      "type": "string",
      "description": "Formatted instructions for this step, presented as an HTML text string.",
      "example": "Head <b>north</b> on <b>Yonge St</b> toward <b>Queen St W</b>"
    },
    "distance": {
      "$ref": "#/components/schemas/TextValuePair"
    },
    "duration": {
      "$ref": "#/components/schemas/TextValuePair"
    },
    "start_location": {
      "$ref": "#/components/schemas/LatLng"
    },
    "end_location": {
      "$ref": "#/components/schemas/LatLng"
    },
    "polyline": {
      "$ref": "#/components/schemas/Polyline"
    },
    "travel_mode": {
      "type": "string",
      "description": "The travel mode for this step",
      "enum": [
        "DRIVING",
        "WALKING",
        "BICYCLING",
        "TRANSIT"
      ],
      "example": "DRIVING"
    },
    "maneuver": {
      "type": "string",
      "description": "The maneuver action for this step (e.g., turn-left, roundabout-right, merge, straight, etc.).",
      "example": "turn-left"
    },
    "transit_details": {
      "$ref": "#/components/schemas/TransitDetails"
    },
    "steps": {
      "type": "array",
      "description": "Sub-steps for walking or transit legs in multi-modal routes",
      "items": {
        "$ref": "#/components/schemas/Step"
      },
      "example": []
    }
  },
  "required": [
    "html_instructions",
    "distance",
    "duration",
    "start_location",
    "end_location",
    "polyline",
    "travel_mode"
  ]
}

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-step"
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.