Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The bookWhen field is null in the Transmodel API #6384

Open
t2gran opened this issue Jan 14, 2025 · 0 comments · May be fixed by #6385
Open

The bookWhen field is null in the Transmodel API #6384

t2gran opened this issue Jan 14, 2025 · 0 comments · May be fixed by #6385
Labels

Comments

@t2gran
Copy link
Member

t2gran commented Jan 14, 2025

Expected behavior

For flexible transport the the bookWhen field should be populated in the Transmodel API when appropriated - pressent in the NeTEx import.

Observed behavior

The bookWhen is null for all Flex services retuned by the following query:

{
  trip(
    from: {name: "Frosta skole", coordinates: {latitude: 63.587328,longitude: 10.737343}, place: "NSR:StopPlace:44672"}
    to: {name: "Åsen stasjon", coordinates: {latitude: 63.609502,longitude: 11.051967}, place: "NSR:StopPlace:58950"}
    numTripPatterns: 10
    dateTime: "2025-01-21T12:00:00.000Z"
  	transferSlack: 120,
    walkSpeed: 1.3
    arriveBy: false
    pageCursor: ""
    modes: {accessMode: flexible, directMode: flexible, egressMode: flexible, transportModes: [{transportMode: bus, transportSubModes: [dedicatedLaneBus, demandAndResponseBus, expressBus, localBus, highFrequencyBus, mobilityBus, mobilityBusForRegisteredDisabled, nightBus, postBus, railReplacementBus, regionalBus, riverBus, schoolAndPublicServiceBus, schoolBus, shuttleBus, sightseeingBus, specialNeedsBus]}, {transportMode: coach}, {transportMode: tram}, {transportMode: rail}, {transportMode: bus, transportSubModes: [railReplacementBus]}, {transportMode: water, transportSubModes: [highSpeedPassengerService, highSpeedVehicleService, sightseeingService, localPassengerFerry, internationalPassengerFerry]}, {transportMode: water, transportSubModes: [highSpeedVehicleService, internationalCarFerry, localCarFerry, nationalCarFerry]}, {transportMode: bus, transportSubModes: [airportLinkBus]}, {transportMode: metro}, {transportMode: air}, {transportMode: cableway}, {transportMode: funicular}, {transportMode: monorail}, {transportMode: lift}, {transportMode: trolleybus}]}
  ) {
    nextPageCursor
    tripPatterns {
      expectedStartTime
      duration
      legs {
        mode
        expectedStartTime
        line {
          id
          publicCode
        }
        fromPlace {
          name
        }
        bookingArrangements {
          bookWhen
          bookingMethods
          latestBookingDay
          latestBookingTime
          minimumBookingPeriod
        }
      }
    }
  }
}

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

Latest dev-2.x

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

Steps to reproduce the problem

  1. Run query above
@t2gran t2gran added the Bug label Jan 14, 2025
t2gran added a commit to entur/OpenTripPlanner that referenced this issue Jan 14, 2025
@t2gran t2gran linked a pull request Jan 14, 2025 that will close this issue
t2gran added a commit to entur/OpenTripPlanner that referenced this issue Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant