Skip to content

Travel back in time - optimize transfers #3491

Closed

Description

@t2gran

The OptimizeTransfers sometimes generate paths witch board at a stop AFTER the alight. This look like riding the buss backwards. Most noticeable is maybe that the transit leg have negative travel duration.

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

dev-2.x

Router config and graph build config JSON

Make sure the OptimizeTransfers feature is enabled.

Steps to reproduce the problem

Start OTP with the Entur data set an run transmodel query:

query {
  trip(
    from: {
    	name: "Asker stasjon",
    	place: "NSR:StopPlace:59616",
    	coordinates: {
      	latitude: 59.833128,
      	longitude: 10.434169
    	}
  }, 
  to: {
      name: "Høvik stasjon",
      place: "NSR:StopPlace:59646",
      coordinates: {
        latitude: 59.900609,
        longitude: 10.581706
      }
  }, 
    dateTime: "2021-05-19T07:39:34.683Z", 
    arriveBy: false, 
    modes: {
      accessMode:foot,
      transportMode: [tram, bus, rail],
      egressMode: foot
      
    },
    debugItineraryFilter: true,
  ) {
    metadata {
      searchWindowUsed
      nextDateTime
      prevDateTime
    }
    tripPatterns {
      legs {
        duration
        expectedStartTime
        expectedEndTime
        mode
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    !BugApply to issues describing a bug and PRs witch fixes it.Entur TestThis is currently being tested at Entur

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions