SnapToRoadsResponse

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolarGeospatial

Properties

Name Type Description
snappedPoints array An array of snapped points.
warningMessage string A string containing a user-visible warning.
View JSON Schema on GitHub

JSON Schema

google-maps-snap-to-roads-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-maps/json-schema/google-maps-snap-to-roads-response-schema.json",
  "title": "SnapToRoadsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/google-maps-roads-api-api-openapi.yml#/components/schemas/SnapToRoadsResponse",
  "type": "object",
  "properties": {
    "snappedPoints": {
      "description": "An array of snapped points.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/SnappedPoint"
      }
    },
    "warningMessage": {
      "description": "A string containing a user-visible warning.",
      "type": "string"
    }
  },
  "$defs": {
    "LatitudeLongitudeLiteral": {
      "type": "object",
      "title": "LatitudeLongitudeLiteral",
      "description": "An object describing a specific location with Latitude and Longitude in decimal degrees.",
      "required": [
        "latitude",
        "longitude"
      ],
      "properties": {
        "latitude": {
          "type": "number",
          "description": "Latitude in decimal degrees"
        },
        "longitude": {
          "type": "number",
          "description": "Longitude in decimal degrees"
        }
      }
    },
    "SnappedPoint": {
      "type": "object",
      "title": "SnappedPoint",
      "required": [
        "location",
        "placeId"
      ],
      "properties": {
        "location": {
          "$ref": "#/$defs/LatitudeLongitudeLiteral"
        },
        "originalIndex": {
          "description": "An integer that indicates the corresponding value in the original request. Each value in the request should map to a snapped value in the response. However, if you've set interpolate=true or if you're using nearest roads, then it's possible that the response will contain more coordinates than the request. Interpolated values will not have an `originalIndex`. These values are indexed from `0`, so a point with an originalIndex of `4` will be the snapped value of the 5th latitude/longitude passed to the path parameter. Nearest Roads points may contain several points for single coordinates with differing location or placeId.",
          "type": "number"
        },
        "placeId": {
          "description": "A unique identifier for a place. All place IDs returned by the Roads API correspond to road segments.",
          "type": "string"
        }
      }
    }
  }
}

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-snap-to-roads-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.