OpenRouteService · Example Payload

Matrix Request

RoutingGeospatialDirectionsIsochronesMatrixGeocodingElevationOptimizationOpenStreetMapNavigationLogisticsHumanitarian

Matrix Request is an example object payload from OpenRouteService, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

locationsmetricsresolve_locationsunits

Example Payload

Raw ↑
{
  "locations": [
    [8.681495, 49.41461],
    [8.686507, 49.41943],
    [8.687872, 49.420318],
    [8.680916, 49.415776]
  ],
  "metrics": ["duration", "distance"],
  "resolve_locations": true,
  "units": "km"
}