Skip to main content
POST
GET Route

Request contract

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

Cost and request rules

Usage-based billing; Default request estimate: $0.0007 USD (not a fixed price). 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.
  • Default request reference estimate (USD): 0.0007
  • 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
point
string[]
required

Route waypoints as 'latitude,longitude' strings. Specify at least origin and destination. Via points are possible. Example: ['51.131,12.414', '48.224,3.867']

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

The routing profile determining network, speed, and physical attributes. Common values: 'car', 'bike', 'foot', 'motorcycle', 'mtb', 'racingbike', 'hike'. Default: 'car'

Available options:
car
optimize
enum<string>
required

If 'true', reorders points to minimize total travel time. Applies route optimization limits and increases the price.

Available options:
false
debug
boolean
default:false

Enable formatted output for debugging.

locale
string
default:en

Locale for turn instructions. Examples: 'en', 'de', 'fr', 'pt_PT'

Examples:

"en"

"de"

"fr"

details
string[]

Path detail types to include. Available: 'street_name', 'street_ref', 'street_destination', 'leg_time', 'leg_distance', 'roundabout', 'country', 'time', 'distance', 'max_speed', 'max_weight', 'max_width', 'toll', 'road_class', 'road_class_link', 'road_access', 'road_environment', 'hazmat', 'hazmat_tunnel', 'hazmat_water', 'lanes', 'surface', 'smoothness', 'hike_rating', 'mtb_rating', 'foot_network', 'bike_network'

heading
integer[]

Preferred heading direction for each point in degrees (0-360, north-based clockwise). Specify one for start or one per point. Requires ch.disable=true.

curbside
enum<string>[]

Side of the road for leaving/arriving at each point. Specify for all points or none. Only for motor vehicles.

Available options:
any,
left,
right
algorithm
enum<string>

Special routing algorithm. 'round_trip': returns to start with randomness. 'alternative_route': provides multiple route options.

Available options:
round_trip,
alternative_route
elevation
boolean
default:false

Include altitude as third coordinate in response. Changes format of points and snapped_waypoints fields.

ch.disable
boolean
default:false

Enable flexible mode to use custom_model or advanced options below. Set to true for heading, algorithm, etc.

point_hint
string[]

Optional road name hints for snapping each point. Specify none or the same number as points.

calc_points
boolean
default:true

Whether to calculate route geometry points.

instructions
boolean
default:true

Whether to calculate and return turn-by-turn instructions.

pass_through
boolean
default:false

Avoid u-turns at via-points with regard to heading_penalty. Requires ch.disable=true.

points_encoded
boolean
default:true

Use polyline encoding for geometry (true) or simple coordinate pairs (false).

heading_penalty
integer
default:300

Time penalty in seconds for not obeying specified heading. Requires ch.disable=true.

Required range: x >= 0
round_trip.seed
integer

Random seed for deterministic round trip results. Requires algorithm='round_trip'.

snap_prevention
enum<string>[]

Prevent snapping to specific road types. Values: 'motorway', 'trunk', 'ferry', 'tunnel', 'bridge', 'ford'

Available options:
motorway,
trunk,
ferry,
tunnel,
bridge,
ford
round_trip.distance
integer
default:10000

Approximate round trip length in meters. Requires algorithm='round_trip'.

Required range: x >= 0
alternative_route.max_paths
integer
default:2

Maximum number of alternative paths. Requires algorithm='alternative_route'.

Required range: x >= 1
alternative_route.max_share_factor
number
default:0.6

Maximum similarity factor between alternative and optimal route. Requires algorithm='alternative_route'.

Required range: 0 <= x <= 1
alternative_route.max_weight_factor
number
default:1.4

Maximum factor by which alternatives can be longer than optimal route. Requires algorithm='alternative_route'.

Required range: x >= 0

Response

Tool result data

info
object
required
paths
object[]
required
hints
object