Skip to content

Summary for individual route segments is missing when geometry = false #2223

@aoles

Description

@aoles

Is there an existing issue for this?

  • I have searched the existing issues

Where did you encounter this issue?

live API

Request URL

https://api.openrouteservice.org/v2/directions/foot-walking/json

POST Request Body

{"coordinates":[[8.611360492439918,49.422259353758854],[8.616435471168897,49.42033314380132],[8.618195056915285,49.419663140005824],[8.621574633194992,49.41823237211069]],"instructions":"false","geometry":"false"}

Response

Response
{
  "bbox": [
    8.610761,
    49.417645,
    8.620996,
    49.421596
  ],
  "routes": [
    {
      "summary": {
        "distance": 861,
        "duration": 619.9
      },
      "bbox": [
        8.610761,
        49.417645,
        8.620996,
        49.421596
      ]
    }
  ],
  "metadata": {
    "attribution": "openrouteservice.org | OpenStreetMap contributors",
    "service": "routing",
    "timestamp": 1768993304909,
    "query": {
      "coordinates": [
        [
          8.611360492439918,
          49.422259353758854
        ],
        [
          8.616435471168897,
          49.42033314380132
        ],
        [
          8.618195056915285,
          49.419663140005824
        ],
        [
          8.621574633194992,
          49.41823237211069
        ]
      ],
      "profile": "foot-walking",
      "profileName": "foot-walking",
      "format": "json"
    },
    "engine": {
      "version": "9.5.0",
      "build_date": "2025-10-31T12:33:09Z",
      "graph_date": "2026-01-12T12:42:39Z",
      "osm_date": "2026-01-05T01:00:02Z"
    }
  }
}

Current behavior

Details about individual route segments such as distance/duration is missing when instructions are disabled via instructions = false parameter.

Expected behavior

The response is expected contain a segments entry listing distances and duration of individual route segments.

It would make also sense to include the snapped start and end coordinates of each segment.

Openrouteservice Version

9.5.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions