跳转到主要内容
POST
POST Route

请求规范

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

费用与请求规则

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

授权

Authorization
string
header
必填

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

请求体

application/json
optimize
enum<boolean>
必填

Reorder points to minimize travel time

可用选项:
false
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
algorithm
enum<string>

Special routing mode; requires ch.disable=true

可用选项:
round_trip,
alternative_route
alternative_route
object

Parameters for alternative routes; requires algorithm='alternative_route'

calc_points
boolean
默认值:true

Include full route geometry

ch.disable
boolean
默认值:false

Enable flexible mode for custom_model and advanced options

curbsides
enum<string>[]

Curbside to approach/leave each point

可用选项:
any,
left,
right
custom_model
object

Custom routing rules; requires ch.disable=true

debug
boolean
默认值:false

Enable formatted debug output

details
string[]

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

elevation
boolean
默认值:false

Include altitude in geometry

heading_penalty
integer
默认值:300

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

必填范围: x >= 0
headings
integer[]

Preferred headings in degrees; requires ch.disable=true

instructions
boolean
默认值:true

Include turn-by-turn instructions

locale
string
默认值:en

Locale for turn instructions

pass_through
boolean
默认值:false

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

point_hints
string[]

Optional street hints; one per point

points_encoded
boolean
默认值:true

Use polyline encoding for geometry

round_trip
object

Parameters for round trip; requires algorithm='round_trip'

snap_preventions
enum<string>[]

Road types to avoid during snapping

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

响应

Tool result data

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