{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "DirectionsResponse", "type": "object", "description": "The response from the Directions API", "properties": { "status": { "type": "string", "description": "Status code of the directions request" }, "routes": { "type": "array", "description": "Array of routes from the origin to the destination. Each route contains legs, overview polylines, warnings, and waypoint order." }, "geocoded_waypoints": { "type": "array", "description": "Contains geocoding information for the origin, destination, and each waypoint." }, "error_message": { "type": "string", "description": "Human-readable error message when status is not OK" } } }