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
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. A price estimate is not currently available. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

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

Body

application/json
optimize
enum<boolean>
required

Reorder points to minimize travel time

Available options:
false
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
algorithm
enum<string>

Special routing mode; requires ch.disable=true

Available options:
round_trip,
alternative_route
alternative_route
object

Parameters for alternative routes; requires algorithm='alternative_route'

calc_points
boolean
default:true

Include full route geometry

ch.disable
boolean
default:false

Enable flexible mode for custom_model and advanced options

curbsides
enum<string>[]

Curbside to approach/leave each point

Available options:
any,
left,
right
custom_model
object

Custom routing rules; requires ch.disable=true

debug
boolean
default:false

Enable formatted debug output

details
string[]

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

elevation
boolean
default:false

Include altitude in geometry

heading_penalty
integer
default:300

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

Required range: x >= 0
headings
integer[]

Preferred headings in degrees; requires ch.disable=true

instructions
boolean
default:true

Include turn-by-turn instructions

locale
string
default:en

Locale for turn instructions

pass_through
boolean
default:false

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

point_hints
string[]

Optional street hints; one per point

points_encoded
boolean
default: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

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

Response

Tool result data

info
object
required
paths
object[]
required
hints
object