Rivier/ Reference/ maps

Maps route get

post/maps/route

A route through two to 25 points by car (optionally with live traffic), on foot or by bicycle: distance, time, the line (polyline6) and each leg.

Before you call

Credential
Authorization: Bearer $KEY
Scope
maps:read
Mcp
rivier_maps_route
Graphql
Query.mapsRouteGet
Sdk
maps.route.get
Cli
maps route get

Request bodyapplication/json, required

  • pointslist of objectrequired
    • latnumberrequired
      At least -90. At most 90.
    • lngnumberrequired
      At least -180. At most 180.
  • modestring
    driving-traffic uses live traffic One of: driving, driving-traffic, walking, cycling. Default: driving.

Responses

  • 200application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown