Skip to main content
POST
Calculate Matrix

Request contract

  • Method and path: POST /apis/v1/graphhopper/matrix-post
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/graphhopper/matrix-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
out_arrays
enum<string>[]
required

Which matrices to include.

Available options:
weights,
times,
distances
Example:
points
number[][]
required

Coordinates for symmetric matrix as [longitude, latitude].

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

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

Available options:
car
curbsides
enum<string>[]

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

Available options:
any,
left,
right
fail_fast
boolean
default:true

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

from_curbsides
enum<string>[]

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

Available options:
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').

Available options:
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.

Response

Tool result data

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