Rivier/ Reference/ maps

Maps route matrix

post/maps/matrix

Travel times and distances from each source to each target (at most 25 points in all, 10 with live traffic), for choosing the nearest or planning a round.

Before you call

Credential
Authorization: Bearer $KEY
Scope
maps:read
Mcp
rivier_maps_matrix
Graphql
Query.mapsRouteMatrix
Sdk
maps.route.matrix
Cli
maps route matrix

Request bodyapplication/json, required

  • sourceslist of objectrequired
    • latnumberrequired
      At least -90. At most 90.
    • lngnumberrequired
      At least -180. At most 180.
  • targetslist of objectrequired
    • latnumberrequired
      At least -90. At most 90.
    • lngnumberrequired
      At least -180. At most 180.
  • modestring
    at most 25 points in all, sources and targets together (10 with driving-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