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
  • 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

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
out_arrays
enum<string>[]
required

Which matrices to include.

Available options:
weights,
times,
distances
Example:
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.

to_points
number[][]

Destination coordinates as [longitude, latitude]. Provide with from_points.

from_points
number[][]

Origin coordinates as [longitude, latitude]. Provide with to_points.

point_hints
string[]

Hint per point for snapping preference (symmetrical).

to_curbsides
enum<string>[]

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

Available options:
any,
left,
right
from_curbsides
enum<string>[]

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

Available options:
any,
left,
right
to_point_hints
string[]

Hint per destination for snapping preference.

from_point_hints
string[]

Hint per origin for snapping preference.

snap_preventions
string[]

Feature types to avoid for snapping (e.g. 'toll', 'ferry').

Response

Tool result data

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