> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Calculate Matrix

> Calculate Matrix

## 请求规范

* **方法与路径:** POST /apis/v1/graphhopper/matrix-post
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/graphhopper/matrix-post`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/graphhopper.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "graphhopper.matrix-post",
  "method": "POST",
  "path": "/apis/v1/graphhopper/matrix-post",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "curbsides": {
              "description": "Curbside per point ('any','left','right') for symmetrical.",
              "items": {
                "enum": [
                  "any",
                  "left",
                  "right"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "fail_fast": {
              "default": true,
              "description": "If false, return null for unreachable entries and include hints.",
              "type": "boolean"
            },
            "from_curbsides": {
              "description": "Curbside per origin ('any','left','right').",
              "items": {
                "enum": [
                  "any",
                  "left",
                  "right"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "from_point_hints": {
              "description": "Hint per origin for snapping preference.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "from_points": {
              "description": "Origin coordinates as [longitude, latitude]. Provide with to_points.",
              "items": {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              "type": "array"
            },
            "out_arrays": {
              "description": "Which matrices to include.",
              "examples": [
                [
                  "times",
                  "distances"
                ]
              ],
              "items": {
                "enum": [
                  "weights",
                  "times",
                  "distances"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "point_hints": {
              "description": "Hint per point for snapping preference (symmetrical).",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "points": {
              "description": "Coordinates for symmetric matrix as [longitude, latitude].",
              "items": {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              "maxItems": 20,
              "minItems": 2,
              "type": "array"
            },
            "profile": {
              "description": "Routing profile ID (e.g. 'car', 'bike', 'foot').",
              "enum": [
                "car"
              ],
              "type": "string"
            },
            "snap_preventions": {
              "description": "Feature types to avoid for snapping (e.g. 'toll', 'ferry').",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "to_curbsides": {
              "description": "Curbside per destination ('any','left','right').",
              "items": {
                "enum": [
                  "any",
                  "left",
                  "right"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "to_point_hints": {
              "description": "Hint per destination for snapping preference.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "to_points": {
              "description": "Destination coordinates as [longitude, latitude]. Provide with from_points.",
              "items": {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              "type": "array"
            }
          },
          "required": [
            "out_arrays",
            "points",
            "profile"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 当前暂无预估金额。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/graphhopper.json POST /apis/v1/graphhopper/matrix-post
openapi: 3.1.0
info:
  description: ''
  title: GraphHopper
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    graphhopper:
      description: ''
      title: GraphHopper
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 6a72f8e2fa7fb1c29379e3b24b3a247c8428a3b6ed621b3f84f84e75cb0de2bc
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/graphhopper/geocode-get
    - /apis/v1/graphhopper/get-matrix
    - /apis/v1/graphhopper/get-route
    - /apis/v1/graphhopper/isochrone-get
    - /apis/v1/graphhopper/matrix-post
    - /apis/v1/graphhopper/route-post
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:22e20337213f172b8fcc500f2547a9f60df834408274b43196a13f41bb1ee19e
    facts_hash: 6a72f8e2fa7fb1c29379e3b24b3a247c8428a3b6ed621b3f84f84e75cb0de2bc
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: graphhopper
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/graphhopper/matrix-post:
    post:
      tags:
        - GraphHopper
      summary: Calculate Matrix
      operationId: graphhopper.matrix-post
      requestBody:
        content:
          application/json:
            schema:
              properties:
                curbsides:
                  description: Curbside per point ('any','left','right') for symmetrical.
                  items:
                    enum:
                      - any
                      - left
                      - right
                    type: string
                  type: array
                fail_fast:
                  default: true
                  description: >-
                    If false, return null for unreachable entries and include
                    hints.
                  type: boolean
                from_curbsides:
                  description: Curbside per origin ('any','left','right').
                  items:
                    enum:
                      - any
                      - left
                      - right
                    type: string
                  type: array
                from_point_hints:
                  description: Hint per origin for snapping preference.
                  items:
                    type: string
                  type: array
                from_points:
                  description: >-
                    Origin coordinates as [longitude, latitude]. Provide with
                    to_points.
                  items:
                    items:
                      type: number
                    type: array
                  type: array
                out_arrays:
                  description: Which matrices to include.
                  examples:
                    - - times
                      - distances
                  items:
                    enum:
                      - weights
                      - times
                      - distances
                    type: string
                  type: array
                point_hints:
                  description: Hint per point for snapping preference (symmetrical).
                  items:
                    type: string
                  type: array
                points:
                  description: Coordinates for symmetric matrix as [longitude, latitude].
                  items:
                    items:
                      type: number
                    type: array
                  maxItems: 20
                  minItems: 2
                  type: array
                profile:
                  description: Routing profile ID (e.g. 'car', 'bike', 'foot').
                  enum:
                    - car
                  type: string
                snap_preventions:
                  description: Feature types to avoid for snapping (e.g. 'toll', 'ferry').
                  items:
                    type: string
                  type: array
                to_curbsides:
                  description: Curbside per destination ('any','left','right').
                  items:
                    enum:
                      - any
                      - left
                      - right
                    type: string
                  type: array
                to_point_hints:
                  description: Hint per destination for snapping preference.
                  items:
                    type: string
                  type: array
                to_points:
                  description: >-
                    Destination coordinates as [longitude, latitude]. Provide
                    with from_points.
                  items:
                    items:
                      type: number
                    type: array
                  type: array
              required:
                - out_arrays
                - points
                - profile
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response576A0Ea506F3_connect_GRAPHHOPPER_MATRIX_POST__output__public_data
          description: Tool result data
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response576A0Ea506F3_connect_GRAPHHOPPER_MATRIX_POST__output__public_data:
      $ref: >-
        #/components/schemas/Response576A0Ea506F3_connect_GRAPHHOPPER_MATRIX_POST__output__4b405fc64759bd03
    Response576A0Ea506F3_connect_GRAPHHOPPER_MATRIX_POST__output__4b405fc64759bd03:
      properties:
        distances:
          items:
            items:
              anyOf:
                - type: number
                - type: 'null'
            type: array
          type: array
        hints:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_GRAPHHOPPER_MATRIX_POST__output__3999ec953f73543f
          type: array
        info:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_GRAPHHOPPER_MATRIX_POST__output__3dcbe9a1c56f2a1c
        times:
          items:
            items:
              anyOf:
                - type: number
                - type: 'null'
            type: array
          type: array
        weights:
          items:
            items:
              anyOf:
                - type: number
                - type: 'null'
            type: array
          type: array
      required:
        - info
      type: object
    Response576A0Ea506F3_connect_GRAPHHOPPER_MATRIX_POST__output__3999ec953f73543f:
      properties:
        details:
          type: string
        invalid_from_points:
          items:
            type: integer
          type: array
        invalid_to_points:
          items:
            type: integer
          type: array
        message:
          type: string
        point_pairs:
          items:
            items:
              type: integer
            type: array
          type: array
      required:
        - message
      type: object
    Response576A0Ea506F3_connect_GRAPHHOPPER_MATRIX_POST__output__3dcbe9a1c56f2a1c:
      properties:
        copyrights:
          items:
            type: string
          type: array
        took:
          type: number
      required:
        - copyrights
        - took
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.