CalculateRoutesResponse

Amazon Web ServicesGeocodingGeofencingLocationMapsRouting

Properties

Name Type Description
LegGeometryFormat string Specifies the format of the geometry returned for each leg of the route.
Notices array Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
PricingBucket string The pricing bucket for which the query is charged at.
Routes array The path from the origin to the destination.
View JSON Schema on GitHub

JSON Schema

amazon-location-service-calculate-routes-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-calculate-routes-response-schema.json",
  "title": "CalculateRoutesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-location-service-routes-api-openapi.yml#/components/schemas/CalculateRoutesResponse",
  "type": "object",
  "properties": {
    "LegGeometryFormat": {
      "type": "string",
      "enum": [
        "FlexiblePolyline",
        "Simple"
      ],
      "description": "Specifies the format of the geometry returned for each leg of the route."
    },
    "Notices": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RouteResponseNotice"
      },
      "description": "Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
    },
    "PricingBucket": {
      "type": "string",
      "description": "The pricing bucket for which the query is charged at."
    },
    "Routes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Route"
      },
      "description": "The path from the origin to the destination."
    }
  },
  "required": [
    "LegGeometryFormat",
    "Notices",
    "PricingBucket",
    "Routes"
  ],
  "$defs": {
    "LocalizedString": {
      "type": "object",
      "properties": {
        "Language": {
          "type": "string",
          "description": "A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can't be provided."
        },
        "Value": {
          "type": "string",
          "description": "The value of the localized string."
        }
      },
      "required": [
        "Value"
      ]
    },
    "Route": {
      "type": "object",
      "properties": {
        "Legs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteLeg"
          },
          "description": "A leg is a section of a route from one waypoint to the next. A leg could be of type Vehicle, Pedestrian or Ferry. Legs of different types could occur together within a single route. For example, a car employing the use of a Ferry will contain Vehicle legs corresponding to journey on land, and Ferry legs corresponding to the journey via Ferry."
        },
        "MajorRoadLabels": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteMajorRoadLabel"
          },
          "description": "Important labels including names and route numbers that differentiate the current route from the alternatives presented."
        },
        "Summary": {
          "$ref": "#/$defs/RouteSummary"
        }
      },
      "required": [
        "Legs",
        "MajorRoadLabels"
      ]
    },
    "RouteAccessPointDetails": {
      "type": "object",
      "properties": {
        "Accessibility": {
          "$ref": "#/$defs/RouteAccessibilityAvailabilityDetails"
        }
      }
    },
    "RouteAccessibilityAvailabilityDetails": {
      "type": "object",
      "properties": {
        "Wheelchair": {
          "type": "string",
          "enum": [
            "Available",
            "Limited",
            "Unavailable",
            "Unknown"
          ],
          "description": "Wheelchair accessibility status."
        }
      }
    },
    "RouteAttribution": {
      "type": "object",
      "properties": {
        "AttributionType": {
          "type": "string",
          "enum": [
            "Disclaimer",
            "Tariff"
          ],
          "description": "The type of the attribution link."
        },
        "WebLink": {
          "$ref": "#/$defs/RouteWebLink"
        }
      },
      "required": [
        "WebLink"
      ]
    },
    "RouteChargeStepDetails": {
      "type": "object",
      "properties": {
        "ArrivalCharge": {
          "type": "number",
          "description": "Estimated vehicle battery charge before this step (in kWh)."
        },
        "ConsumablePower": {
          "type": "number",
          "description": "Maximum charging power available to the vehicle. Unit: KwH"
        },
        "DesiredCharge": {
          "type": "number",
          "description": "Details that are specific to a Charge step. Unit: KwH"
        }
      }
    },
    "RouteContinueHighwayStepDetails": {
      "type": "object",
      "properties": {
        "Intersection": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocalizedString"
          },
          "description": "Name of the intersection, if applicable to the step."
        },
        "SteeringDirection": {
          "type": "string",
          "enum": [
            "Left",
            "Right",
            "Straight"
          ],
          "description": "Steering direction for the step."
        },
        "TurnAngle": {
          "type": "number",
          "description": "Angle of the turn."
        },
        "TurnIntensity": {
          "type": "string",
          "enum": [
            "Sharp",
            "Slight",
            "Typical"
          ],
          "description": "Intensity of the turn."
        }
      },
      "required": [
        "Intersection"
      ]
    },
    "RouteContinueStepDetails": {
      "type": "object",
      "properties": {
        "Intersection": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocalizedString"
          },
          "description": "Name of the intersection, if applicable to the step."
        }
      },
      "required": [
        "Intersection"
      ]
    },
    "RouteEnterHighwayStepDetails": {
      "type": "object",
      "properties": {
        "Intersection": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocalizedString"
          },
          "description": "Name of the intersection, if applicable to the step."
        },
        "SteeringDirection": {
          "type": "string",
          "enum": [
            "Left",
            "Right",
            "Straight"
          ],
          "description": "Steering direction for the step."
        },
        "TurnAngle": {
          "type": "number",
          "description": "Angle of the turn."
        },
        "TurnIntensity": {
          "type": "string",
          "enum": [
            "Sharp",
            "Slight",
            "Typical"
          ],
          "description": "Intensity of the turn."
        }
      },
      "required": [
        "Intersection"
      ]
    },
    "RouteExitStepDetails": {
      "type": "object",
      "properties": {
        "Intersection": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocalizedString"
          },
          "description": "Name of the intersection, if applicable to the step."
        },
        "RelativeExit": {
          "type": "integer",
          "description": "Exit to be taken."
        },
        "SteeringDirection": {
          "type": "string",
          "enum": [
            "Left",
            "Right",
            "Straight"
          ],
          "description": "Steering direction for the step."
        },
        "TurnAngle": {
          "type": "number",
          "description": "Angle of the turn."
        },
        "TurnIntensity": {
          "type": "string",
          "enum": [
            "Sharp",
            "Slight",
            "Typical"
          ],
          "description": "Intensity of the turn."
        }
      },
      "required": [
        "Intersection"
      ]
    },
    "RouteFerryAfterTravelStep": {
      "type": "object",
      "properties": {
        "Duration": {
          "type": "integer",
          "description": "Duration of the step. Unit: seconds"
        },
        "Instruction": {
          "type": "string",
          "description": "Brief description of the step in the requested language. Only available when the TravelStepType is Default."
        },
        "Type": {
          "type": "string",
          "enum": [
            "Deboard"
          ],
          "description": "Type of the step."
        }
      },
      "required": [
        "Duration",
        "Type"
      ]
    },
    "RouteFerryArrival": {
      "type": "object",
      "properties": {
        "Place": {
          "$ref": "#/$defs/RouteFerryPlace"
        },
        "Time": {
          "type": "string",
          "description": "The arrival time."
        }
      },
      "required": [
        "Place"
      ]
    },
    "RouteFerryBeforeTravelStep": {
      "type": "object",
      "properties": {
        "Duration": {
          "type": "integer",
          "description": "Duration of the step. Unit: seconds"
        },
        "Instruction": {
          "type": "string",
          "description": "Brief description of the step in the requested language. Only available when the TravelStepType is Default."
        },
        "Type": {
          "type": "string",
          "enum": [
            "Board"
          ],
          "description": "Type of the step."
        }
      },
      "required": [
        "Duration",
        "Type"
      ]
    },
    "RouteFerryDeparture": {
      "type": "object",
      "properties": {
        "Place": {
          "$ref": "#/$defs/RouteFerryPlace"
        },
        "Time": {
          "type": "string",
          "description": "The departure time."
        }
      },
      "required": [
        "Place"
      ]
    },
    "RouteFerryLegDetails": {
      "type": "object",
      "properties": {
        "AfterTravelSteps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteFerryAfterTravelStep"
          },
          "description": "Steps of a leg that must be performed after the travel portion of the leg."
        },
        "Arrival": {
          "$ref": "#/$defs/RouteFerryArrival"
        },
        "BeforeTravelSteps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteFerryBeforeTravelStep"
          },
          "description": "Steps of a leg that must be performed before the travel portion of the leg."
        },
        "Departure": {
          "$ref": "#/$defs/RouteFerryDeparture"
        },
        "Notices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteFerryNotice"
          },
          "description": "Notices are additional information returned that indicate issues that occurred during route calculation."
        },
        "PassThroughWaypoints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RoutePassThroughWaypoint"
          },
          "description": "Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option."
        },
        "RouteName": {
          "type": "string",
          "description": "Route name of the ferry line."
        },
        "Spans": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteFerrySpan"
          },
          "description": "Spans that were computed for the requested SpanAdditionalFeatures."
        },
        "Summary": {
          "$ref": "#/$defs/RouteFerrySummary"
        },
        "TravelSteps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteFerryTravelStep"
          },
          "description": "Steps of a leg that must be performed before the travel portion of the leg."
        }
      },
      "required": [
        "AfterTravelSteps",
        "Arrival",
        "BeforeTravelSteps",
        "Departure",
        "Notices",
        "PassThroughWaypoints",
        "Spans",
        "TravelSteps"
      ]
    },
    "RouteFerryNotice": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "enum": [
            "AccuratePolylineUnavailable",
            "NoSchedule",
            "Other",
            "ViolatedAvoidFerry",
            "ViolatedAvoidRailFerry",
            "SeasonalClosure",
            "PotentialViolatedVehicleRestrictionUsage",
            "ViolatedAvoidAreas",
            "ViolatedVehicleRestriction"
          ],
          "description": "Code corresponding to the issue."
        },
        "Impact": {
          "type": "string",
          "enum": [
            "High",
            "Low"
          ],
          "description": "Impact corresponding to the issue. While Low impact notices can be safely ignored, High impact notices must be evaluated further to determine the impact."
        }
      },
      "required": [
        "Code"
      ]
    },
    "RouteFerryOverviewSummary": {
      "type": "object",
      "properties": {
        "Distance": {
          "type": "integer",
          "description": "Distance of the entire leg. Unit: meters"
        },
        "Duration": {
          "type": "integer",
          "description": "Duration of the entire leg. Unit: seconds"
        }
      },
      "required": [
        "Distance",
        "Duration"
      ]
    },
    "RouteFerryPlace": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the place."
        },
        "OriginalPosition": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "Position provided in the request."
        },
        "Position": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "Position in World Geodetic System (WGS 84) format: [longitude, latitude]."
        },
        "WaypointIndex": {
          "type": "integer",
          "description": "Index of the waypoint in the request."
        }
      },
      "required": [
        "Position"
      ]
    },
    "RouteFerrySpan": {
      "type": "object",
      "properties": {
        "Country": {
          "type": "string",
          "description": "3 letter Country code corresponding to the Span."
        },
        "Distance": {
          "type": "integer",
          "description": "Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties. Unit: meters"
        },
        "Duration": {
          "type": "integer",
          "description": "Duration of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties. Unit: seconds"
        },
        "GeometryOffset": {
          "type": "integer",
          "description": "Offset in the leg geometry corresponding to the start of this span."
        },
        "Names": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocalizedString"
          },
          "description": "Names of the ferry span in available languages."
        },
        "Region": {
          "type": "string",
          "description": "2-3 letter Region code corresponding to the Span. This is either a province or a state."
        }
      }
    },
    "RouteFerrySummary": {
      "type": "object",
      "properties": {
        "Overview": {
          "$ref": "#/$defs/RouteFerryOverviewSummary"
        },
        "TravelOnly": {
          "$ref": "#/$defs/RouteFerryTravelOnlySummary"
        }
      }
    },
    "RouteFerryTravelOnlySummary": {
      "type": "object",
      "properties": {
        "Duration": {
          "type": "integer",
          "description": "Total duration in free flowing traffic, which is the best case or shortest duration possible to cover the leg. Unit: seconds"
        }
      },
      "required": [
        "Duration"
      ]
    },
    "RouteFerryTravelStep": {
      "type": "object",
      "properties": {
        "Distance": {
          "type": "integer",
          "description": "Distance of the step."
        },
        "Duration": {
          "type": "integer",
          "description": "Duration of the step. Unit: seconds"
        },
        "GeometryOffset": {
          "type": "integer",
          "description": "Offset in the leg geometry corresponding to the start of this step."
        },
        "Instruction": {
          "type": "string",
          "description": "Brief description of the step in the requested language. Only available when the TravelStepType is Default."
        },
        "Type": {
          "type": "string",
          "enum": [
            "Depart",
            "Continue",
            "Arrive"
          ],
          "description": "Type of the step."
        }
      },
      "required": [
        "Duration",
        "Type"
      ]
    },
    "RouteKeepStepDetails": {
      "type": "object",
      "properties": {
        "Intersection": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocalizedString"
          },
          "description": "Name of the intersection, if applicable to the step."
        },
        "SteeringDirection": {
          "type": "string",
          "enum": [
            "Left",
            "Right",
            "Straight"
          ],
          "description": "Steering direction for the step."
        },
        "TurnAngle": {
          "type": "number",
          "description": "Angle of the turn."
        },
        "TurnIntensity": {
          "type": "string",
          "enum": [
            "Sharp",
            "Slight",
            "Typical"
          ],
          "description": "Intensity of the turn."
        }
      },
      "required": [
        "Intersection"
      ]
    },
    "RouteLeg": {
      "type": "object",
      "properties": {
        "FerryLegDetails": {
          "$ref": "#/$defs/RouteFerryLegDetails"
        },
        "Geometry": {
          "$ref": "#/$defs/RouteLegGeometry"
        },
        "Language": {
          "type": "string",
          "description": "List of languages for instructions within steps in the response. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "PedestrianLegDetails": {
          "$ref": "#/$defs/RoutePedestrianLegDetails"
        },
        "TravelMode": {
          "type": "string",
          "enum": [
            "Car",
            "Ferry",
            "Pedestrian",
            "Scooter",
            "Truck",
            "CarShuttleTrain",
            "AerialTramway",
            "Airplane",
            "Bus",
            "BusRapidTransit",
            "CityTrain",
            "FunicularRailway",
            "HighSpeedTrain",
            "IntercityTrain",
            "InterregionalTrain",
            "LightRail",
            "Monorail",
            "PrivateBus",
            "RegionalTrain",
            "Subway"
          ],
          "description": "Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. Default value: Car"
        },
        "Type": {
          "type": "string",
          "enum": [
            "Ferry",
            "Pedestrian",
            "Vehicle",
            "Rental",
            "Taxi",
            "Transit"
          ],
          "description": "Type of the leg."
        },
        "VehicleLegDetails": {
          "$ref": "#/$defs/RouteVehicleLegDetails"
        },
        "RentalLegDetails": {
          "$ref": "#/$defs/RouteRentalLegDetails"
        },
        "TaxiLegDetails": {
          "$ref": "#/$defs/RouteTaxiLegDetails"
        },
        "TransitLegDetails": {
          "$ref": "#/$defs/RouteTransitLegDetails"
        }
      },
      "required": [
        "Geometry",
        "TravelMode",
        "Type"
      ]
    },
    "RouteLegGeometry": {
      "type": "object",
      "properties": {
        "LineString": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "description": "An ordered list of positions used to plot a route on a map. LineString and Polyline are mutually exclusive properties."
        },
        "Polyline": {
          "type": "string",
          "description": "An ordered list of positions used to plot a route on a map in a lossy compression format. LineString and Polyline are mutually exclusive properties."
        }
      }
    },
    "RouteMajorRoadLabel": {
      "type": "object",
      "properties": {
        "RoadName": {
          "$ref": "#/$defs/LocalizedString"
        },
        "RouteNumber": {
          "$ref": "#/$defs/RouteNumber"
        }
      }
    },
    "RouteNoticeDetailRange": {
      "type": "object",
      "properties": {
        "Min": {
          "type": "integer",
          "description": "Minimum value for the range."
        },
        "Max": {
          "type": "integer",
          "description": "Maximum value for the range."
        }
      }
    },
    "RouteNumber": {
      "type": "object",
      "properties": {
        "Direction": {
          "type": "string",
          "enum": [
            "East",
            "North",
            "South",
            "West"
          ],
          "description": "Directional identifier of the route."
        },
        "Language": {
          "type": "string",
          "description": "List of languages for instructions corresponding to the route number."
        },
        "Value": {
          "type": "string",
          "description": "The route number."
        }
      },
      "required": [
        "Value"
      ]
    },
    "RoutePassThroughPlace": {
      "type": "object",
      "properties": {
        "OriginalPosition": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "Position provided in the request."
        },
        "Position": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "Position in World Geodetic System (WGS 84) format: [longitude, latitude]."
        },
        "WaypointIndex": {
          "type": "integer",
          "description": "Index of the waypoint in the request."
        }
      },
      "required": [
        "Position"
      ]
    },
    "RoutePassThroughWaypoint": {
      "type": "object",
      "properties": {
        "GeometryOffset": {
          "type": "integer",
          "description": "Offset in the leg geometry corresponding to the start of this step."
        },
        "Place": {
          "$ref": "#/$defs/RoutePassThroughPlace"
        }
      },
      "required": [
        "Place"
      ]
    },
    "RoutePedestrianAfterTravelStep": {
      "type": "object",
      "properties": {
        "Duration": {
          "type": "integer",
          "description": "Duration of the step. Unit: seconds"
        },
        "Instruction": {
          "type": "string",
          "description": "Brief description of the step in the requested language. Only available when the TravelStepType is Default."
        },
        "Type": {
          "type": "string",
          "enum": [
            "Wait"
          ],
          "description": "Type of the step."
        }
      },
      "required": [
        "Duration",
        "Type"
      ]
    },
    "RoutePedestrianArrival": {
      "type": "object",
      "properties": {
        "Place": {
          "$ref": "#/$defs/RoutePedestrianPlace"
        },
        "Time": {
          "type": "string",
          "description": "The arrival time."
        }
      },
      "required": [
        "Place"
      ]
    },
    "RoutePedestrianDeparture": {
      "type": "object",
      "properties": {
        "Place": {
          "$ref": "#/$defs/RoutePedestrianPlace"
        },
        "Time": {
          "type": "string",
          "description": "The departure time."
        }
      },
      "required": [
        "Place"
      ]
    },
    "RoutePedestrianLegDetails": {
      "type": "object",
      "properties": {
        "AfterTravelSteps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RoutePedestrianAfterTravelStep"
          },
          "description": "Steps of a leg that must be performed after the travel portion of the leg."
        },
        "Arrival": {
          "$ref": "#/$defs/RoutePedestrianArrival"
        },
        "Departure": {
          "$ref": "#/$defs/RoutePedestrianDeparture"
        },
        "Notices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RoutePedestrianNotice"
          },
          "description": "Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "PassThroughWaypoints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RoutePassThroughWaypoint"
          },
          "description": "Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option."
        },
        "Spans": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RoutePedestrianSpan"
          },
          "description": "Spans that were computed for the requested SpanAdditionalFeatures. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "Summary": {
          "$ref": "#/$defs/RoutePedestrianSummary"
        },
        "TravelSteps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RoutePedestrianTravelStep"
          },
          "description": "Steps of a leg that must be performed before the travel portion of the leg."
        }
      },
      "required": [
        "AfterTravelSteps",
        "Arrival",
        "Departure",
        "Notices",
        "PassThroughWaypoints",
        "Spans",
        "TravelSteps"
      ]
    },
    "RoutePedestrianNotice": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "enum": [
            "AccuratePolylineUnavailable",
            "Other",
            "ViolatedAvoidDirtRoad",
            "ViolatedAvoidTunnel",
            "ViolatedPedestrianOption",
            "ViolatedAvoidAreas"
          ],
          "description": "Code corresponding to the issue."
        },
        "Impact": {
          "type": "string",
          "enum": [
            "High",
            "Low"
          ],
          "description": "Impact corresponding to the issue. While Low impact notices can be safely ignored, High impact notices must be evaluated further to determine the impact."
        }
      },
      "required": [
        "Code"
      ]
    },
    "RoutePedestrianOverviewSummary": {
      "type": "object",
      "properties": {
        "Distance": {
          "type": "integer",
          "description": "Distance of the entire leg. Unit: meters"
        },
        "Duration": {
          "type": "integer",
          "description": "Duration of the entire leg. Unit: seconds"
        }
      },
      "required": [
        "Distance",
        "Duration"
      ]
    },
    "RoutePedestrianPlace": {
      "type": "object",
      "properties": {
        "AccessPointDetails": {
          "$ref": "#/$defs/RouteAccessPointDetails"
        },
        "Name": {
          "type": "string",
          "description": "The name of the place."
        },
        "OriginalPosition": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "Position provided in the request."
        },
        "Position": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "Position in World Geodetic System (WGS 84) format: [longitude, latitude]."
        },
        "SideOfStreet": {
          "type": "string",
          "enum": [
            "Left",
            "Right"
          ],
          "description": "Options to configure matching the provided position to a side of the street."
        },
        "StationDetails": {
          "$ref": "#/$defs/RouteStationDetails"
        },
        "Type": {
          "type": "string",
          "enum": [
            "AccessPoint",
            "DockingStation",
            "ParkingLot",
            "Station"
          ],
          "description": "The type of the place."
        },
        "WaypointIndex": {
          "type": "integer",
          "description": "Index of the waypoint in the request."
        }
      },
      "required": [
        "Position"
      ]
    },
    "RoutePedestrianSpan": {
      "type": "object",
      "properties": {
        "BestCaseDuration": {
          "type": "integer",
          "description": "Duration of the computed span without traffic congestion. Unit: seconds"
        },
        "Country": {
          "type": "string",
          "description": "3 letter Country code corresponding to the Span."
        },
        "Distance": {
          "type": "integer",
          "description": "Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties."
        },
        "Duration": {
          "type": "integer",
          "description": "Duration of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties. Unit: seconds"
        },
        "DynamicSpeed": {
          "$ref": "#/$defs/RouteSpanDynamicSpeedDetails"
        },
        "FunctionalClassification": {
          "type": "integer",
          "description": "A numerical value indicating the functional classification of the road segment corresponding to the span. Classification values are part of the hierarchical network that helps determine a logical and efficient route, and have the following definitions: Roads that allow for high volume, maximum speed traffic movement between and through major metropolitan areas. Roads that are used to channel traffic to functional class 1 roads for travel between and through cities in the shortest amount of time. Roads that intersect functional class 2 roads and provide a high volume of traffic movement at a lo"
        },
        "GeometryOffset": {
          "type": "integer",
          "description": "Offset in the leg geometry corresponding to the start of this span."
        },
        "Incidents": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Incidents corresponding to the span. These index into the Incidents in the parent Leg."
        },
        "Names": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocalizedString"
          },
          "description": "Provides an array of names of the pedestrian span in available languages."
        },
        "PedestrianAccess": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "Allowed",
              "Indoors",
              "NoThroughTraffic",
              "Park",
              "Stairs",
              "TollRoad"
            ]
          },
          "description": "Access attributes for a pedestrian corresponding to the span."
        },
        "Region": {
          "type": "string",
          "description": "2-3 letter Region code corresponding to the Span. This is either a province or a state."
        },
        "RoadAttributes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "Bridge",
              "BuiltUpArea",
              "ControlledAccessHighway",
              "DirtRoad",
              "DividedRoad",
              "Motorway",
              "PrivateRoad",
              "Ramp",
              "RightHandTraffic",
              "Roundabout",
              "Tunnel",
              "UnderConstruction"
            ]
          },
          "description": "Attributes for the road segment corresponding to the span."
        },
        "RouteNumbers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteNumber"
          },
          "description": "Designated route name or number corresponding to the span."
        },
        "SpeedLimit": {
          "$ref": "#/$defs/RouteSpanSpeedLimitDetails"
        },
        "TypicalDuration": {
          "type": "integer",
          "description": "Duration of the computed span under typical traffic congestion. Unit: seconds"
        }
      }
    },
    "RoutePedestrianSummary": {
 

# --- truncated at 32 KB (113 KB total) ---
# Full source: https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-calculate-routes-response-schema.json

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/amazon-location-service-calculate-routes-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.