{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quadruper.invalid/contracts/geoapi-matrix-request.v1.schema.json",
  "title": "MatrixRequest",
  "description": "POST /v2/matrix body. sources x destinations is at most 25; geo-api checks the product.",
  "type": "object",
  "properties": {
    "sources": {
      "type": "array", "minItems": 1, "maxItems": 25,
      "items": { "$ref": "geoapi-common.v1.schema.json#/$defs/lnglat" }
    },
    "destinations": {
      "type": "array", "minItems": 1, "maxItems": 25,
      "items": { "$ref": "geoapi-common.v1.schema.json#/$defs/lnglat" }
    },
    "profile": { "$ref": "geoapi-common.v1.schema.json#/$defs/profile" }
  },
  "required": ["sources", "destinations"],
  "additionalProperties": false
}
