Geoapify · Schema
RouteMatrixRequest
GeocodingGeospatialLocationMapsRoutingPlacesTimezoneMCPGeoJSONOpenStreetMapStatic MapsIsolines
Properties
| Name | Type | Description |
|---|---|---|
| mode | string | Travel profile used to calculate speeds, access rules, and road restrictions. `drive` represents a passenger car. |
| sources | array | Origin locations. Each source produces one row in `sources_to_targets`. |
| targets | array | Destination locations. Each target produces one column in every `sources_to_targets` row. |
| avoid | array | Road features, locations, polygons, or countries the router should avoid. Each rule requires a `type`; `importance` ranges from 0 to 1. |
| traffic | string | Traffic model for motorized modes. `free_flow` assumes uncongested roads; `approximated` reduces speeds on roads likely to be congested. |
| type | string | Route preference. `balanced` balances time and distance; `short` prioritizes distance; `less_maneuvers` penalizes turns. |
| max_speed | number | Maximum speed for driving, truck, and bus modes. Use 10–252 km/h with `units=metric`, or 6.5–155 mph with `units=imperial`. |
| units | string | Unit system for matrix distances. `metric` returns meters; `imperial` returns miles. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/geoapify/json-schema/geoapify-route-matrix-request-schema.json",
"title": "RouteMatrixRequest",
"x-generated": "2026-11-05",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/geoapify-route-matrix-api-openapi.yml#/components/schemas/RouteMatrixRequest",
"type": "object",
"required": [
"mode",
"sources",
"targets"
],
"properties": {
"mode": {
"type": "string",
"enum": [
"walk",
"hike",
"scooter",
"motorcycle",
"drive",
"light_truck",
"bicycle",
"mountain_bike",
"road_bike",
"bus",
"medium_truck",
"truck",
"truck_dangerous_goods",
"heavy_truck",
"long_truck"
],
"description": "Travel profile used to calculate speeds, access rules, and road restrictions. `drive` represents a passenger car."
},
"sources": {
"type": "array",
"minItems": 1,
"maxItems": 1000,
"description": "Origin locations. Each source produces one row in `sources_to_targets`.",
"items": {
"$ref": "#/$defs/MatrixLocation"
}
},
"targets": {
"type": "array",
"minItems": 1,
"maxItems": 1000,
"description": "Destination locations. Each target produces one column in every `sources_to_targets` row.",
"items": {
"$ref": "#/$defs/MatrixLocation"
}
},
"avoid": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"tolls",
"ferries",
"highways",
"green_zones",
"transfers",
"locations",
"polygons",
"country_codes"
]
},
"importance": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"values": {
"type": "array",
"items": {}
}
}
},
"maxItems": 100,
"description": "Road features, locations, polygons, or countries the router should avoid. Each rule requires a `type`; `importance` ranges from 0 to 1."
},
"traffic": {
"type": "string",
"enum": [
"free_flow",
"approximated"
],
"default": "free_flow",
"description": "Traffic model for motorized modes. `free_flow` assumes uncongested roads; `approximated` reduces speeds on roads likely to be congested."
},
"type": {
"type": "string",
"enum": [
"balanced",
"short",
"less_maneuvers"
],
"default": "balanced",
"description": "Route preference. `balanced` balances time and distance; `short` prioritizes distance; `less_maneuvers` penalizes turns."
},
"max_speed": {
"type": "number",
"minimum": 6.5,
"maximum": 252,
"description": "Maximum speed for driving, truck, and bus modes. Use 10–252 km/h with `units=metric`, or 6.5–155 mph with `units=imperial`."
},
"units": {
"type": "string",
"enum": [
"metric",
"imperial"
],
"default": "metric",
"description": "Unit system for matrix distances. `metric` returns meters; `imperial` returns miles."
}
},
"$defs": {
"MatrixLocation": {
"type": "object",
"required": [
"location"
],
"properties": {
"location": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"prefixItems": [
{
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude."
},
{
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude."
}
],
"items": false,
"description": "Coordinate in GeoJSON order: `[longitude, latitude]`."
}
}
}
}
}
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
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/geoapify-route-matrix-request"
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.