{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-calculate-routes-request-schema.json",
  "title": "CalculateRoutesRequest",
  "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/CalculateRoutesRequest",
  "type": "object",
  "properties": {
    "Allow": {
      "$ref": "#/$defs/RouteAllowOptions"
    },
    "ArrivalTime": {
      "type": "string",
      "description": "Time of arrival at the destination. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm Examples: 2020-04-22T17:57:24Z 2020-04-22T17:57:24+02:00"
    },
    "Avoid": {
      "$ref": "#/$defs/RouteAvoidanceOptions"
    },
    "DepartNow": {
      "type": "boolean",
      "description": "Uses the current time as the time of departure."
    },
    "DepartureTime": {
      "type": "string",
      "description": "Time of departure from the origin. Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm Examples: 2020-04-22T17:57:24Z 2020-04-22T17:57:24+02:00"
    },
    "Destination": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "description": "The final position for the route. In the World Geodetic System (WGS 84) format: [longitude, latitude]."
    },
    "DestinationOptions": {
      "$ref": "#/$defs/RouteDestinationOptions"
    },
    "Driver": {
      "$ref": "#/$defs/RouteDriverOptions"
    },
    "Exclude": {
      "$ref": "#/$defs/RouteExclusionOptions"
    },
    "InstructionsMeasurementSystem": {
      "type": "string",
      "enum": [
        "Metric",
        "Imperial"
      ],
      "description": "Measurement system to be used for instructions within steps in the response."
    },
    "Key": {
      "type": "string",
      "description": "Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request."
    },
    "Languages": {
      "type": "array",
      "items": {
        "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. Instructions in the requested language are returned only if they are available."
    },
    "LegAdditionalFeatures": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Elevation",
          "Incidents",
          "PassThroughWaypoints",
          "Summary",
          "Tolls",
          "TravelStepInstructions",
          "TruckRoadTypes",
          "TypicalDuration",
          "Zones",
          "Bookings",
          "IntermediateStops",
          "NextDepartures"
        ]
      },
      "description": "A list of optional additional parameters such as timezone that can be requested for each result. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only PassThroughWaypoints, Summary, and TravelStepInstructions Elevation: Retrieves the elevation information for each location. Incidents: Provides information on traffic incidents along the route. PassThroughWaypoints: Indicates waypoints that are passed through without stopping. Summary: Returns a summary of the route, including distance and duration. Tolls: Supplies toll cost information along the route. TravelStepInstruc"
    },
    "LegGeometryFormat": {
      "type": "string",
      "enum": [
        "FlexiblePolyline",
        "Simple"
      ],
      "description": "Specifies the format of the geometry returned for each leg of the route. You can choose between two different geometry encoding formats. FlexiblePolyline: A compact and precise encoding format for the leg geometry. For more information on the format, see the GitHub repository for https://github.com/aws-geospatial/polyline. Simple: A less compact encoding, which is easier to decode but may be less precise and result in larger payloads."
    },
    "MaxAlternatives": {
      "type": "integer",
      "description": "Maximum number of alternative routes to be provided in the response, if available. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only up to 3 alternative routes."
    },
    "OptimizeRoutingFor": {
      "type": "string",
      "enum": [
        "FastestRoute",
        "ShortestRoute"
      ],
      "description": "Controls the trade-off between achieving the shortest travel time (FastestRoute) and achieving the shortest physical distance ((ShortestRoute) when calculating each route in the matrix. Default value: FastestRoute"
    },
    "Origin": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "description": "The start position for the route in World Geodetic System (WGS 84) format: [longitude, latitude]."
    },
    "OriginOptions": {
      "$ref": "#/$defs/RouteOriginOptions"
    },
    "SpanAdditionalFeatures": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "BestCaseDuration",
          "CarAccess",
          "Country",
          "Distance",
          "Duration",
          "DynamicSpeed",
          "FunctionalClassification",
          "Gates",
          "Incidents",
          "Names",
          "Notices",
          "PedestrianAccess",
          "RailwayCrossings",
          "Region",
          "RoadAttributes",
          "RouteNumbers",
          "ScooterAccess",
          "SpeedLimit",
          "TollSystems",
          "TruckAccess",
          "TruckRoadTypes",
          "TypicalDuration",
          "Zones",
          "Consumption"
        ]
      },
      "description": "A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
    },
    "Tolls": {
      "$ref": "#/$defs/RouteTollOptions"
    },
    "Traffic": {
      "$ref": "#/$defs/RouteTrafficOptions"
    },
    "TravelMode": {
      "type": "string",
      "enum": [
        "Car",
        "Pedestrian",
        "Scooter",
        "Truck",
        "Intermodal",
        "Transit"
      ],
      "description": "Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only Car, Pedestrian, and Scooter values. Default value: Car"
    },
    "TravelModeOptions": {
      "$ref": "#/$defs/RouteTravelModeOptions"
    },
    "TravelStepType": {
      "type": "string",
      "enum": [
        "Default",
        "TurnByTurn"
      ],
      "description": "Type of step returned by the response. Default provides basic steps intended for web based applications. TurnByTurn provides detailed instructions with more granularity intended for a turn based navigation system. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions Default does not return any steps."
    },
    "Waypoints": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RouteWaypoint"
      },
      "description": "List of waypoints between the Origin and Destination. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions max length is 100. Max length: 23"
    }
  },
  "required": [
    "Destination",
    "Origin"
  ],
  "$defs": {
    "Corridor": {
      "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."
        },
        "Radius": {
          "type": "integer",
          "description": "Radius that defines the width of the corridor."
        }
      },
      "required": [
        "LineString",
        "Radius"
      ]
    },
    "PolylineCorridor": {
      "type": "object",
      "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."
        },
        "Radius": {
          "type": "integer",
          "description": "Considers all roads within the provided radius to match the provided destination to. The roads that are considered are determined by the provided Strategy. Unit: meters"
        }
      },
      "required": [
        "Polyline",
        "Radius"
      ]
    },
    "RouteAllowOptions": {
      "type": "object",
      "properties": {
        "Hot": {
          "type": "boolean",
          "description": "Allow Hot (High Occupancy Toll) lanes while calculating the route. Default value: false"
        },
        "Hov": {
          "type": "boolean",
          "description": "Allow Hov (High Occupancy vehicle) lanes while calculating the route. Default value: false"
        }
      }
    },
    "RouteAvoidanceArea": {
      "type": "object",
      "properties": {
        "Except": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteAvoidanceAreaGeometry"
          },
          "description": "Exceptions to the provided avoidance geometry, to be included while calculating the route."
        },
        "Geometry": {
          "$ref": "#/$defs/RouteAvoidanceAreaGeometry"
        }
      },
      "required": [
        "Geometry"
      ]
    },
    "RouteAvoidanceAreaGeometry": {
      "type": "object",
      "properties": {
        "Corridor": {
          "$ref": "#/$defs/Corridor"
        },
        "BoundingBox": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "Geometry defined as a bounding box. The first pair represents the X and Y coordinates (longitude and latitude,) of the southwest corner of the bounding box; the second pair represents the X and Y coordinates (longitude and latitude) of the northeast corner."
        },
        "Polygon": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          "description": "Geometry defined as a polygon with only one linear ring."
        },
        "PolylineCorridor": {
          "$ref": "#/$defs/PolylineCorridor"
        },
        "PolylinePolygon": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of Isoline PolylinePolygon, for each isoline PolylinePolygon, it contains PolylinePolygon of the first linear ring (the outer ring) and from 2nd item to the last item (the inner rings). For more information on polyline encoding, see https://github.com/aws-geospatial/polyline."
        }
      }
    },
    "RouteAvoidanceOptions": {
      "type": "object",
      "properties": {
        "Areas": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteAvoidanceArea"
          },
          "description": "Areas to be avoided. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "CarShuttleTrains": {
          "type": "boolean",
          "description": "Avoid car-shuttle-trains while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "ControlledAccessHighways": {
          "type": "boolean",
          "description": "Avoid controlled access highways while calculating the route."
        },
        "DirtRoads": {
          "type": "boolean",
          "description": "Avoid dirt roads while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "Ferries": {
          "type": "boolean",
          "description": "Avoid ferries while calculating the route."
        },
        "SeasonalClosure": {
          "type": "boolean",
          "description": "Avoid roads that have seasonal closure while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "TollRoads": {
          "type": "boolean",
          "description": "Avoids roads where the specified toll transponders are the only mode of payment."
        },
        "TollTransponders": {
          "type": "boolean",
          "description": "Avoids roads where the specified toll transponders are the only mode of payment. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "TruckRoadTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Truck road type identifiers. BK1 through BK4 apply only to Sweden. A2,A4,B2,B4,C,D,ET2,ET4 apply only to Mexico. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. There are currently no other supported values as of 26th April 2024."
        },
        "Tunnels": {
          "type": "boolean",
          "description": "Avoid tunnels while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "UTurns": {
          "type": "boolean",
          "description": "Avoid U-turns for calculation on highways and motorways. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "ZoneCategories": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteAvoidanceZoneCategory"
          },
          "description": "Zone categories to be avoided. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        }
      }
    },
    "RouteAvoidanceZoneCategory": {
      "type": "object",
      "properties": {
        "Category": {
          "type": "string",
          "enum": [
            "CongestionPricing",
            "Environmental",
            "Vignette"
          ],
          "description": "Zone category to be avoided."
        }
      },
      "required": [
        "Category"
      ]
    },
    "RouteCarOptions": {
      "type": "object",
      "properties": {
        "EngineType": {
          "type": "string",
          "enum": [
            "Electric",
            "InternalCombustion",
            "PluginHybrid"
          ],
          "description": "Engine type of the vehicle. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "LicensePlate": {
          "$ref": "#/$defs/RouteVehicleLicensePlate"
        },
        "MaxSpeed": {
          "type": "number",
          "description": "Maximum speed specified. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. Unit: kilometers per hour"
        },
        "Occupancy": {
          "type": "integer",
          "description": "The number of occupants in the vehicle. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. Default value: 1"
        }
      }
    },
    "RouteDestinationOptions": {
      "type": "object",
      "properties": {
        "AvoidActionsForDistance": {
          "type": "integer",
          "description": "The distance in meters from the destination point within which certain routing actions (such as U-turns or left turns across traffic) are restricted. This helps generate more practical routes by avoiding potentially dangerous maneuvers near the endpoint."
        },
        "AvoidUTurns": {
          "type": "boolean",
          "description": "Avoid U-turns for calculation on highways and motorways."
        },
        "Heading": {
          "type": "number",
          "description": "GPS Heading at the position."
        },
        "Matching": {
          "$ref": "#/$defs/RouteMatchingOptions"
        },
        "SideOfStreet": {
          "$ref": "#/$defs/RouteSideOfStreetOptions"
        },
        "StopDuration": {
          "type": "integer",
          "description": "Duration of the stop. Unit: seconds"
        }
      }
    },
    "RouteDriverOptions": {
      "type": "object",
      "properties": {
        "Schedule": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouteDriverScheduleInterval"
          },
          "description": "Driver work-rest schedule. Stops are added to fulfil the provided rest schedule."
        }
      }
    },
    "RouteDriverScheduleInterval": {
      "type": "object",
      "properties": {
        "DriveDuration": {
          "type": "integer",
          "description": "Maximum allowed driving time before stopping to rest. Unit: seconds"
        },
        "RestDuration": {
          "type": "integer",
          "description": "Resting time before the driver can continue driving. Unit: seconds"
        }
      },
      "required": [
        "DriveDuration",
        "RestDuration"
      ]
    },
    "RouteEmissionType": {
      "type": "object",
      "properties": {
        "Co2EmissionClass": {
          "type": "string",
          "description": "The CO 2 emission classes."
        },
        "Type": {
          "type": "string",
          "description": "Type of the emission. Valid values: Euro1, Euro2, Euro3, Euro4, Euro5, Euro6, EuroEev"
        }
      },
      "required": [
        "Type"
      ]
    },
    "RouteExclusionOptions": {
      "type": "object",
      "properties": {
        "Countries": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of countries to be avoided defined by two-letter or three-letter country codes."
        }
      },
      "required": [
        "Countries"
      ]
    },
    "RouteIntermodalOptions": {
      "type": "object",
      "properties": {
        "AccessibilityAttributes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "Wheelchair"
            ]
          },
          "description": "Accessibility attributes to consider when calculating the route."
        },
        "MaxTransfers": {
          "type": "integer",
          "description": "Maximum number of transfers allowed when calculating the route."
        },
        "Pedestrian": {
          "$ref": "#/$defs/RouteIntermodalPedestrianOptions"
        },
        "Rental": {
          "$ref": "#/$defs/RouteIntermodalRentalOptions"
        },
        "Taxi": {
          "$ref": "#/$defs/RouteIntermodalTaxiOptions"
        },
        "Transit": {
          "$ref": "#/$defs/RouteIntermodalTransitOptions"
        },
        "Vehicle": {
          "$ref": "#/$defs/RouteIntermodalVehicleOptions"
        }
      }
    },
    "RouteIntermodalPedestrianOptions": {
      "type": "object",
      "properties": {
        "MaxDistance": {
          "type": "integer",
          "description": "Maximum walking distance allowed. Unit: meters"
        },
        "Speed": {
          "type": "number",
          "description": "Walking speed. Unit: kilometers per hour"
        }
      }
    },
    "RouteIntermodalRentalOptions": {
      "type": "object",
      "properties": {
        "AllowedModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "All",
              "Car"
            ]
          },
          "description": "Allowed rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes."
        },
        "EnabledFor": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "FirstLeg",
              "LastLeg",
              "EntireRoute",
              "None"
            ]
          },
          "description": "Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values: FirstLeg - Enable this leg type for the first non-pedestrian leg of the route. LastLeg - Enable this leg type for the last non-pedestrian leg of the route. EntireRoute - Enable this leg type for the entire route. None - Disable this leg type entirely."
        },
        "ExcludedModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "All",
              "Car"
            ]
          },
          "description": "Excluded rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes."
        }
      }
    },
    "RouteIntermodalTaxiOptions": {
      "type": "object",
      "properties": {
        "AllowedModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "All",
              "Car"
            ]
          },
          "description": "Allowed taxi transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes."
        },
        "EnabledFor": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "FirstLeg",
              "LastLeg",
              "EntireRoute",
              "None"
            ]
          },
          "description": "Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values: FirstLeg - Enable this leg type for the first non-pedestrian leg of the route. LastLeg - Enable this leg type for the last non-pedestrian leg of the route. EntireRoute - Enable this leg type for the entire route. None - Disable this leg type entirely."
        },
        "ExcludedModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "All",
              "Car"
            ]
          },
          "description": "Excluded taxi transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes."
        }
      }
    },
    "RouteIntermodalTransitOptions": {
      "type": "object",
      "properties": {
        "AllowedModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "AerialTramway",
              "Airplane",
              "All",
              "Bus",
              "BusRapidTransit",
              "CityTrain",
              "Ferry",
              "FunicularRailway",
              "HighSpeedTrain",
              "IntercityTrain",
              "InterregionalTrain",
              "LightRail",
              "Monorail",
              "PrivateBus",
              "RegionalTrain",
              "Subway"
            ]
          },
          "description": "Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes."
        },
        "EnabledFor": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "FirstLeg",
              "LastLeg",
              "EntireRoute",
              "None"
            ]
          },
          "description": "Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values: FirstLeg - Enable this leg type for the first non-pedestrian leg of the route. LastLeg - Enable this leg type for the last non-pedestrian leg of the route. EntireRoute - Enable this leg type for the entire route. None - Disable this leg type entirely."
        },
        "ExcludedModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "AerialTramway",
              "Airplane",
              "All",
              "Bus",
              "BusRapidTransit",
              "CityTrain",
              "Ferry",
              "FunicularRailway",
              "HighSpeedTrain",
              "IntercityTrain",
              "InterregionalTrain",
              "LightRail",
              "Monorail",
              "PrivateBus",
              "RegionalTrain",
              "Subway"
            ]
          },
          "description": "Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes."
        }
      }
    },
    "RouteIntermodalVehicleOptions": {
      "type": "object",
      "properties": {
        "AllowedModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "All",
              "Car"
            ]
          },
          "description": "Allowed vehicle transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes."
        },
        "EnabledFor": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "FirstLeg",
              "LastLeg",
              "EntireRoute",
              "None"
            ]
          },
          "description": "Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values: FirstLeg - Enable this leg type for the first non-pedestrian leg of the route. LastLeg - Enable this leg type for the last non-pedestrian leg of the route. EntireRoute - Enable this leg type for the entire route. None - Disable this leg type entirely."
        },
        "ExcludedModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "All",
              "Car"
            ]
          },
          "description": "Excluded vehicle transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes."
        }
      }
    },
    "RouteMatchingOptions": {
      "type": "object",
      "properties": {
        "NameHint": {
          "type": "string",
          "description": "Attempts to match the provided position to a road similar to the provided name."
        },
        "OnRoadThreshold": {
          "type": "integer",
          "description": "If the distance to a highway/bridge/tunnel/sliproad is within threshold, the waypoint will be snapped to the highway/bridge/tunnel/sliproad. Unit: meters"
        },
        "Radius": {
          "type": "integer",
          "description": "Considers all roads within the provided radius to match the provided destination to. The roads that are considered are determined by the provided Strategy. Unit: meters"
        },
        "Strategy": {
          "type": "string",
          "enum": [
            "MatchAny",
            "MatchMostSignificantRoad"
          ],
          "description": "Strategy that defines matching of the position onto the road network. MatchAny considers all roads possible, whereas MatchMostSignificantRoad matches to the most significant road."
        }
      }
    },
    "RouteOriginOptions": {
      "type": "object",
      "properties": {
        "AvoidActionsForDistance": {
          "type": "integer",
          "description": "Avoids actions for the provided distance. This is typically to consider for users in moving vehicles who may not have sufficient time to make an action at an origin or a destination."
        },
        "AvoidUTurns": {
          "type": "boolean",
          "description": "Avoid U-turns for calculation on highways and motorways."
        },
        "Heading": {
          "type": "number",
          "description": "GPS Heading at the position."
        },
        "Matching": {
          "$ref": "#/$defs/RouteMatchingOptions"
        },
        "SideOfStreet": {
          "$ref": "#/$defs/RouteSideOfStreetOptions"
        }
      }
    },
    "RoutePedestrianOptions": {
      "type": "object",
      "properties": {
        "Speed": {
          "type": "number",
          "description": "Walking speed in Kilometers per hour."
        }
      }
    },
    "RouteScooterOptions": {
      "type": "object",
      "properties": {
        "EngineType": {
          "type": "string",
          "enum": [
            "Electric",
            "InternalCombustion",
            "PluginHybrid"
          ],
          "description": "Engine type of the vehicle. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "LicensePlate": {
          "$ref": "#/$defs/RouteVehicleLicensePlate"
        },
        "MaxSpeed": {
          "type": "number",
          "description": "Maximum speed Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. Unit: kilometers per hour"
        },
        "Occupancy": {
          "type": "integer",
          "description": "The number of occupants in the vehicle. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. Default value: 1"
        }
      }
    },
    "RouteSideOfStreetOptions": {
      "type": "object",
      "properties": {
        "Position": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "Position in World Geodetic System (WGS 84) format: [longitude, latitude]."
        },
        "UseWith": {
          "type": "string",
          "enum": [
            "AnyStreet",
            "DividedStreetOnly"
          ],
          "description": "Strategy that defines when the side of street position should be used. Default value: DividedStreetOnly"
        }
      },
      "required": [
        "Position"
      ]
    },
    "RouteTollOptions": {
      "type": "object",
      "properties": {
        "AllTransponders": {
          "type": "boolean",
          "description": "Specifies if the user has valid transponder with access to all toll systems. This impacts toll calculation, and if true the price with transponders is used."
        },
        "AllVignettes": {
          "type": "boolean",
          "description": "Specifies if the user has valid vignettes with access for all toll roads. If a user has a vignette for a toll road, then toll cost for that road is omitted since no further payment is necessary."
        },
        "Currency": {
          "type": "string",
          "description": "Currency code corresponding to the price. This is the same as Currency specified in the request."
        },
        "EmissionType": {
          "$ref": "#/$defs/RouteEmissionType"
        },
        "VehicleCategory": {
          "type": "string",
          "enum": [
            "Minibus"
          ],
          "description": "Vehicle category for toll cost calculation."
        }
      }
    },
    "RouteTrafficOptions": {
      "type": "object",
      "properties": {
        "FlowEventThresholdOverride": {
          "type": "integer",
          "description": "Duration for which flow traffic is considered valid. For this period, the flow traffic is used over historical traffic data. Flow traffic refers to congestion, which changes very quickly. Duration in seconds for which flow traffic event would be considered valid. While flow traffic event is valid it will be used over the historical traffic data."
        },
        "Usage": {
          "type": "string",
          "enum": [
            "IgnoreTrafficData",
            "UseTrafficData"
          ],
          "description": "Specifies how traffic data should be used when calculating routes. Default Value: UseTrafficData Traffic data usage depends on the time parameters in your route request: When Usage is set to UseTrafficData: If DepartNow is set to true, or if you specify DepartureTime or ArrivalTime, then all traffic data is considered (including live traffic and closures). If DepartNow, DepartureTime, and ArrivalTime are all unspecified, then only long-term closures are considered, regardless of this setting. When Usage is set to IgnoreTrafficData, then all traffic data is ignored regardless of the time parame"
        }
      }
    },
    "RouteTrailerOptions": {
      "type": "object",
      "properties": {
        "AxleCount": {
          "type": "integer",
          "description": "Total number of axles of the vehicle."
        },
        "TrailerCount": {
          "type": "integer",
          "description": "Number of trailers attached to the vehicle. Default value: 0"
        }
      }
    },
    "RouteTransitOptions": {
      "type": "object",
      "properties": {
        "AccessibilityAttributes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "Wheelchair"
            ]
          },
          "description": "Accessibility attributes to consider when calculating the route."
        },
        "AllowedModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "AerialTramway",
              "Airplane",
              "All",
              "Bus",
              "BusRapidTransit",
              "CityTrain",
              "Ferry",
              "FunicularRailway",
              "HighSpeedTrain",
              "IntercityTrain",
              "InterregionalTrain",
              "LightRail",
              "Monorail",
              "PrivateBus",
              "RegionalTrain",
              "Subway"
            ]
          },
          "description": "Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes."
        },
        "ExcludedModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "AerialTramway",
              "Airplane",
              "All",
              "Bus",
              "BusRapidTransit",
              "CityTrain",
              "Ferry",
              "FunicularRailway",
              "HighSpeedTrain",
              "IntercityTrain",
              "InterregionalTrain",
              "LightRail",
              "Monorail",
              "PrivateBus",
              "RegionalTrain",
              "Subway"
            ]
          },
          "description": "Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes."
        },
        "MaxTransfers": {
          "type": "integer",
          "description": "Maximum number of transfers allowed when calculating the route."
        },
        "Pedestrian": {
          "$ref": "#/$defs/RouteTransitPedestrianOptions"
        }
      }
    },
    "RouteTransitPedestrianOptions": {
      "type": "object",
      "properties": {
        "MaxDistance": {
          "type": "integer",
          "description": "Maximum walking distance allowed. Unit: meters"
        },
        "Speed": {
          "type": "number",
          "description": "Walking speed. Unit: kilometers per hour"
        }
      }
    },
    "RouteTravelModeOptions": {
      "type": "object",
      "properties": {
        "Car": {
          "$ref": "#/$defs/RouteCarOptions"
        },
        "Pedestrian": {
          "$ref": "#/$defs/RoutePedestrianOptions"
        },
        "Scooter": {
          "$ref": "#/$defs/RouteScooterOptions"
        },
        "Truck": {
          "$ref": "#/$defs/RouteTruckOptions"
        },
        "Intermodal": {
          "$ref": "#/$defs/RouteIntermodalOptions"
        },
        "Transit": {
          "$ref": "#/$defs/RouteTransitOptions"
        }
      }
    },
    "RouteTruckOptions": {
      "type": "object",
      "properties": {
        "AxleCount": {
          "type": "integer",
          "description": "Total number of axles of the vehicle."
        },
        "EngineType": {
          "type": "string",
          "enum": [
            "Electric",
            "InternalCombustion",
            "PluginHybrid"
          ],
          "description": "Engine type of the vehicle."
        },
        "GrossWeight": {
          "type": "integer",
          "description": "Gross weight of the vehicle including trailers, and goods at capacity. Unit: kilograms"
        },
        "HazardousCargos": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "Combustible",
              "Corrosive",
              "Explosive",
              "Flammable",
              "Gas",
              "HarmfulToWater",
              "Organic",
              "Other",
              "Poison",
              "PoisonousInhalation",
              "Radioactive"
            ]
          },
          "description": "List of Hazardous cargo contained in the vehicle."
        },
        "Height": {
          "type": "integer",
          "description": "Height of the vehicle. Unit: centimeters"
        },
        "HeightAboveFirstAxle": {
          "type": "integer",
          "description": "Height of the vehicle above its first axle. Unit: centimeters"
        },
        "KpraLength": {
          "type": "integer",
          "description": "Kingpin to rear axle length of the vehicle. Unit: centimeters"
        },
        "Length": {
          "type": "integer",
          "description": "Length of the vehicle. Unit: c"
        },
        "LicensePlate": {
          "$ref": "#/$defs/RouteVehicleLicensePlate"
        },
        "MaxSpeed": {
          "type": "number",
          "description": "Maximum speed Unit: kilometers per hour"
        },
        "Occupancy": {
          "type": "integer",
          "description": "The number of occupants in the vehicle. Default value: 1"
        },
        "PayloadCapacity": {
          "type": "integer",
          "description": "Payload capacity of the vehicle and trailers attached. Unit: kilograms"
        },
        "TireCount": {
          "type": "integer",
          "description": "Number of tires on the vehicle."
        },
        "Trailer": {
          "$ref": "#/$defs/RouteTrailerOptions"
        },
        "TruckType": {
          "type": "string",
          "enum": [
            "LightTruck",
            "StraightTruck",
            "Tractor"
          ],
          "description": "The type of truck: LightTruck for smaller delivery vehicles, StraightTruck for rigid body trucks, or Tractor for tractor-trailer combinations."
        },
        "TunnelRestrictionCode": {
          "type": "string",
          "description": "The tunnel restriction code. Tunnel categories in this list indicate the restrictions which apply to certain tunnels in Great Britain. They relate to the types of dangerous goods that can be transported through them. Tunnel Category B Risk Level: Limited risk Restrictions: Few restrictions Tunnel Category C Risk Level: Medium risk Restrictions: Some restrictions Tunnel Category D Risk Level: High risk Restrictions: Many restrictions occur Tunnel Category E Risk Level: Very high risk Restrictions: Restricted tunnel"
        },
        "WeightPerAxle": {
          "type": "integer",
          "description": "Heaviest weight per axle irrespective of the axle type or the axle group. Meant for usage in countries where the differences in axle types or axle groups are not distinguished. Unit: kilograms"
        },
        "WeightPerAxleGroup": {
          "$ref": "#/$defs/WeightPerAxleGroup"
        },
        "Width": {
          "type": "integer",
          "description": "Width of the vehicle. Unit: centimeters"
        }
      }
    },
    "RouteVehicleLicensePlate": {
      "type": "object",
      "properties": {
        "LastCharacter": {
          "type": "string",
          "description": "The last character of the License Plate."
        }
      }
    },
    "RouteWaypoint": {
      "type": "object",
      "properties": {
        "AvoidActionsForDistance": {
          "type": "integer",
          "description": "Avoids actions for the provided distance. This is typically to consider for users in moving vehicles who may not have sufficient time to make an action at an origin or a destination. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "AvoidUTurns": {
          "type": "boolean",
          "description": "Avoid U-turns for calculation on highways and motorways. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "Heading": {
          "type": "number",
          "description": "GPS Heading at the position. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "Matching": {
          "$ref": "#/$defs/RouteMatchingOptions"
        },
        "PassThrough": {
          "type": "boolean",
          "description": "If the waypoint should not be treated as a stop. If yes, the waypoint is passed through and doesn't split the route into different legs. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers."
        },
        "Position": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "Position in World Geodetic System (WGS 84) format: [longitude, latitude]."
        },
        "SideOfStreet": {
          "$ref": "#/$defs/RouteSideOfStreetOptions"
        },
        "StopDuration": {
          "type": "integer",
          "description": "Duration of the stop. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. Unit: seconds"
        }
      },
      "required": [
        "Position"
      ]
    },
    "WeightPerAxleGroup": {
      "type": "object",
      "properties": {
        "Single": {
          "type": "integer",
          "description": "Total weight in kilograms for single axle configurations. Unit: kilograms"
        },
        "Tandem": {
          "type": "integer",
          "description": "Total weight in kilograms for tandem (two adjacent) axle configurations. Unit: kilograms"
        },
        "Triple": {
          "type": "integer",
          "description": "Total weight in kilograms for triple (three adjacent) axle configurations. Unit: kilograms"
        },
        "Quad": {
          "type": "integer",
          "description": "Total weight in kilograms for quad (four adjacent) axle configurations. Unit: kilograms"
        },
        "Quint": {
          "type": "integer",
          "description": "Total weight in kilograms for quint (five adjacent) axle configurations. Unit: kilograms"
        }
      }
    }
  }
}