跳转到主要内容
POST
POST Route

请求规范

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

费用与请求规则

当前未提供请求参考价格;请使用接口支持的报价功能确认费用。 声明的单位费率:每 provider_credit $0.000001 USD。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。
  • 声明的单位费率(USD): 1e-06
  • 计费单位: provider_credit
  • 计费依据: response_units
  • 公开参考倍率: 1.0
  • 声明的最大计数或单位数: 10000000
  • 结算证据来源: response_body

授权

Authorization
string
header
必填

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

请求体

application/json
points
number[][]
必填

Ordered list of [lon, lat] pairs for route waypoints; at least two points required

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

Vehicle profile (e.g., 'car', 'bike', 'foot')

可用选项:
car
optimize
enum<boolean>
必填

Reorder points to minimize travel time

可用选项:
false
debug
boolean
默认值:false

Enable formatted debug output

locale
string
默认值:en

Locale for turn instructions

details
string[]

List of path detail keys (e.g., 'street_name','surface','max_speed')

headings
integer[]

Preferred headings in degrees; requires ch.disable=true

algorithm
enum<string>

Special routing mode; requires ch.disable=true

可用选项:
round_trip,
alternative_route
curbsides
enum<string>[]

Curbside to approach/leave each point

可用选项:
any,
left,
right
elevation
boolean
默认值:false

Include altitude in geometry

ch.disable
boolean
默认值:false

Enable flexible mode for custom_model and advanced options

round_trip
object

Parameters for round trip; requires algorithm='round_trip'

calc_points
boolean
默认值:true

Include full route geometry

point_hints
string[]

Optional street hints; one per point

custom_model
object

Custom routing rules; requires ch.disable=true

instructions
boolean
默认值:true

Include turn-by-turn instructions

pass_through
boolean
默认值:false

Avoid u-turns at via points; requires ch.disable=true

points_encoded
boolean
默认值:true

Use polyline encoding for geometry

heading_penalty
integer
默认值:300

Penalty (s) for deviating from heading; requires ch.disable=true

必填范围: x >= 0
snap_preventions
enum<string>[]

Road types to avoid during snapping

可用选项:
motorway,
trunk,
ferry,
tunnel,
bridge,
ford
alternative_route
object

Parameters for alternative routes; requires algorithm='alternative_route'

响应

Tool result data

info
object
必填
paths
object[]
必填
hints
object