> ## 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

# Get Matrix

> Get Matrix

## Request contract

* **Method and path:** POST /apis/v1/graphhopper/get-matrix
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/graphhopper/get-matrix`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/graphhopper.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "graphhopper.get-matrix",
  "method": "POST",
  "path": "/apis/v1/graphhopper/get-matrix",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "curbside": {
              "description": "Optional parameter. Specifies on which side a point should be relative to the driver when she leaves/arrives at a start/target/via point. Must be 'any', 'left', or 'right'. Specify for either none or all points.",
              "items": {
                "enum": [
                  "any",
                  "left",
                  "right"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "fail_fast": {
              "default": true,
              "description": "Specifies whether or not the matrix calculation should return with an error as soon as possible in case some points cannot be found or some points are not connected. If set to false, the matrix will be calculated for all valid points and contain null values for entries that could not be calculated.",
              "type": "boolean"
            },
            "from_curbside": {
              "description": "Curbside setting for the from_point parameter. Must be 'any', 'left', or 'right'.",
              "items": {
                "enum": [
                  "any",
                  "left",
                  "right"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "from_point": {
              "description": "The origin points for the routes in 'latitude,longitude' format. Use together with to_point for asymmetric matrices.",
              "examples": [
                [
                  "52.5200,13.4050"
                ]
              ],
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "from_point_hint": {
              "description": "For the from_point parameter. Specifies a hint to prefer a certain street for the closest location lookup.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "out_array": {
              "description": "Specifies which arrays should be included in the response. Specify one or more of 'weights', 'times', 'distances'. The units of distances are meters, times are seconds, and weights are arbitrary.",
              "examples": [
                [
                  "times",
                  "distances"
                ]
              ],
              "items": {
                "enum": [
                  "weights",
                  "times",
                  "distances"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "point": {
              "description": "Specify multiple points in 'latitude,longitude' format for which the matrix should be calculated. The starts are identical to the destinations. If there are N points, then NxN entries will be calculated. Specify at least three points. Cannot be used together with from_point or to_point.",
              "items": {
                "type": "string"
              },
              "maxItems": 20,
              "minItems": 1,
              "type": "array"
            },
            "point_hint": {
              "description": "Optional parameter. Specifies a hint for each point parameter to prefer a certain street for the closest location lookup.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "profile": {
              "description": "The routing profile. It determines the network, speed and other physical attributes used when computing the route. Valid values include 'car', 'bike', 'foot', 'hike', 'mtb', 'racingbike', 'scooter', 'truck', and 'small_truck'.",
              "enum": [
                "car"
              ],
              "type": "string"
            },
            "snap_prevention": {
              "description": "Optional parameter to prevent snapping to specific types of roads. Supported values: 'motorway', 'trunk', 'ferry', 'tunnel', 'bridge', 'ford'.",
              "items": {
                "enum": [
                  "motorway",
                  "trunk",
                  "ferry",
                  "tunnel",
                  "bridge",
                  "ford"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "to_curbside": {
              "description": "Curbside setting for the to_point parameter. Must be 'any', 'left', or 'right'.",
              "items": {
                "enum": [
                  "any",
                  "left",
                  "right"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "to_point": {
              "description": "The destination points for the routes in 'latitude,longitude' format. Use together with from_point for asymmetric matrices.",
              "examples": [
                [
                  "48.1351,11.5820",
                  "53.5511,9.9937"
                ]
              ],
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "to_point_hint": {
              "description": "For the to_point parameter. Specifies a hint to prefer a certain street for the closest location lookup.",
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "point",
            "profile"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0803 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/graphhopper.json POST /apis/v1/graphhopper/get-matrix
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/get-matrix:
    post:
      tags:
        - GraphHopper
      summary: Get Matrix
      operationId: graphhopper.get-matrix
      requestBody:
        content:
          application/json:
            schema:
              properties:
                curbside:
                  description: >-
                    Optional parameter. Specifies on which side a point should
                    be relative to the driver when she leaves/arrives at a
                    start/target/via point. Must be 'any', 'left', or 'right'.
                    Specify for either none or all points.
                  items:
                    enum:
                      - any
                      - left
                      - right
                    type: string
                  type: array
                fail_fast:
                  default: true
                  description: >-
                    Specifies whether or not the matrix calculation should
                    return with an error as soon as possible in case some points
                    cannot be found or some points are not connected. If set to
                    false, the matrix will be calculated for all valid points
                    and contain null values for entries that could not be
                    calculated.
                  type: boolean
                from_curbside:
                  description: >-
                    Curbside setting for the from_point parameter. Must be
                    'any', 'left', or 'right'.
                  items:
                    enum:
                      - any
                      - left
                      - right
                    type: string
                  type: array
                from_point:
                  description: >-
                    The origin points for the routes in 'latitude,longitude'
                    format. Use together with to_point for asymmetric matrices.
                  examples:
                    - - 52.5200,13.4050
                  items:
                    type: string
                  type: array
                from_point_hint:
                  description: >-
                    For the from_point parameter. Specifies a hint to prefer a
                    certain street for the closest location lookup.
                  items:
                    type: string
                  type: array
                out_array:
                  description: >-
                    Specifies which arrays should be included in the response.
                    Specify one or more of 'weights', 'times', 'distances'. The
                    units of distances are meters, times are seconds, and
                    weights are arbitrary.
                  examples:
                    - - times
                      - distances
                  items:
                    enum:
                      - weights
                      - times
                      - distances
                    type: string
                  type: array
                point:
                  description: >-
                    Specify multiple points in 'latitude,longitude' format for
                    which the matrix should be calculated. The starts are
                    identical to the destinations. If there are N points, then
                    NxN entries will be calculated. Specify at least three
                    points. Cannot be used together with from_point or to_point.
                  items:
                    type: string
                  maxItems: 20
                  minItems: 1
                  type: array
                point_hint:
                  description: >-
                    Optional parameter. Specifies a hint for each point
                    parameter to prefer a certain street for the closest
                    location lookup.
                  items:
                    type: string
                  type: array
                profile:
                  description: >-
                    The routing profile. It determines the network, speed and
                    other physical attributes used when computing the route.
                    Valid values include 'car', 'bike', 'foot', 'hike', 'mtb',
                    'racingbike', 'scooter', 'truck', and 'small_truck'.
                  enum:
                    - car
                  type: string
                snap_prevention:
                  description: >-
                    Optional parameter to prevent snapping to specific types of
                    roads. Supported values: 'motorway', 'trunk', 'ferry',
                    'tunnel', 'bridge', 'ford'.
                  items:
                    enum:
                      - motorway
                      - trunk
                      - ferry
                      - tunnel
                      - bridge
                      - ford
                    type: string
                  type: array
                to_curbside:
                  description: >-
                    Curbside setting for the to_point parameter. Must be 'any',
                    'left', or 'right'.
                  items:
                    enum:
                      - any
                      - left
                      - right
                    type: string
                  type: array
                to_point:
                  description: >-
                    The destination points for the routes in
                    'latitude,longitude' format. Use together with from_point
                    for asymmetric matrices.
                  examples:
                    - - 48.1351,11.5820
                      - 53.5511,9.9937
                  items:
                    type: string
                  type: array
                to_point_hint:
                  description: >-
                    For the to_point parameter. Specifies a hint to prefer a
                    certain street for the closest location lookup.
                  items:
                    type: string
                  type: array
              required:
                - point
                - profile
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response576A0Ea506F3_connect_GRAPHHOPPER_GET_MATRIX__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_GET_MATRIX__output__public_data:
      $ref: >-
        #/components/schemas/Response576A0Ea506F3_connect_GRAPHHOPPER_GET_MATRIX__output__fafd51a78430c324
    Response576A0Ea506F3_connect_GRAPHHOPPER_GET_MATRIX__output__fafd51a78430c324:
      properties:
        distances:
          items:
            items:
              anyOf:
                - type: number
                - type: 'null'
            type: array
          type: array
        hints:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_GRAPHHOPPER_GET_MATRIX__output__3999ec953f73543f
          type: array
        info:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_GRAPHHOPPER_GET_MATRIX__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_GET_MATRIX__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_GET_MATRIX__output__3dcbe9a1c56f2a1c:
      properties:
        copyrights:
          items:
            type: string
          type: array
        took:
          type: number
      required:
        - copyrights
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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