跳转到主要内容
POST
Calculate Matrix

请求规范

  • 方法与路径: POST /apis/v1/graphhopper/matrix-post
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/graphhopper/matrix-post
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

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

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
out_arrays
enum<string>[]
必填

Which matrices to include.

可用选项:
weights,
times,
distances
示例:
points
number[][]
必填

Coordinates for symmetric matrix as [longitude, latitude].

Required array length: 2 - 20 elements
profile
enum<string>
必填

Routing profile ID (e.g. 'car', 'bike', 'foot').

可用选项:
car
curbsides
enum<string>[]

Curbside per point ('any','left','right') for symmetrical.

可用选项:
any,
left,
right
fail_fast
boolean
默认值:true

If false, return null for unreachable entries and include hints.

from_curbsides
enum<string>[]

Curbside per origin ('any','left','right').

可用选项:
any,
left,
right
from_point_hints
string[]

Hint per origin for snapping preference.

from_points
number[][]

Origin coordinates as [longitude, latitude]. Provide with to_points.

point_hints
string[]

Hint per point for snapping preference (symmetrical).

snap_preventions
string[]

Feature types to avoid for snapping (e.g. 'toll', 'ferry').

to_curbsides
enum<string>[]

Curbside per destination ('any','left','right').

可用选项:
any,
left,
right
to_point_hints
string[]

Hint per destination for snapping preference.

to_points
number[][]

Destination coordinates as [longitude, latitude]. Provide with from_points.

响应

Tool result data

info
object
必填
distances
((number | null)[])[]
hints
object[]
times
((number | null)[])[]
weights
((number | null)[])[]