RoutePlanRequest
Holds input details about route waypoints, route preferences, vehicle parameters, and cost parameters
Properties
| Name | Type | Description |
|---|---|---|
| id | string | |
| waypoints | array | A list of waypoints through which the route is calculated. The first and last waypoints define the origin and destination of the route accordingly. These two waypoints are required and should be of a |
| vehicleType | object | |
| routingType | object | |
| hazmatType | array | |
| vehicleParameters | object | |
| avoid | array | Represents a list of road types to be avoided during route calculation |
| waypointOptimization | object | |
| departure | string | Date and time (with time zone) of departure. Expected 'date-time' format from RFC 3339 section 5.6 |
| arrival | string | Date and time (with time zone) of arrival. Expected 'date-time' format from RFC 3339 section 5.6 |
| costParameters | object | |
| governorSpeed | number | Governor speed (mph). When provided and greater than zero, limits the speed of each route segment to this value. |
| optimisticSearch | boolean | Optional parameter, attempts to provide the best location matching when enabled |
| alternatives | integer | Optional parameter to get alternative routes, up to 2 depending on the route length |
| tollProfile | object | |
| avoidAreas | array | Optional list of polygonal areas to avoid. Each area is defined as a sequence of Coordinates or UUID. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/milemaker-com/json-schema/milemaker-com-route-plan-request-schema.json",
"title": "RoutePlanRequest",
"description": "Holds input details about route waypoints, route preferences, vehicle parameters, and cost parameters",
"x-generated": "2026-11-18",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/milemaker-com-openapi.yml#/components/schemas/RoutePlanRequest",
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"waypoints": {
"type": "array",
"minItems": 2,
"maxItems": 30,
"description": "A list of waypoints through which the route is calculated. The first and last waypoints define the origin and destination of the route accordingly. These two waypoints are required and should be of a type 'break'.",
"items": {
"$ref": "#/$defs/Waypoint"
}
},
"vehicleType": {
"$ref": "#/$defs/VehicleType"
},
"routingType": {
"$ref": "#/$defs/RoutingType"
},
"hazmatType": {
"type": "array",
"items": {
"$ref": "#/$defs/HazmatType"
}
},
"vehicleParameters": {
"$ref": "#/$defs/VehicleParameters"
},
"avoid": {
"type": "array",
"description": "Represents a list of road types to be avoided during route calculation",
"items": {
"$ref": "#/$defs/AvoidType"
}
},
"waypointOptimization": {
"$ref": "#/$defs/WaypointOptimization"
},
"departure": {
"type": "string",
"description": "Date and time (with time zone) of departure. Expected 'date-time' format from RFC 3339 section 5.6"
},
"arrival": {
"type": "string",
"description": "Date and time (with time zone) of arrival. Expected 'date-time' format from RFC 3339 section 5.6"
},
"costParameters": {
"$ref": "#/$defs/CostParameters"
},
"governorSpeed": {
"type": "number",
"description": "Governor speed (mph). When provided and greater than zero, limits the speed of each route segment to this value.",
"minimum": 1,
"maximum": 100
},
"optimisticSearch": {
"type": "boolean",
"description": "Optional parameter, attempts to provide the best location matching when enabled"
},
"alternatives": {
"type": "integer",
"maximum": 2,
"minimum": 0,
"description": "Optional parameter to get alternative routes, up to 2 depending on the route length",
"default": 0
},
"tollProfile": {
"$ref": "#/$defs/TollProfile"
},
"avoidAreas": {
"type": "array",
"maxItems": 10,
"description": "Optional list of polygonal areas to avoid. Each area is defined as a sequence of Coordinates or UUID.",
"items": {
"$ref": "#/$defs/AvoidArea"
}
}
},
"required": [
"waypoints",
"vehicleType"
],
"$defs": {
"AreaByCoordinates": {
"type": "object",
"properties": {
"coordinates": {
"type": "array",
"items": {
"$ref": "#/$defs/GeoPoint"
}
}
},
"required": [
"coordinates"
]
},
"AreaById": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
}
},
"required": [
"id"
]
},
"AvoidArea": {
"oneOf": [
{
"$ref": "#/$defs/AreaById"
},
{
"$ref": "#/$defs/AreaByCoordinates"
}
]
},
"AvoidType": {
"description": "Represents a list of road types to be avoided during route calculation.\n\n`roadClosures` avoids roads reported as closed. Guide20 only. Accepted for `practical` and\n`shortest`, not for `fastest`, which always routes around closures using traffic. Not\nlisted means closed roads are not avoided.\n",
"type": "string",
"enum": [
"tolls",
"highways",
"dirtRoads",
"ferries",
"tunnels",
"uTurns",
"borderCrossings",
"roadClosures"
]
},
"CostParameters": {
"description": "The unit cost parameters for fuel cost, fuel consumption rate, maintenance costs, and time costs. Units in USD and miles per gallon. If a particular parameter is omitted, the corresponding total isl not reported in the `CostSummary` portion of the route result.",
"type": "object",
"additionalProperties": false,
"properties": {
"fuelPrice": {
"description": "USD / per gallon",
"type": "number"
},
"fuelEconomy": {
"description": "miles / per gallon",
"type": "number",
"format": "double"
},
"maintenanceCost": {
"description": "USD / per mile",
"type": "number"
},
"laborCost": {
"description": "USD / per hour",
"type": "number"
}
}
},
"GeoPoint": {
"type": "object",
"description": "Latitude and Longitude are the units that represent the coordinates at geographic coordinate system",
"additionalProperties": false,
"required": [
"lat",
"lon"
],
"properties": {
"lat": {
"type": "number",
"format": "double",
"minimum": -90,
"maximum": 90,
"description": "Latitude"
},
"lon": {
"type": "number",
"format": "double",
"minimum": -180,
"maximum": 180,
"description": "Longitude"
}
}
},
"HazmatType": {
"type": "string",
"enum": [
"explosive",
"gas",
"flammable",
"combustible",
"organic",
"poison",
"radioactive",
"corrosives",
"poisonousInhalation",
"other"
],
"description": "specifies type of hazardeous load being transported. This informs routing engine about road restrictions and preferred road network to transport this load."
},
"RoutingType": {
"description": "Specifies which optimization is applied during route calculation. The following are intended use cases for each route type.\n\n| **Route Type** | **Description** |\n| ------------ | ---------------- |\n| `Shortest` | used for mileage rating, minimizes distance |\n| `Practical` | used for mileage rating, minimizes travel duration, uses posted speed limits |\n| `Fastest` | used for trip planning, accepts additional avoid options, trip departure/arrival time, and uses traffic flow to calculate time |\n",
"type": "string",
"enum": [
"fastest",
"shortest",
"practical"
],
"default": "fastest"
},
"TollProfile": {
"type": "object",
"properties": {
"transponder": {
"type": "boolean",
"default": true
}
},
"description": "Optional parameter, true if vehicle uses transponder"
},
"VehicleLengthType": {
"type": "string",
"description": "Vehicle length",
"enum": [
"straight",
"48",
"53",
"double",
"triple"
]
},
"VehicleParameters": {
"type": "object",
"description": "Represents vehicle physical parameters. Default values are \n| Property | Value |\n| --------- | ------ |\n| length | '53' |\n| width | 102 |\n| height | 162 |\n| weight | 80000 |\n| axleCount | 5 |\n",
"properties": {
"length": {
"$ref": "#/$defs/VehicleLengthType"
},
"width": {
"type": "integer",
"description": "Vehicle width (inches)",
"minimum": 60,
"maximum": 102
},
"height": {
"type": "integer",
"description": "Vehicle height (inches)",
"minimum": 60,
"maximum": 240
},
"weight": {
"type": "integer",
"description": "Vehicle weight (pounds)",
"minimum": 1500,
"maximum": 120000
},
"axleCount": {
"type": "integer",
"description": "Defines total number of axles in the vehicle",
"minimum": 2,
"maximum": 10
}
}
},
"VehicleType": {
"description": "Represents a type of transport that will travel the route. Vehicle type affects restrictions and preferred road network.",
"type": "string",
"enum": [
"car",
"truck"
]
},
"Waypoint": {
"type": "object",
"description": "Represents a routes waypoint that is either origin, destination or an intermediate stop.",
"additionalProperties": false,
"required": [
"value"
],
"properties": {
"value": {
"type": "string",
"description": "a string representation of a geo-location in WGS84 coordinates"
},
"type": {
"$ref": "#/$defs/WaypointType"
},
"id": {
"type": "string",
"nullable": false,
"minLength": 1,
"description": "It is the optional identifier to track the original order after waypoint optimization and other manipulations\n"
}
}
},
"WaypointOptimization": {
"description": "Specifies whether to reorder the waypoints in the most efficient order possible. Options to `lockFirstWaypoint` and `lockLastWaypont` are interpreted only if `optimize` is true",
"type": "object",
"properties": {
"optimize": {
"type": "boolean",
"default": false
},
"lockFirstWaypoint": {
"type": "boolean",
"default": true
},
"lockLastWaypoint": {
"type": "boolean",
"default": false
}
}
},
"WaypointType": {
"type": "string",
"default": "break",
"description": "Type of location, either `break` or `through`. Each type controls two characteristics: whether or not to allow a u-turn at the location and whether or not to generate guidance/legs at the location. A `break` is a location at which we allow u-turns and generate legs and arrival/departure maneuvers. A `through` location is a location at which we neither allow u-turns nor generate legs or arrival/departure maneuvers.\nIf no type is provided, the type is assumed to be a `break`.\n",
"enum": [
"break",
"through"
]
}
}
}
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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/milemaker-com-route-plan-request"
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.