Skip to content

Can't apply alert on a stop with location_type = 1 (station) #6120

@miklcct

Description

@miklcct

NOTE: this issue system is intended for reporting bugs and tracking progress in software
development. For all other usage and software development questions or discussion, please post a
question in our chat room: https://gitter.im/opentripplanner/OpenTripPlanner.

Expected behavior

The alert is successfully applied on the station

Observed behavior

The alert is applied on unknown, with description Alert's entity selector was stop with id NR:910GSMTHKRS but the stop doesn't exist.

However, the ID exists as a station in the feed and can be queried using the following query:

query GtfsExampleQuery {
  station(id: "NR:910GSMTHKRS") {
    name
  }
}

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

2.6.0

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

A custom GTFS and GTFS-RT representing National Rail data

Command line used to start OTP

/home/aubin/jdk/bin/java -jar /home/aubin/opentripplanner/otp-shaded.jar --load --serve /home/aubin/opentripplanner

Router config and graph build config JSON

router-config.json

{
  "routingDefaults": { 
    "drivingDirection": "left",
    "locale": "en_GB",
    "numItineraries": 10,
    "searchWindow": "PT6H",
    "transferSlack": "PT30S",
    "waitReluctance": 1.76,
    "accessEgress": {
      "maxDuration": "PT2H"
    },
    "walk": {
      "boardCost": 300,
      "reluctance": 1.68
    },
    "wheelchairAccessibility": {
      "trip": {
        "onlyConsiderAccessible": false,
        "unknownCost": 600,
        "inaccessibleCost": 3600
      },
      "stop": {
        "onlyConsiderAccessible": false,
        "unknownCost": 600,
        "inaccessibleCost": 3600
      },
      "elevator": {
        "onlyConsiderAccessible": false
      },
      "inaccessibleStreetReluctance": 25,
      "maxSlope": 0.08333,
      "slopeExceededReluctance": 50,
      "stairsReluctance": 25
    }
  },
  "timetableUpdates": {
    "maxSnapshotFrequency": "PT5S" 
  },
  "transit": {
    "searchThreadPoolSize": 4,
    "transferCacheRequests": [
      {
        "modes" : "WALK",
        "walk" : {
          "boardCost" : 300,
          "reluctance" : 1.68
        }
      }
    ]
  },
  "updaters": [
    {
      "type": "real-time-alerts",
      "url": "${NR_GTFSRT_URL}",
      "feedId" : "NR",
      "frequency": "PT1M"
    },
    {
      "type": "stop-time-updater",
      "url": "${NR_GTFSRT_URL}",
      "feedId" : "NR",
      "frequency": "PT43S"
    }
  ]
}

Steps to reproduce the problem

  1. Make an alert to be applied on a station
  2. Query OTP for alerts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions