Skip to content

Missing transfers on legs in TransModel API #6564

Open
@vpaturet

Description

@vpaturet

Expected behavior

When a constrained transfer is defined between 2 service journeys, querying the fields leg.interchangeFrom and leg.interchangeTo should return a result.

Example query:


{
  trip(
    from: {
     place:"NSR:StopPlace:59384"
    },
    to: {
      place: "NSR:StopPlace:58497"
    },
    numTripPatterns: 1,
    dateTime: "2025-03-19T15:33:00+01:00"
  ) {
    tripPatterns {
      legs {
        aimedStartTime
        aimedEndTime
        line {
          publicCode
        }
        interchangeTo {maximumWaitTime}
        interchangeFrom {maximumWaitTime}
        serviceJourney {notices{text}}
      }
    }
  }
}

https://api.staging.entur.io/graphql-explorer/journey-planner-v3?query=%7B%0A%20%20trip%28%0A%20%20%20%20from%3A%20%7B%0A%20%20%20%20%20place%3A%22NSR%3AStopPlace%3A59384%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20to%3A%20%7B%0A%20%20%20%20%20%20place%3A%20%22NSR%3AStopPlace%3A58497%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20numTripPatterns%3A%201%2C%0A%20%20%20%20dateTime%3A%20%222025-03-19T15%3A33%3A00%2B01%3A00%22%0A%20%20%29%20%7B%0A%20%20%20%20tripPatterns%20%7B%0A%20%20%20%20%20%20legs%20%7B%0A%20%20%20%20%20%20%20%20aimedStartTime%0A%20%20%20%20%20%20%20%20aimedEndTime%0A%20%20%20%20%20%20%20%20line%20%7B%0A%20%20%20%20%20%20%20%20%20%20publicCode%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20interchangeTo%20%7BmaximumWaitTime%7D%0A%20%20%20%20%20%20%20%20interchangeFrom%20%7BmaximumWaitTime%7D%0A%20%20%20%20%20%20%20%20serviceJourney%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%0A%20%20%20%20%20%20%20%20%20%20notices%7Btext%7D%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A&variables=

Observed behavior

the fields leg.interchangeFrom and leg.interchangeTo are null

Version of OTP used (exact commit hash or JAR name)

dev-2.x

Data sets in use (links to GTFS and OSM PBF files)

Norwegian NeTEx data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions