Skip to main content
POST
POST Route

Request contract

  • Method and path: POST /apis/v1/graphhopper/route-post
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/graphhopper/route-post
  • Runtime facts: 6a72f8e2fa7fb1c29379e3b24b3a247c8428a3b6ed621b3f84f84e75cb0de2bc
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

A request reference price is not currently available; use a request quote where supported. Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Declared unit rate (USD): 1e-06
  • Billing unit: provider_credit
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Declared maximum count/units: 10000000
  • Settlement evidence source: response_body

Authorizations

Authorization
string
header
required

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

Body

application/json
points
number[][]
required

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

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

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

Available options:
car
optimize
enum<boolean>
required

Reorder points to minimize travel time

Available options:
false
debug
boolean
default:false

Enable formatted debug output

locale
string
default: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

Available options:
round_trip,
alternative_route
curbsides
enum<string>[]

Curbside to approach/leave each point

Available options:
any,
left,
right
elevation
boolean
default:false

Include altitude in geometry

ch.disable
boolean
default:false

Enable flexible mode for custom_model and advanced options

round_trip
object

Parameters for round trip; requires algorithm='round_trip'

calc_points
boolean
default: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
default:true

Include turn-by-turn instructions

pass_through
boolean
default:false

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

points_encoded
boolean
default:true

Use polyline encoding for geometry

heading_penalty
integer
default:300

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

Required range: x >= 0
snap_preventions
enum<string>[]

Road types to avoid during snapping

Available options:
motorway,
trunk,
ferry,
tunnel,
bridge,
ford
alternative_route
object

Parameters for alternative routes; requires algorithm='alternative_route'

Response

Tool result data

info
object
required
paths
object[]
required
hints
object