Skip to content

Support for Multimodal Stops not working #6804

@t2gran

Description

@t2gran

When searching with coordinates we get results, but if the same search is repeated with stopIds then the search fails.

Transmodel query

(Toggle "place" and "coordinates" to test)

query TripQ {
  stopPlaces(ids: ["NSR:StopPlace:59872", "NSR:StopPlace:58211"]) {
    name
    latitude
    longitude
  }
  trip(
    from: {
      #coordinates: { latitude: 59.910357, longitude:10.753051 }
      place: "NSR:StopPlace:59872"
  }
    to: {
      #coordinates: { latitude: 60.193361, longitude:11.097887 }
      place: "NSR:StopPlace:58211"
  }
  ) {
    previousPageCursor
    nextPageCursor
    tripPatterns {
      expectedEndTime
      expectedStartTime
      legs {
        mode
        expectedStartTime
        fromPlace {
          name
        }
        toPlace {
          name
        }
        line {
          name
        }
      }
      systemNotices {
        tag
      }
    }
    routingErrors {
      code
      inputField
      description
    }
  }
}

Result

{
  "data": {
    "stopPlaces": [
      {
        "name": "Oslo S",
        "latitude": 59.910357,
        "longitude": 10.753051
      },
      {
        "name": "Oslo lufthavn",
        "latitude": 60.193361,
        "longitude": 11.097887
      }
    ],
    "trip": {
      "previousPageCursor": null,
      "nextPageCursor": null,
      "tripPatterns": [],
      "routingErrors": [
        {
          "code": "locationNotFound",
          "inputField": "to",
          "description": "Destination is unknown.  Can you be a bit more descriptive?"
        },
        {
          "code": "locationNotFound",
          "inputField": "from",
          "description": "Origin is unknown. Can you be a bit more descriptive?"
        }
      ]
    }
  }
}

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

Exist in dev-2.x, first appeared in 88ed162 (#6605)

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

Any Entur data set should work, but running the org.entur.otp.setup.MainKt in https://github.com/entur/otp-data and selecting cases/railway_oslo should give you a complete setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    !BugApply to issues describing a bug and PRs witch fixes it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions